c. Based on Example1Receiver.java, create a program Example1bReceiver.java which joins a multicast group of the same IP address but a different port. Compile Example1bReceiver.java. Start two or more Example1Receiver processes first, then a Example1bReceiver process, and then a Sender process with a message of your choice. Does the Example1bReceiver process receive the message? Describe and explain the outcome.

This exercise is based on Example1 presented in this chapter.

When a port number of 13456 was specified (instead of 3456) in Example1bReceiver, the message is received by Example1Receiver but not Example1bReceiver.
Example1bReceiver does not receive the message sent to the mutlicast group that the sender sends to: In Java multicast, the multicast group is identified by the IP multicast address and a port number. Since Example1bReceiver uses a different port number, it is not considered to be in the sender’s group.

Computer Science & Information Technology

You might also like to view...

The most common way to select text to work with is to highlight it using the mouse

Indicate whether the statement is true or false

Computer Science & Information Technology

After you create a VBA procedure, you should test it to ________that it works as you intended

Fill in the blank(s) with correct word

Computer Science & Information Technology