Establishing a connection
To establish a connection to a telnet server, create a
Telnet
instance and provide the required hostname.
Example
// create new Telnet instance
Telnet telnet =
new
Telnet(
"telnet.myserver.com"
);
// establish connection
telnet.connect();