Internet Direct (Indy)
Home
PreviousUpNext
TIdTCPStream.ReadLn@Integer@Boolean

Reads a single line of data from the socket-based stream.

Parameters 
Description 
AMaxLineLength 
Maximum line length permitted in the read operation. Default value is -1.
 
AExceptionIfEOF 
Indicates if an exception should be raised when an unexpected end-of-stream is encountered. Default value is False. 

string - Values read from the connection for the socket-based stream.

ReadLn is an overridden string function used to read a EOL-delimited line of data from the socket-based stream. 

AMaxLineLength indicates the maximum line length permitted in the read operation. The default value is -1, and indicated the maximum permitted in the Indy library will be used as the maximum line length. 

AExceptionIfEOF indicates if an exception should be raised when an unexpected end-of-stream is encountered. The default value is False. 

ReadLn uses the TIdIOHandler instance assigned to the Connection to gain access to IOHandler used for the read operation. ReadLn calls the TIdIOHandler.ReadLn method using EOL as the delimiter, and reads all data until the delimiter is encountered or the Connection is closed.

AExceptionIfEOF is unused at the moment.

Connection 

TIdIOHandler.ReadLn

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.