Speak daytime by hand first. Run this, and read the framing rule off the reply.
Speak daytime by hand first. Run this, and read the framing rule off the reply.
Answer
$ telnet time.nist.gov 13 Trying 132.163.97.4... Connected to time.nist.gov. Escape character is '^]'. 60890 25-08-03 14:22:07 00 0 0 123.4 UTC(NIST) * Connection closed by foreign host.
The client typed nothing, one line came back, and the server hung up. "Connection closed by foreign host" is the framing rule: end-of-stream ends the message.
Harold 4e ch8 §Reading from Servers with Sockets