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 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:
MaxLineLength, RecvBufferEx, RecvByte, RecvPacket, RecvTerminated