Class ChannelOpenMessage
- Namespace
- Renci.SshNet.Messages.Connection
- Assembly
- Renci.SshNet.dll
Represents SSH_MSG_CHANNEL_OPEN message.
public class ChannelOpenMessage : MessageInheritance
Inherited Members
Constructors
ChannelOpenMessage()
Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelOpenMessage class.
public ChannelOpenMessage()ChannelOpenMessage(uint, uint, uint, ChannelOpenInfo)
Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelOpenMessage class.
public ChannelOpenMessage(uint channelNumber, uint initialWindowSize, uint maximumPacketSize, ChannelOpenInfo info)Parameters
channelNumberuint-
The channel number.
initialWindowSizeuint-
Initial size of the window.
maximumPacketSizeuint-
Maximum size of the packet.
infoChannelOpenInfo-
Information specific to the type of the channel to open.
Exceptions
- ArgumentNullException
-
infois null.
Properties
BufferCapacity
Gets the size of the message in bytes.
protected override int BufferCapacity { get; }Property Value
ChannelType
Gets the type of the channel as ASCII encoded byte array.
public byte[] ChannelType { get; }Property Value
- byte[]
Info
Gets channel specific open information.
public ChannelOpenInfo Info { get; }Property Value
InitialWindowSize
Gets the initial size of the window.
public uint InitialWindowSize { get; }Property Value
LocalChannelNumber
Gets or sets the local channel number.
public uint LocalChannelNumber { get; protected set; }Property Value
MaximumPacketSize
Gets the maximum size of the packet.
public uint MaximumPacketSize { get; }Property Value
MessageName
Gets the message name as defined in RFC 4250.
public override string MessageName { get; }Property Value
MessageNumber
Gets the message number as defined in RFC 4250.
public override byte MessageNumber { get; }Property Value
Methods
LoadData()
Called when type specific data need to be loaded.
protected override void LoadData()SaveData()
Called when type specific data need to be saved.
protected override void SaveData()