System.Win.ScktComp.TServerSocket.OnGetSocket
Delphi
property OnGetSocket: TGetSocketEvent read GetGetSocketEvent write SetGetSocketEvent;
C++
__property OnGetSocket;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | published | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TServerSocket |
Description
Occurs when the server socket needs to create a new TServerClientWinSocket object to represent the server endpoint of a connection to a client socket.
System.Win.ScktComp.TServerSocket.OnGetSocket inherits from System.Win.ScktComp.TCustomServerSocket.OnGetSocket. All content below this line refers to System.Win.ScktComp.TCustomServerSocket.OnGetSocket.
Occurs when the server socket needs to create a new TServerClientWinSocket object to represent the server endpoint of a connection to a client socket.
Write an OnGetSocket event handler to create a specialized descendant of TServerClientWinSocket for the server socket component to use. Return the new TServerClientWinSocket object in the ClientSocket parameter. The Sender parameter is the TServerWinSocket object that describes the server endpoint of the listening connection.