RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClientWinSocket.Connect Method

Responds to connection notifications.

Pascal
procedure Connect(Socket: TSocket); override;
C++
virtual __fastcall Connect(TSocket Socket);

Applications can not call this protected method. Connect is called in response to notifications that the client socket has successfully completed a connection to a server socket. The Socket parameter is the Windows socket handle for the socket that receives the notification. 

Connect generates an OnSocketEvent event with the SocketEvent parameter set to seConnect. Socket components assign an OnSocketEvent event handler that responds to this event by generating an OnConnect event on the socket component.

Note: Connect is only called if the ASyncStyles property includes asConnect.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!