0 votes
by (72.7k points)

Note: This question was created from this comment.

I have couple questions regarding the SshChannel.
What is the ExtendedDataReceived event for? (What is extended data?)

Does the SendBreak() simply send the 0xFF 0xF3 to the host?
What is it for and what is the meaning of breaklength parameter?

Thanks!

1 Answer

0 votes
by (72.7k points)

SshChannel.ExtendedDataReceived:

It provides data received by SSH_MSG_CHANNEL_EXTENDED_DATA packet.
This is typically used by the server for stderr.

Data provided by the Receive() method corresponds to SSH_MSG_CHANNEL_DATA packets. It is typically used by the server for stdout.

SshChannel.SendBreak(breaklength):

Implements Session Channel Break Extension defined by RFC 4335.
The breaklength parameter is:

Break length, in milliseconds

It corresponds to break-length field in the packet:

    byte      SSH_MSG_CHANNEL_REQUEST
    uint32    recipient channel
    string    "break"
    boolean   want_reply
    uint32    break-length in milliseconds
...