RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Connect Method

Provides the interface for a method that responds to connection notifications from client sockets.

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

Connect is called automatically 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. 

The Connect method for TCustomWinSocket does nothing with the notification. Descendants of TCustomWinSocket that represent client sockets override this method to respond to connection notifications. 

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!