A datagram is independent, self contained message sent over the network whose arrival, arrival time,and content are not guaranted.
The java page contains three classes of datagrams to send and receive packets over the network.
DatagramSocket, DatagramPackets,and MulticastSockets.An application can send or receive datagrampackets through a datagramsockets
addition datagrampackets can be broadcast to multiple recipients all listening to a multicastsockets.limo bus hireThe client application in this example is very
simple and clear. it send a single datagram packets to the server indicating that the client would like to receive a quote of the moments.The client then
wait for the server to send a datagram packets in response.Two classes impliment in server application: QuoteServer and QuoteServerThread.
The quoteserver class, contains a single methord in the main methord for the quoteserver application.The main methord is simply creates a new
quoteserverthread object and start it.sms solutions The quoteclient classes implements a clients application for the quoteserver.the application send a requestto the
quoteserver,wait for the response, and when the response is received, display it to the standard output.you have successfuly complied the server and
the client program,you run them.you have to run the server progarm first. once the server has started, M deals you can run the client program but remember
to run client program with one command-line argument the name of the host on which the quoteserver is running.