RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TAbstractSocket.InitSocket Method

Tells a Windows socket object to call the Error and Event methods.

Pascal
procedure InitSocket(Socket: TCustomWinSocket);
C++
__fastcall InitSocket(TCustomWinSocket Socket);

Applications cannot call this protected method. InitSocket is called automatically by the socket's constructor, immediately after the Windows socket object is created. It allows the socket component to respond to events on the Windows socket object by assigning an OnErrorEvent handler that calls Error and an OnSocketEvent handler that calls Event.  

The Socket parameter specifies the Windows socket object that passes events on to the socket component. 

 

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