Establishing a telnet connection

Top  Previous  Next

The process flow for establishing a connection to a telnet server is as follows:

 

1. Create a new Telnet instance providing the telnet server hostname or IP address as an argument to the constructor.

 

2. Subscribe delegate methods to newly created Telnet instance that will be responsible for capturing and responding to option negotiation events.

 

3. Subscribe delegate methods to newly created Telnet instance that will be responsible for capturing data received from telnet server.

 

4. Invoke the Telnet.Connect method to establish a connection.

 

Upon invoking the Telnet.Connect method a TCP connection will be established with the telnet server and option negotiation will be handled by the delegate methods subscribed in Step 2.

 

After option negotiation is completed any data received from the telnet server will be handled by the delegate method(s) subscribed in Step 3.

 

 

See Also

 

Option negotiation

Receiving data

Sending data





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC