Internet Direct (Indy) Version 9.0.1 Beta
TIdIOHandlerSocket.Recv
Performs an input operation using a socket handle.

function Recv(var ABuf; ALen: integer): integer; override;
Parameters
var ABuf
Destination buffer for values read from the connection.

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

Returns
Integer - Acutal number of bytes read from the connection.

Description
Recv is an overridden Integer function that performs an input operation using the socket handle in Binding. Recv calls the TIdSocketHandle.Recv method, using the input parameters ABuf and ALen, to perform the read operation.

ABuf is the destination for values read from the socket handle in Binding.

ALen indicates the number of bytes expected from the input operation.

The return value for the method is the actual number of bytes read using the socket handle.