RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerWinSocket.OnGetSocket Event

Occurs when the server socket needs to create a new TServerClientWinSocket object to form the connection to a client socket.

Pascal
property OnGetSocket: TGetSocketEvent;
C++
__property TGetSocketEvent OnGetSocket;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!