TimeClient is an Internet client application which sends periodic requests to TimeServer in a window.
(i) TimeClient should have three command line arguments: 1) a local port for sending and receiving datas, (2) The IP address(or domain name) and (3) the port on which Time Server is running. If the number of command line arguments is not exactly three. Time Client should display appriate message. on the system console and exit.
TimeClient should repeat forever
send a request in the form of UDP datagram to[TimeServer. The data in the datagram does not matter, since Timeserver only uses it to indentify the client.
wait for a DatagramPacket from TimeServer. If a DatagramPacket arrives, the data in the packet should be converted in to a string and displayed in a window.
pause for 1 second.
This program is written in Java on Windows 2000, xp platform.
I would be grateful for any assistance.
(i) TimeClient should have three command line arguments: 1) a local port for sending and receiving datas, (2) The IP address(or domain name) and (3) the port on which Time Server is running. If the number of command line arguments is not exactly three. Time Client should display appriate message. on the system console and exit.
TimeClient should repeat forever
send a request in the form of UDP datagram to[TimeServer. The data in the datagram does not matter, since Timeserver only uses it to indentify the client.
wait for a DatagramPacket from TimeServer. If a DatagramPacket arrives, the data in the packet should be converted in to a string and displayed in a window.
pause for 1 second.
This program is written in Java on Windows 2000, xp platform.
I would be grateful for any assistance.
Comment