Show: Delphi C++
Display Preferences

System.Win.ScktComp.TServerSocket.OnClientRead

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnClientRead: TSocketNotifyEvent index 0 read GetOnClientEvent write SetOnClientEvent;

C++

__property OnClientRead;

Properties

Type Visibility Source Unit Parent
event published
System.Win.ScktComp.pas
System.Win.ScktComp.hpp
System.Win.ScktComp TServerSocket

Description

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

System.Win.ScktComp.TServerSocket.OnClientRead inherits from System.Win.ScktComp.TCustomServerSocket.OnClientRead. All content below this line refers to System.Win.ScktComp.TCustomServerSocket.OnClientRead.

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance