ReceiveEventHandler Delegate

[C#]

public delegate void ReceiveEventHandler(
  object sender,
  bool stdErr,
  byte[] data,
  bool eof);

Parameters

  • sender: The source of the event.
  • stdErr: Are we receiving data for the stdout or stderr stream?
  • data: An array of type Byte that contains the received data.
  • eof: If eof=true (end-of-file), the server will send no more data over this channel. The client usually just replies with an EOF of its own, although it could still send data to the server as long as the channel is open.

Remarks

The event associated with this delegate is [ReceiveHandler]OnReceive. It is invoked one time when new data arrives for a [ClientSessionChannel]Receive request.