Back to product page

PeekData method


Receives incoming data without removing it from the buffer.

Type

Byte[]

Syntax

  • C#
  • VB.NET
public Byte[] PeekData();
The PeekData() syntax has these parts:
Return valueNew byte array with received data.

public Function PeekData() As Byte[]
The PeekData() syntax has these parts:
Return valueNew byte array with received data.

Remarks

PeekData method is used to get data received from server represented as byte array, and store it to your program, but without removing it from wodSSH's incoming queue. Subsequent calls to PeekData or Receive/ReceiveData will return same bytes again.

If you prefer to get String representation of the data, use Peek method instead.

Platforms

Windows