RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TServerClientWinSocket.Create Constructor

Creates and initializes an instance of TServerClientWinSocket.

Pascal
constructor Create(Socket: TSocket; ServerWinSocket: TServerWinSocket);
C++

Use Create to create an instance of TServerClientWinSocket in the OnGetSocket event handler of a server socket component. The Socket parameter is the Windows socket handle for the accepted socket connection to a client socket. The ServerWinSocket parameter is the Windows socket object for the listening connection that accepted the connection to the client socket. 

Create adds the new TServerClientWinSocket object to the list of connections maintained by the listening server socket. It then sets the OnSocketEvent event handler so that notifications from the connection to the client can be passed on to the server socket. After setting up the connection to the server socket, Create calls the inherited constructor. 

 

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