Table of Contents

Class ChannelOpenFailureMessage

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

Represents SSH_MSG_CHANNEL_OPEN_FAILURE message.

public class ChannelOpenFailureMessage : ChannelMessage

Inheritance

Inherited Members

Constructors

ChannelOpenFailureMessage()

Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelOpenFailureMessage class.

public ChannelOpenFailureMessage()

ChannelOpenFailureMessage(uint, string, uint)

Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelOpenFailureMessage class.

public ChannelOpenFailureMessage(uint localChannelNumber, string description, uint reasonCode)

Parameters

localChannelNumber uint

The local channel number.

description string

The description.

reasonCode uint

The reason code.

ChannelOpenFailureMessage(uint, string, uint, string)

Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelOpenFailureMessage class.

public ChannelOpenFailureMessage(uint localChannelNumber, string description, uint reasonCode, string language)

Parameters

localChannelNumber uint

The local channel number.

description string

The description.

reasonCode uint

The reason code.

language string

The language (RFC3066).

Properties

BufferCapacity

Gets the size of the message in bytes.

protected override int BufferCapacity { get; }

Property Value

int

Description

Gets description for failure.

public string Description { get; }

Property Value

string

Language

Gets message language.

public string Language { get; }

Property Value

string

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

ReasonCode

Gets failure reason code.

public uint ReasonCode { get; }

Property Value

uint

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