System.Win.ScktComp.TCustomWinSocket.OnSocketEvent
Delphi
property OnSocketEvent: TSocketEventEvent read FOnSocketEvent write FOnSocketEvent;
C++
__property TSocketEventEvent OnSocketEvent = {read=FOnSocketEvent, write=FOnSocketEvent};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomWinSocket |
Description
Occurs when the Windows socket receives notification of asynchronous events.
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.