QualityOfService.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Microsoft.Xna.Framework.Net
  2. {
  3. /// <summary>
  4. /// Quality of service information for a network session.
  5. /// </summary>
  6. public class QualityOfService
  7. {
  8. /// <summary>
  9. /// Gets the average round trip time in milliseconds.
  10. /// </summary>
  11. public TimeSpan AverageRoundTripTime { get; internal set; } = TimeSpan.FromMilliseconds(50);
  12. /// <summary>
  13. /// Gets the minimum round trip time in milliseconds.
  14. /// </summary>
  15. public TimeSpan MinimumRoundTripTime { get; internal set; } = TimeSpan.FromMilliseconds(20);
  16. /// <summary>
  17. /// Gets the maximum round trip time in milliseconds.
  18. /// </summary>
  19. public TimeSpan MaximumRoundTripTime { get; internal set; } = TimeSpan.FromMilliseconds(100);
  20. /// <summary>
  21. /// Gets the bytes per second being sent.
  22. /// </summary>
  23. public int BytesPerSecondSent { get; internal set; } = 0;
  24. /// <summary>
  25. /// Gets the bytes per second being received.
  26. /// </summary>
  27. public int BytesPerSecondReceived { get; internal set; } = 0;
  28. /// <summary>
  29. /// Gets whether the connection is available.
  30. /// </summary>
  31. public bool IsAvailable { get; internal set; } = true;
  32. }
  33. }