ChannelOpenConfirmedEventArgs.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace Renci.SshNet.Common
  2. {
  3. /// <summary>
  4. /// Provides data for <see cref="Channels.ClientChannel.OpenConfirmed"/> event.
  5. /// </summary>
  6. internal class ChannelOpenConfirmedEventArgs : ChannelEventArgs
  7. {
  8. /// <summary>
  9. /// Initializes a new instance of the <see cref="ChannelOpenConfirmedEventArgs"/> class.
  10. /// </summary>
  11. /// <param name="remoteChannelNumber">The remote channel number.</param>
  12. /// <param name="initialWindowSize">The initial window size.</param>
  13. /// <param name="maximumPacketSize">The maximum packet size.</param>
  14. public ChannelOpenConfirmedEventArgs(uint remoteChannelNumber, uint initialWindowSize, uint maximumPacketSize)
  15. : base(remoteChannelNumber)
  16. {
  17. InitialWindowSize = initialWindowSize;
  18. MaximumPacketSize = maximumPacketSize;
  19. }
  20. /// <summary>
  21. /// Gets the initial size of the window.
  22. /// </summary>
  23. /// <value>
  24. /// The initial size of the window.
  25. /// </value>
  26. public uint InitialWindowSize { get; }
  27. /// <summary>
  28. /// Gets the maximum size of the packet.
  29. /// </summary>
  30. /// <value>
  31. /// The maximum size of the packet.
  32. /// </value>
  33. public uint MaximumPacketSize { get; }
  34. }
  35. }