| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- namespace Renci.SshNet.Messages.Connection
- {
- /// <summary>
- /// Used to open "session" channel type
- /// </summary>
- internal class SessionChannelOpenInfo : ChannelOpenInfo
- {
- /// <summary>
- /// Specifies channel open type
- /// </summary>
- public const string NAME = "session";
- /// <summary>
- /// Gets the type of the channel to open.
- /// </summary>
- /// <value>
- /// The type of the channel to open.
- /// </value>
- public override string ChannelType
- {
- get { return NAME; }
- }
- /// <summary>
- /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class.
- /// </summary>
- public SessionChannelOpenInfo()
- {
- }
- /// <summary>
- /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class from the
- /// specified data.
- /// </summary>
- /// <exception cref="ArgumentNullException"><paramref name="data"/> is <c>null</c>.</exception>
- public SessionChannelOpenInfo(byte[] data)
- {
- Load(data);
- }
- }
- }
|