simple telnet client class