This is intended as an example for Computer Networks 2 class at Poznań University of Technology. Mostly usable by my students. Godaytime lousy implements Daytime protocol from RFC867.
For the echo server, check here.
go get -u github.com/tdi/godaytime
This will install godaytime to your $GOPATH/bin
.
godaytime [-h] [-H HOSTNAME] [-p PORT] [-u]
By default godaytime listens on localhost:3333 TCP. -u
flag makes the server listen on UDP port instead.
➜ nc localhost 3333
Sat, 15 Oct 2016 15:58:59 CEST
Dariusz Dwornikowski, MIT