Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPBase.ReceiveString Method (Integer)

Reads a datagram from a remote computer.

Pascal
function ReceiveString(
    const AMSec: Integer = IdTimeoutDefault
): string; overload;
Parameters 
Description 
AMSec 
Timeout value for the read operation. 

string - Datagram read from the remote computer.

ReceiveString is an overloaded String function used to receive data from a remote computer system. 

AMSec indicates the number of milliseconds to delay while waiting for the socket handle in Binding to become Readable. 

ReceiveString calls the overloaded ReceiveString method using an empty IP and port number to the datagram. 

The return value for the method is the string contents of the buffer from ReceiveBuffer.

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.