RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomWinSocket.Write Method

Generates an OnSocketEvent of type seWrite in response to notifications that the socket connection is ready.

Pascal
procedure Write(Socket: TSocket); virtual;
C++
virtual __fastcall Write(TSocket Socket);

Write is called in response to asynchronous notifications that the socket connection is ready for the socket to send information. The Windows socket can write to the connection in the OnSocketEvent event handler or the socket component can write to the connection in an OnWrite or OnClientWrite event handler. The event handler can use the SendBuf method, the SendStream method, or the SendText method to write the information to the connection.

Note: Write is only called for asynchronous write notifications in a non-blocking socket. Blocking sockets must use their own mechanisms for determining when the connection is ready for the socket to write.
 

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