SessionChannelOpenInfo.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. namespace Renci.SshNet.Messages.Connection
  3. {
  4. /// <summary>
  5. /// Used to open "session" channel type
  6. /// </summary>
  7. internal class SessionChannelOpenInfo : ChannelOpenInfo
  8. {
  9. /// <summary>
  10. /// Specifies channel open type
  11. /// </summary>
  12. public const string NAME = "session";
  13. /// <summary>
  14. /// Gets the type of the channel to open.
  15. /// </summary>
  16. /// <value>
  17. /// The type of the channel to open.
  18. /// </value>
  19. public override string ChannelType
  20. {
  21. get { return NAME; }
  22. }
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class.
  25. /// </summary>
  26. public SessionChannelOpenInfo()
  27. {
  28. }
  29. /// <summary>
  30. /// Initializes a new instance of the <see cref="SessionChannelOpenInfo"/> class from the
  31. /// specified data.
  32. /// </summary>
  33. /// <exception cref="ArgumentNullException"><paramref name="data"/> is <c>null</c>.</exception>
  34. public SessionChannelOpenInfo(byte[] data)
  35. {
  36. Load(data);
  37. }
  38. }
  39. }