Simple telnet chat server using POSIX sockets written in C