System.Win.ScktComp.TServerWinSocket.OnClientWrite

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnClientWrite: TSocketNotifyEvent read FOnClientWrite write FOnClientWrite;

C++

__property TSocketNotifyEvent OnClientWrite = {read=FOnClientWrite, write=FOnClientWrite};

Properties

Type Visibility Source Unit Parent
event public
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerWinSocket

Description

Occurs when the server socket should write information to a client socket.

Write an OnClientWrite event handler to write to the socket connection. Use a TWinSocketStream object or the methods of the Socket parameter to do the actual writing.

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 OnClientWrite event handler is thread-safe. Use the GetClientThread method to access thread-specific information.

Note: The OnClientWrite event handler for TServerWinSocket is also set when setting the OnClientWrite event handler of the associated TServerSocket.

See Also