TBlockSocket.RecvString
TBlockSocket     

function RecvString(Timeout: Integer): string; virtual;

Unit
blcksock

Description
Note: This is high-level receive function. It using internal LineBuffer and you can combine this function freely with other high-level functions.

Method waits until data string is received. This string is terminated by CR-LF characters. The resulting string is returned without this termination (CR-LF).

If ConvertLineEnd is used, then CR-LF sequence may not be exactly CR-LF. See ConvertLineEnd description.

If no data is received within TIMEOUT (in milliseconds) period, LastError is set to WSAETIMEDOUT.

You may also specify maximum length of reading data by MaxLineLength property.


See also:
ConvertLineEnd, LineBuffer, MaxLineLength, RecvBufferEx, RecvByte, RecvPacket, RecvTerminated