Internet Direct (Indy) Version 9.0.2 Beta
TIdIOHandler.Recv
Reads data from an input source.

function Recv(var ABuf; ALen: Integer): Integer; virtual; abstract;
Parameters
var ABuf
Destination buffer for values read from the input source.

ALen: Integer
Number of bytes to read from the input source.

Returns
Integer - Number of bytes read.

Description
Recv is an abstract virtual Integer function that performs a read operation on an input source. Values read by the handler are stored in ABuf. ALen indicates the numbers of bytes expected in the read operation. The return value for the method is the actual number of bytes read from the input source.

Descendant classes must override this method to implement the specific functionality required to read data from the underlying socket handle or stream.