RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseSocket.OnReceive Event

Occurs after a socket receives data, but before it passes the data to the application.

Pascal
property OnReceive: TSocketDataEvent;
C++
__property TSocketDataEvent OnReceive;

Write an OnReceive event handler to read from the socket connection. Use the OnReceive event to filter data before passing it back to the client application. If the socket is a blocking socket, use a TWinSocketStream object to read from the connection. Otherwise, use the methods of the Socket parameter to perform the actual reading. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!