Telnet client and server written in C