TBlockSocket.RecvTerminated
TBlockSocket

function RecvTerminated(Timeout: Integer; Const Terminator: string): string; virtual;

Unit
blcksock

Description
Method waits until data string is received. This string is terminated by Terminator string. The resulting string is returned without this termination.

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

Methods serves for line protocols implementation and uses its own LineBuffer to maximize operation power. Therefore do NOT use this method with other methods for data receiving because of possible data loss. You may combine this function only with RecvBufferEx method!

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

See also:
RecvString