Topic Path: Symbol Reference > Classes > TIdUDPBase Class > TIdUDPBase Methods > ReceiveString Method > ReceiveString Method (Integer)
TIdUDPBase.ReceiveString Method (Integer)

Reads a datagram from a remote computer.

function ReceiveString(
    const AMSec: Integer = IdTimeoutDefault
): string; overload;
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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.