CS 357 ASSIGNMENT #2 - DATAGRAM IMPLEMENTATION - HOW IT WORKS : A datagram is sent to reciever, the reciever's name is taken from the command line args. The command line is datagram.cc followed by the "host name" & the "port number" The user is then prompted for the appropriate data. (in our case a stock ticker symbol). The data is reads in & stored. Next the datagram socket is opened. After successful opening of the datagram socket, the host name is looked up . If the datagram socket could not be opened successfuly then an error message is sent out. If the host name is found, the host address is copied and an address structure is set up. At this point the data (stock symbol) is sent, if there is no output returned an error message is displayed. After all the Data to be sent has been sent , the socket is closed. OPERATING INSTRUCTIONS : COMMAND LINE : datagram.cc , "host-name" & "port-number" DATA ENTRY : 1.) Enter all the Stock Ticker Symbol(s) desired for information retrieval, when prompted & hit enter. OUTPUT : - Wait for the other server to return to youi the respective information on your requested symbols.