Now the STORE_MANAGER is a server process running on a computer, say Snowhite.cis.temple.edu. It is started from the Unix shell and it is called with a command line parameter, the name of a port (say, a number over 5000 and less than 65536). It creates a datagram socket, and it binds it to the specified port. Then it waits to receive messages from the clients. When it receives a message from a client, it creates a thread and gives the request to it together with information on the requestor (you need it in order to send information back). The thread carries out the request and sends back a reply on the same socket. It then terminates. In the meanwhile STORE_MANAGER waits for the next message which it handles in a similar way.
A client process RAND_PROC is also started from the Unix shell on the same or on a different computer. It is given three command line parameters:
Both the client and the server will use timeouts when waiting for messages. At the timeout they print a warning message and then they go back to waiting.
RAND_PROC and STORE_MANAGER will exchange messages and log in the same way
as they did in homework 5.
The program should keep operating correctly even if you launch a number
of copies of RAND_PROC, perhaps on different computers.
STORE_MANAGER and RAND_PROC will respond to signal 1 by terminating gracefully.
ingargiola@cis.temple.edu