"telnet" client example

Hello,

I’d like to implement a simple telnet client, sending simple predefined messages to an IPC server and receiving responses.

I guess this is done by use of the socket library.

Are there some simple examples available how this can be accomplished?

I noticed telnet server example, but not a client example.

thanks,

Dan

right, this is the server example

Is this better: RosettaCode - Chat Server