RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Event Method

Triggers an OnSocketEvent event.

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

Event is called automatically when the Windows socket object receives notifications or when it performs certain actions. It generates the OnSocketEvent event. When overriding this method, be sure to call the inherited method, because socket components rely on the OnSocketEvent event to generate many of their own events. The Socket parameter indicates the Windows socket that generates or receives notification of the event. 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!