Back to product page

Received event


Fires when there is data to be received.

Syntax

  • Basic
Private Sub object_Received(ByteCount)
The Received(object,ByteCount) syntax has these parts:
objectA wodSSH object.
ByteCountAn Integer value. The total number of bytes waiting to be read by your program.

Remarks

The Received event will be fired each time there is data to be read by your program using the Receive method. The ByteCount argument will hold the maximum number you should use with the Receive method once you decide to read the data. You do not have to call the Receive method immediately.

The Received event may be fired more than once, even when you did not collect data from previous event. However, calling Receive will always read all the data, starting from bytes that arrived first. It will not discard ones you didn't Receive.

Platforms

Windows