Connect Method

Top  Previous  Next

The Connect method establishes the connection to the Telnet server. The Host and Port properties must be assigned for the connection to be successfully established.

 

Visual Basic Syntax

 

TNBnnnn.Connect

 

Delphi Syntax

 

TNBnnnn.Connect;

 

 

Remarks

 

If the specified host doesn't exist or if the connection fails, the OnConnectionFail event is fired. If the connection is successfully established, the OnConnect event is fired.

 

See also Host and Port properties, Disconnect method, OnConnect and OnConnectionFail events.