ScktComp.TServerWinSocket.OnClientRead

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From ScktComp.pas

	property OnClientRead: TSocketNotifyEvent read FOnClientRead write FOnClientRead;


Unit: ScktComp

Type: event

Visibility: public

Member Of: TServerWinSocket

C++ Information

From ScktComp.hpp

	__property TSocketNotifyEvent OnClientRead;


Unit: ScktComp

Type: property

Visibility: public

Member Of: TServerWinSocket

Description

Occurs when the server socket should read information from a client socket.


Write an OnClientRead event handler to read from the socket connection. Use a TWinSocketStream object or the methods of the Socket parameter to do the reading.

The Sender parameter is the TServerWinClient object that received the client request. The Socket parameter is the TServerClientWinSocket object that encapsulates the Windows socket connection.

Note:  If ServerType is stThreadBlocking, make sure that all code in an OnClientRead event handler is thread-safe. Use the GetClientThread method to access thread-specific information.
Note:  The OnClientRead event handler for TServerWinSocket is also set when setting the OnClientRead event handler of the associated TServerSocket.

See Also

Personal tools
Translations
Newest Version