Skip to content

Commit fa640e1

Browse files
committed
Improve documentation of LocalPacketSize.
1 parent 46966d3 commit fa640e1

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/Renci.SshNet/Channels/Channel.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,19 @@ protected ISession Session
120120
public uint LocalChannelNumber { get; private set; }
121121

122122
/// <summary>
123-
/// Gets the maximum size of a packet.
123+
/// Gets the maximum size of a data packet that we can receive using the channel.
124124
/// </summary>
125125
/// <value>
126126
/// The maximum size of a packet.
127127
/// </value>
128+
/// <remarks>
129+
/// <para>
130+
/// This is the maximum size (in bytes) we support for the data (payload) of a
131+
/// <c>SSH_MSG_CHANNEL_DATA</c> message we receive.
132+
/// </para>
133+
/// <para>
134+
/// We currently do not enforce this limit.
135+
/// </para>
128136
public uint LocalPacketSize { get; private set; }
129137

130138
/// <summary>

src/Renci.SshNet/Channels/IChannel.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,19 @@ internal interface IChannel : IDisposable
4343
uint LocalChannelNumber { get; }
4444

4545
/// <summary>
46-
/// Gets the maximum size of a packet.
46+
/// Gets the maximum size of a data packet that we can receive using the channel.
4747
/// </summary>
4848
/// <value>
4949
/// The maximum size of a packet.
5050
/// </value>
51+
/// <remarks>
52+
/// <para>
53+
/// This is the maximum size (in bytes) we support for the data (payload) of a
54+
/// <c>SSH_MSG_CHANNEL_DATA</c> message we receive.
55+
/// </para>
56+
/// <para>
57+
/// We currently do not enforce this limit.
58+
/// </para>
5159
uint LocalPacketSize { get; }
5260

5361
/// <summary>

0 commit comments

Comments
 (0)