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
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
uintThe local channel number.
data
byte[]The message data.
offset
intThe zero-based byte offset in
data
at which to begin reading or writing data from.size
intThe 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
MessageName
public override string MessageName { get; }
Property Value
MessageNumber
public override byte MessageNumber { get; }
Property Value
Offset
Gets the zero-based offset in Data at which the data begins.
public int Offset { get; }
Property Value
Size
Gets the number of bytes of Data to read or write.
public int Size { get; }
Property Value
Methods
LoadData()
Loads the data.
protected override void LoadData()
SaveData()
Saves the data.
protected override void SaveData()