Disconnect Method

Top  Previous  Next

The Disconnect method ends the connection with the Telnet server.

 

Visual Basic Syntax

 

TNBnnnn.Disconnect

 

Delphi Syntax

 

TNBnnnn.Disconnect;

 

 

Remarks

 

After the client disconnects, the OnDisconnect event is fired. If the client is not connected to any server, the disconnect method has no effect.

 

See also Connect method and OnDisconnect event.