632 B
632 B
Running the timeserver
Use make to compile the timeserver.
Use make run to run the timeserver. This will run on an infinite loop.
Use Ctrl+C to stop the timeserver.
timeserver communication
Communicating with the server can happen using netcat in UDP mode (-u flag).
timeserver information
The timeserver runs on UDP port 8888.
The timeserver will wait for time\r\n to be sent on this port, and if received,
will send back a response of the time (in ms) since January 1st, 1970 (UNIX Epoch).
pcap information
A demonstration of the timeserver has been captured with Wireshark in the
included demo.pcap file.