Topic Path: Symbol Reference > Classes > TIdCmdTCPClient Class > TIdCmdTCPClient Methods > Connect Method
ContentsIndexHome
PreviousUpNext
TIdCmdTCPClient.Connect Method

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

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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.