Based on Example1Sender.java, create a program Example1bSender.java which sends a message to the multicast address of the program Example1bReceiver.java. Compile the program, then start an Example1Receiver process, an Example1bReceiver process, an Example1Sender process, then an Example1bSender process. Describe the outcome, in particular which process receives which message(s).

This exercise is based on Example1 presented in this chapter.






The point of this exercise is that there can be multiple multicast group being active at the same time, and the multicast API will deliver the messages to the appropriate processes without confusion.

Computer Science & Information Technology

You might also like to view...

We do not use a long chain of ->next’s when working with a linked list (for example, ptr->next->next->next->next->next->info) because:

A. we often do not know how long the linked list is, so we use a loop to move a pointer through the list B. we can only use one next at a time (C++ does not permit more than one in an expression) C. it can become an infinite loop D. doing so can cause memory leak

Computer Science & Information Technology

When a router uses a forwarding table to look up a next-hop address, the result is an IP address. What must happen before the datagram can be sent?

What will be an ideal response?

Computer Science & Information Technology

In object-oriented analysis, objects possess characteristics called _____.

A. properties B. orientations C. classes D. inheritances 

Computer Science & Information Technology

Which of the following does not represent a range?

A. B1:B8 B. A2:G2 C. A2:H4 D. D2*D7

Computer Science & Information Technology