Table of Contents

Class ChannelOpenMessage

Namespace
Renci.SshNet.Messages.Connection
Assembly
Renci.SshNet.dll

Represents SSH_MSG_CHANNEL_OPEN message.

public class ChannelOpenMessage : Message

Inheritance

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

channelNumber uint

The channel number.

initialWindowSize uint

Initial size of the window.

maximumPacketSize uint

Maximum size of the packet.

info ChannelOpenInfo

Information 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

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

ChannelOpenInfo

InitialWindowSize

Gets the initial size of the window.

public uint InitialWindowSize { get; }

Property Value

uint

LocalChannelNumber

Gets or sets the local channel number.

public uint LocalChannelNumber { get; protected set; }

Property Value

uint

MaximumPacketSize

Gets the maximum size of the packet.

public uint MaximumPacketSize { get; }

Property Value

uint

MessageName

Gets the message name as defined in RFC 4250.

public override string MessageName { get; }

Property Value

string

MessageNumber

Gets the message number as defined in RFC 4250.

public override byte MessageNumber { get; }

Property Value

byte

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()