Internet Direct (Indy)
Home
PreviousUpNext
TIdRawBase.ReceiveBuffer@@Integer@integer

Reads and buffers data from the socket connection.

Parameters 
Description 
ABuffer 
Buffer for data read from the connection.
 
AByteCount 
Number of bytes to read in to the buffer.
 
ATimeOut 
Timeout value. Default value is -1. 

Integer - Number of bytes read from the connection.

ReceiveBuffer is an Integer function used to receive and store data arriving on the socket connection. 

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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.