Table of Contents

Class ChannelDataMessage

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

Represents SSH_MSG_CHANNEL_DATA message.

public class ChannelDataMessage : ChannelMessage
Inheritance
ChannelDataMessage
Inherited Members

Constructors

ChannelDataMessage()

Initializes a new instance of the ChannelDataMessage class.

public ChannelDataMessage()

ChannelDataMessage(uint, byte[])

Initializes a new instance of the ChannelDataMessage class.

public ChannelDataMessage(uint localChannelNumber, byte[] data)

Parameters

localChannelNumber uint

The local channel number.

data byte[]

Message data.

ChannelDataMessage(uint, byte[], int, int)

Initializes a new instance of the ChannelDataMessage class.

public ChannelDataMessage(uint localChannelNumber, byte[] data, int offset, int size)

Parameters

localChannelNumber uint

The local channel number.

data byte[]

The message data.

offset int

The zero-based byte offset in data at which to begin reading or writing data from.

size int

The number of bytes of data to read or write.

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.

Data

Gets the message data.

public byte[] Data { get; }

Property Value

byte[]

The data.

Remarks

The actual data to read or write depends on the Offset and Size.

MessageName

public override string MessageName { get; }

Property Value

string

MessageNumber

public override byte MessageNumber { get; }

Property Value

byte

Offset

Gets the zero-based offset in Data at which the data begins.

public int Offset { get; }

Property Value

int

The zero-based offset in Data at which the data begins.

Size

Gets the number of bytes of Data to read or write.

public int Size { get; }

Property Value

int

The number of bytes of Data to read or write.

Methods

LoadData()

Loads the data.

protected override void LoadData()

SaveData()

Saves the data.

protected override void SaveData()