The EchoServer class implements a simple example server that reads lines of text from the client and echoes them back. An echo server is usually running on TCP port 7 of Unix machines.