ScktComp.TCustomServerSocket.OnClientRead
From RAD Studio VCL Reference
Contents |
Delphi Information
From ScktComp.pas
property OnClientRead: TSocketNotifyEvent read GetOnClientEvent write SetOnClientEvent;
Unit: ScktComp
Type: event
Visibility: protected
Member Of: TCustomServerSocket
C++ Information
From ScktComp.hpp
__property TSocketNotifyEvent OnClientRead;
Unit: ScktComp
Type: property
Visibility: protected
Member Of: TCustomServerSocket
Description
Occurs when the server socket should read information from a client socket.
Write an OnClientRead event handler to read from 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 reading.
Note: If ServerType is stThreadBlocking, make sure that all code in an OnClientRead event handler is thread-safe. Use the GetClientThread method of the Sender parameter to access thread-specific information.