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

Opens the connection to the remote system using the socket handle.

procedure Connect; virtual;

Connect is a virtual procedure used to open a connection to the PeerIP and PeerPort using the socket handle for the descriptor. Connect uses the GStack global protocol stack to connect the socket handle to the remote system. 

Connect calls UpdateBindingLocal and UpdateBindingPeer to reflect the real IP address and Port numbers used for the connection when the socket handle is allocated. This operation is thread-safe; it is protected by an internal TIdCriticalSection instance. 

Use CloseSocket to close and destroy the socket handle.

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