System.Win.ScktComp.TCustomWinSocket.Write
Delphi
procedure Write(Socket: TSocket); virtual;
C++
virtual void __fastcall Write(NativeInt Socket);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Win.ScktComp.pas System.Win.ScktComp.hpp |
System.Win.ScktComp | TCustomWinSocket |
Description
Generates an OnSocketEvent of type seWrite in response to notifications that the socket connection is ready.
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.