Internet Direct (Indy) Version 9.0.2 Beta
TIdTelnet.Connect
Connects the TELNET client to a host.

procedure Connect(const ATimeout: Integer); override;
Description
Connect is an overridden procedure in TIdTelnet used to connect the TELNET client to a host computer identified by the Host and Port properties.

Connect triggers the OnConnect event prior to using the inherited Connect method to open the socket connection. If the client is connected, the TelnetThread property is initialized.

Connect can raise an EIdException exception with the constant message RSTELNETCLIConnectError if an EIdSocketError occurs.