Daytime service

30.5.2024

Yay! I implemented a simple daytime service that works according to RFC 867, dated May 1983. It provides the current date and time as a ASCII character string. Funnily, it does not really specify the time format.
There is no specific syntax for the daytime. It is recommended that it be limited to the ASCII printing characters, space, carriage return, and line feed. The daytime should be just one line.

This service is reachable over TCP and UDP on port 13.

TCP example using telnet:
$ telnet example.fi 13
Trying 65.108.91.190...
Connected to example.fi.
Escape character is '^]'.
@370.91.beats or Thursday, May 30, 2024, 10:54:06-EEST
Connection closed by foreign host.

UDP example using nc:
$ echo | nc -u example.fi 13
@372.79.beats or Thursday, May 30, 2024, 10:56:49-EEST
^C

I still need clean up the code a bit before publishing it. Stay tuned.

This site is HTML 2.0 compliant.

Valid HTML 2.0