System.Win.ScktComp.TServerWinSocket.OnGetSocket
Delphi
property OnGetSocket: TGetSocketEvent read FOnGetSocket write FOnGetSocket;
C++
__property TGetSocketEvent OnGetSocket = {read=FOnGetSocket, write=FOnGetSocket};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TServerWinSocket |
Description
Occurs when the server socket needs to create a new TServerClientWinSocket object to form the connection to a client socket.
Write an OnGetSocket event handler to create a specialized TServerClientWinSocket object to use in the connection represented by the Socket parameter. Return the new TServerClientWinSocket object in the ClientSocket parameter.
The Sender parameter is the TServerWinSocket object that received the client request. The Socket parameter is the Windows socket handle for the socket connection to the client socket.
Note: The OnGetSocket event handler for TServerWinSocket is also set when setting the OnGetSocket event handler of the associated TServerSocket.