Class ChannelDataMessage
- Namespace
- Renci.SshNet.Messages.Connection
- Assembly
- Renci.SshNet.dll
Represents SSH_MSG_CHANNEL_DATA message.
public class ChannelDataMessage : ChannelMessage
Inheritance
Inherited Members
Constructors
ChannelDataMessage()
Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelDataMessage class.
public ChannelDataMessage()
ChannelDataMessage(uint, byte[])
Initializes a new instance of the Renci.SshNet.Messages.Connection.ChannelDataMessage class.
public ChannelDataMessage(uint localChannelNumber, byte[] data)
Parameters
ChannelDataMessage(uint, byte[], int, int)
Initializes a new instance of the Renci.SshNet.Messages.Connection.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
Data
Gets the message data.
public byte[] Data { get; }
Property Value
- byte[]
Remarks
The actual data to read or write depends on the Renci.SshNet.Messages.Connection.ChannelDataMessage.Offset and Renci.SshNet.Messages.Connection.ChannelDataMessage.Size.
MessageName
Gets the message name as defined in RFC 4250.
public override string MessageName { get; }
Property Value
MessageNumber
Gets the message number as defined in RFC 4250.
public override byte MessageNumber { get; }
Property Value
Offset
Gets the zero-based offset in Renci.SshNet.Messages.Connection.ChannelDataMessage.Data at which the data begins.
public int Offset { get; }
Property Value
Size
Gets the number of bytes of Renci.SshNet.Messages.Connection.ChannelDataMessage.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()