ScktComp.TServerClientWinSocket.Create

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From ScktComp.pas

	constructor Create(Socket: Integer; ServerWinSocket: TServerWinSocket);


Unit: ScktComp

Type: constructor

Visibility: public

Member Of: TServerClientWinSocket

C++ Information

From ScktComp.hpp

	Scktcomp::TServerClientWinSocket * __fastcall TServerClientWinSocket(int Socket, Scktcomp::TServerWinSocket * ServerWinSocket);


Unit: ScktComp

Type: constructor

Visibility: public

Member Of: TServerClientWinSocket

Description

Creates and initializes an instance of TServerClientWinSocket.


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.

See Also

Personal tools
Translations
Newest Version