Internet Direct (Indy)
Home
PreviousUpNext
TIdSocketHandle.Connect Method

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

Pascal
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.

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.