System.Win.ScktComp.TCustomServerSocket.OnClientWrite
Delphi
property OnClientWrite: TSocketNotifyEvent index 1 read GetOnClientEvent
C++
__property TSocketNotifyEvent OnClientWrite = {read=GetOnClientEvent, write=SetOnClientEvent, index=1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | protected | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomServerSocket |
Description
Occurs when the server socket should write information to a client socket.
Write an OnClientWrite event handler to write to the socket connection. If the ServerType property is stThreadBlocking, use a TWinSocketStream object to prevent problems that arise while writing from causing the execution thread to hang indefinitely. Otherwise, use the methods of the Socket parameter to perform the actual writing.
Note: If ServerType is stThreadBlocking, make sure that all code in an OnClientWrite event handler is thread-safe. Use the GetClientThread method of the Sender parameter to access thread-specific information.