Internet Direct (Indy) Version 9.0.2 Beta
|
function ReceiveBuffer(var ABuffer; const AByteCount: Integer; ATimeOut: integer): integer;
ABuffer is the destination for data read from the connection. AByteCount indicates the number of bytes anticipated to be read from the socket connection. ATimeOut is the number of milliseconds to wait for the Binding to become readable.
When ATimeOut is less than 0, the value in ReceiveTimeout is used.
If the specified timeout period elapses, AByteCount is less than 1, or ABuffer is nil, then the return value for ReceiveBuffer is 0.