Class ChannelOpenMessage
- Namespace
- Renci.SshNet.Messages.Connection
- Assembly
- Renci.SshNet.dll
Represents SSH_MSG_CHANNEL_OPEN message.
public class ChannelOpenMessage : Message
- Inheritance
-
ChannelOpenMessage
- Inherited Members
Constructors
ChannelOpenMessage()
Initializes a new instance of the ChannelOpenMessage class.
public ChannelOpenMessage()
ChannelOpenMessage(uint, uint, uint, ChannelOpenInfo)
Initializes a new instance of the ChannelOpenMessage class.
public ChannelOpenMessage(uint channelNumber, uint initialWindowSize, uint maximumPacketSize, ChannelOpenInfo info)
Parameters
channelNumber
uintThe channel number.
initialWindowSize
uintInitial size of the window.
maximumPacketSize
uintMaximum size of the packet.
info
ChannelOpenInfoInformation specific to the type of the channel to open.
Exceptions
- ArgumentNullException
info
is null.
Properties
BufferCapacity
Gets the size of the message in bytes.
protected override int BufferCapacity { get; }
Property Value
- int
The size of the messages in bytes.
ChannelType
Gets the type of the channel as ASCII encoded byte array.
public byte[] ChannelType { get; }
Property Value
- byte[]
The type of the channel.
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
- uint
The initial size of the window.
LocalChannelNumber
Gets or sets the local channel number.
public uint LocalChannelNumber { get; protected set; }
Property Value
- uint
The local channel number.
MaximumPacketSize
Gets the maximum size of the packet.
public uint MaximumPacketSize { get; }
Property Value
- uint
The maximum size of the packet.
MessageName
public override string MessageName { get; }
Property Value
MessageNumber
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()