Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPStream.Write
Reimplements support for writing stream contents to a socket connection.

function Write(const ABuffer; ACount: Longint): Longint; override;
Parameters
const ABuffer
Values to be written to the socket connection.

ACount: Longint
Number of bytes written to the socket connection.

Returns
LongInt - Number of bytes written to the socket connection.

Description
Write is an overridden LongInt function that reimplements support for writing TStream contents to the socket handle specified in Connection. Write calls the TIdTCPConnection.WriteBuffer method, using the input parameters ABuffer and ACount, to perform the physical output of values to the socket connection. The return value for Write is the updated value of the ACount input parameter after the call to TIdTCPConnection.WriteBuffer.