Daytime Protocol

The Daytime Protocol is a service in the Internet Protocol Suite, defined in 1983 in RFC 867. It is intended for testing and measurement purposes in computer networks.

A host may connect to a server that supports the Daytime Protocol on either Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port 13. The server returns an ASCII character string of the current date and time in an unspecified format.

Inetd implementation

On UNIX-like operating systems a daytime server is usually built into the inetd (or xinetd) daemon. The service is usually not enabled by default. It may be enabled by adding the following lines to the file /etc/inetd.conf and telling inetd to reload its configuration:

daytime   stream  tcp     nowait  root    internal
daytime   dgram   udp     wait    root    internal

An example output may be:

Monday, February 22, 1982 18:45:59-PST
gollark: It *sounds* simple but is actually several hundred lines of code for some reason.
gollark: Anyway, skynet has two components:- the server - relays messages between clients- the client - connects to the server by websocket, sends/receives messages
gollark: Why are you so obsessed with this?
gollark: As in, I literally can't. My computer has no microphone.
gollark: No.

See also

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.