|
TCPConnectionGetLine Full Description |
|
Syntax define external stream function TCPConnectionGetLine
value TCPConnection this-TCPConnection
multiline value switch read-to-double-line-end
optional initial {false}
timeout value counter timeout-in-milliseconds optional
as TCPConnectionGetLine
Purpose This function reads up to and including the next line-end sequence ("%13#%10#", or "%10#), or the next pair of line-end sequences if the multiline value is true, and returns the read characters. The returned characters are "normalized" as follows:
If a timeout value is set and then exceeded, either zero characters are returned or only those available, as seems appropriate. The TCP connection object is set to be in error. Note that difficulties inherent in deriving multiple sources from a connection apply equally to using Any attempt to do a Any attempt to do a Arguments:
Example
local TCPConnection TCP-Conn set TCP-Conn to TCPConnectionOpen on "localhost" at 5300 repeat exit unless TCPConnectionIsConnected TCP-Conn output TCPConnectionGetLine TCP-Conn again |