Back to product page

Peek method


Receives incoming data without removing it from the buffer.

Type

String

Syntax

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

Remarks

Peek method will return contents of incoming buffer, without removing it from the buffer. It can be used to check if expected data is received so it can be read all at once. You can call Peek method as many times as you like - it will not block wodTelnetDLX in any way (no matter if Blocking is set or not). This method will always return string expression - unlike Receive method it cannot return byte arrays.

Platforms

Windows