Create the first assignment: 'timeserver'
This commit is contained in:
parent
bc6a19ff33
commit
a54d88dc70
6 changed files with 92 additions and 0 deletions
16
timeserver/README.md
Normal file
16
timeserver/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue