Internet Direct (Indy)
Home
PreviousUpNext
TIdCmdTCPClient.Connect Method

Opens the peer connection and starts the listening thread for the client.

Pascal
procedure Connect; override;

Connect is an overridden procedure in TIdCmdTCPClient used to establish the connection for the command handler-enabled client. Connect calls the inherited Connect method and triggers the OnConnect event handler when it has been assigned in the client. 

Connect creates the TIdCmdTCPClientListeningThread member variable that represents the listening thread for the command handler-enabled client. 

Use Disconnect to terminate the listening thread and to close the peer connection for the client.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.