Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsmCustomTLSClient.ReadLine

function ReadLine(out aLine: string; aTimeout: Cardinal = 0): Boolean; overload;
Reads one CRLF- or LF-terminated line, without the terminator. False on timeout or a clean close with no complete line buffered. Provided here rather than in each of SMTP/POP3/IMAP/NNTP because all of them need exactly this and would otherwise each grow their own copy. Shares Receive's RequireTLS gate.
function ReadLine(out aLine: string; aTimeout: Cardinal; aMaxBytes: Integer): Boolean; overload;
Rejects an accumulated FIRST line exceeding aMaxBytes, even before LF. CRLF is excluded from the count. Other lines buffered behind that first one are checked when consumed, not counted against it. Zero is unlimited, preserving the original overload.