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
localChannelNumberuintThe local channel number.
databyte[]The message data.
offsetintThe zero-based byte offset in
dataat which to begin reading or writing data from.sizeintThe number of bytes of
datato 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()