RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSocket.Event Method

Dispatches the events that occur in the normal operation of the socket to the appropriate event handlers.

Pascal
procedure Event(Socket: TCustomWinSocket; SocketEvent: TSocketEvent); override;
C++
virtual __fastcall Event(TCustomWinSocket Socket, TSocketEvent SocketEvent);

Applications cannot call Event. It is called automatically when various events occur. Override Event to introduce class-specific responses when certain events occur or to prevent the socket from calling the associated event handler.  

The Socket parameter indicates the Windows socket object that calls Event to indicate when specific events occur.  

The SocketEvent parameter indicates the event that occurred. 

 

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