Question: c. Write a Java program to receive a string of integer numbers from a multicast sender program. This program must demonstrate four key operations. The

c. Write a Java program to receive a string of integer numbers from a multicast sender program. This program must demonstrate four key operations. The operations are: - 1. Join a multicast group 2. Receive data from the group 3. Leave the multicast group 4. Display the total sum for the received data. Use the information described in Table 1 and Figure 6 as a guide for your program solution. The method in Figure 6 will throw an exception from class SocketException Put the program in a package. Name the program class appropriately. (23 marks) Table 1: Network setting for multicast receiver Network setting Multicast port Multicast IP Value 4432 230.0.0.0 NetworkConfigurator +get ValidNetworkInterface(): NetworkInterface Figure 6: Class Network Configurator in UML c. Write a Java program to receive a string of integer numbers from a multicast sender program. This program must demonstrate four key operations. The operations are: - 1. Join a multicast group 2. Receive data from the group 3. Leave the multicast group 4. Display the total sum for the received data. Use the information described in Table 1 and Figure 6 as a guide for your program solution. The method in Figure 6 will throw an exception from class SocketException Put the program in a package. Name the program class appropriately. (23 marks) Table 1: Network setting for multicast receiver Network setting Multicast port Multicast IP Value 4432 230.0.0.0 NetworkConfigurator +get ValidNetworkInterface(): NetworkInterface Figure 6: Class Network Configurator in UML
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
