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...

________ fonts do not have lines or extensions and are primarily used for short documents or for headings

A) Cambria and Courier B) Verdana and Cambria C) Sans serif fonts D) Serif fonts

Computer Science & Information Technology

Which of the following is TRUE about Outline view?

A) You can only collapse or expand a full presentation, not a single slide. B) Double-click the slide icon to collapse or expand slide content. C) The collapsed outline view displays only the slide icon. D) Press Tab to create a new slide.

Computer Science & Information Technology

By default, the Control Panel window displays in _____ view.??

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The location of guides that you create can be modified, but margin guides cannot be modified.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology