Internet Direct (Indy)
|
Reads a datagram from a remote connection.
function ReceiveBuffer( var ABuffer: TIdBytes; const AMSec: Integer = IdTimeoutDefault ): Integer; virtual; overload;
Parameters |
Description |
ABuffer |
Buffer where received data is stored. |
AMSec |
Milliseconds to wait for a readable connection. The default value is IdTimeoutDefault. |
Integer - Number of bytes read from the remote connection.
ReceiveBuffer is an overloaded integer function used to read a datagram from a remote connection into the buffer specified in ABuffer.
AMSec indicates the number of milliseconds to delay while waiting for the socket handle in Binding to become Readable. The default value for AMSec is IdTimeoutDefault, and indicates that the value in ReceiveTimeOut will be used as the timeout value. Otherwise the numeric value in AMSec is used.
ReceiveBuffer calls the overloaded ReceiveBuffer method using an empty IP address and port number for the endpoint of the tranmsmission.
IdTimeoutDefault TIdUDPBase.Binding TIdUDPBase.ReceiveTimeout TIdUDPBase.ReceiveBuffer TIdSocketHandle.Readable
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. |