Internet Direct (Indy) Version 9.0.2 Beta
TIdTCPConnection.CurrentReadBufferSize
Current size of the read buffer.

function CurrentReadBufferSize: Integer;
Description
CurrentReadBufferSize is an Integer function the indicates the current allocated size of the internal read buffer for a peer connection.

CurrentReadBufferSize is used in various methods that perform read operations to determine when all data has been read by the connection. CurrentReadBufferSize. CurrentReadBufferSize is used in ReadFromStack, ReadBuffer, ReadLn, and ReadStream. CurrentReadBufferSize is also used in CheckForDisconnect to determine if all data has been read for the connection, and if a exception can be raised when a client is disconnected.