RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.OnSocketEvent Event

Occurs when the Windows socket receives notification of asynchronous events.

Pascal
property OnSocketEvent: TSocketEventEvent;
C++
__property TSocketEventEvent OnSocketEvent;

Socket components provide an OnSocketEvent event handler that converts Windows socket notifications into events on the socket component. Most applications will therefore not provide an event handler for OnSocketEvent. Replacing this event handler can prevent some expected events from occurring. 

The Sender parameter is the Windows socket object that owns the event handler. Usually, this is the same as the Socket parameter. 

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!