Question: Group communication 2. Using Java, create an application that illustrates how a message sent by one process is received by multiple processes in a Multicast

Group communication 2. Using Java, create an application that illustrates how a message sent by one process is received by multiple processes in a Multicast group (20 Marks) Instructions Objects (MulticastSender and MulticastReceiver). Connectionless oriented, receiver needs to start first. Attach(insert) a screenshot of your 2 codes. Attach(insert) a screenshot of your executed codes. On the Multicast receivers Specify Class DIP address start from (225.1.2.3) Open any available multicast socket on the UDP port. Call the join group method on multicast socket to join the multicast group Message to be received should be 150 bytes (create an array). Create a datagram socket for the expected packets. Create and call the receiver method on the Multicast socket to be able to receive the message. Display the message that was received Close the socket On the multicast sender Specify the multicast IP address where the packets are to be sent (multicast address) Call the method of the multicast socket to send the packets through Specify the string message you are sending (Hello World) Package the message (datagram packet) you want to send, extract the length, multicast group and port number. Call the send method on the packet Close the socket
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
