Clone of Telnet.class.php