Internet Direct (Indy) Version 9.0.1 Beta
TIdIOHandlerStream.Recv
Performs stream-based input operations for the handler.

function Recv(var ABuf; ALen: integer): integer; override;
Parameters
var ABuf
Buffer to receive values read from the stream.

ALen: integer
Number of bytes to read from the stream.

Returns
Integer - Actual nmumber of bytes read from the stream.

Description
Recv is an overridden Integer function that implements read operations using the ReadStream for the input/output handler. If ReadStream does not a valid TSTream instance, the return value for the method is 0 (zero).

Recv uses the ReadStream object instance to load the number of bytes specified in ALen into the buffer specified in ABuf. The return value for the method is the actual number of bytes read from the stream.

Use Send to perform output operations using the handler.