Back to product page

PeekLine method


Receives incoming line without removing it from the buffer.

Type

String

Syntax

  • Basic
object.PeekLine
The PeekLine(object) syntax has these parts:
objectAn expression evaluating to an object of type wodTelnetDLX

Remarks

PeekLine method will return full line of text if it exists in incoming buffer, but will not remove it from the buffer. wodTelnetDLX will remove end-of-line markers (CR/LF) so you don't need to trim this string by yourself. If no line is found, wodTelnetDLX will return error 30043 ("None found"), and will not wait for data to arrive. To actually remove data from the incoming buffer, you should use Receive or ReceiveLine methods.

Platforms

Windows