telnet library and client in c++