RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TTcpClient.OnSend Event

Occurs just before a client socket writes information to the socket connection.

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

Write an OnSend event handler to perform actions just prior to sending data. Use OnSend to monitor the data stream and change it (for example, by removing linefeeds). If the socket is a blocking socket, use a TWinSocketStream object to write to the connection. Otherwise, use the methods of the Socket parameter to perform the actual writing. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!