I have a server that listens for incoming connections from clients. The server writes a message to a client (telnet) and after writing the message, the server closes the connection with the client.

I want this connection to be open. The only time the connection should be closed is when the client closes the telnet application.

How do I keep the server connection with the clients open ?