CS460-Projects/timeserver
2025-02-05 17:24:41 -07:00
..
Makefile change the makefile to use a more up to date C standard 2025-02-05 17:24:41 -07:00
README.md Create the first assignment: 'timeserver' 2025-01-24 14:36:36 -07:00
timeserver Create the first assignment: 'timeserver' 2025-01-24 14:36:36 -07:00
timeserver.c finished the first homework? needs testing tho. 2025-02-05 14:29:04 -07:00
timeserver.h Create the first assignment: 'timeserver' 2025-01-24 14:36:36 -07:00
timeserver.o Create the first assignment: 'timeserver' 2025-01-24 14:36:36 -07:00

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.