Internet Direct (Indy) Version 9.0.1 Beta
TIdTCPStream.Read
Implements stream input from a socket connection.

function Read(var ABuffer; ACount: Longint): Longint; override;
Parameters
var ABuffer
Buffer to receive values read from the socket connection.

ACount: Longint
Number of Bytes read from the socket connection.

Returns
LongInt - Number of bytes read from the socket connection.

Description
Read is an overriden LongInt function that implements stream input from the associated socket handle in Connection. Read calls TIdTCPConnection.ReadBuffer using the input parameters ABuffer and ACount to perform input of values from the Connection. Values read from the socket Connection are stored in the ABuffer input parameter. The return value for Read is the actual number of bytes read from the Connection and stored in the input variable ACount.