ICloseStatusCode.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. namespace SuperWebSocket.Protocol
  3. {
  4. /// <summary>
  5. /// Close status code interface
  6. /// </summary>
  7. public interface ICloseStatusCode
  8. {
  9. /// <summary>
  10. /// Gets the code for extension not match.
  11. /// </summary>
  12. int ExtensionNotMatch { get; }
  13. /// <summary>
  14. /// Gets the code for going away.
  15. /// </summary>
  16. int GoingAway { get; }
  17. /// <summary>
  18. /// Gets the code for invalid UT f8.
  19. /// </summary>
  20. int InvalidUTF8 { get; }
  21. /// <summary>
  22. /// Gets the code for normal closure.
  23. /// </summary>
  24. int NormalClosure { get; }
  25. /// <summary>
  26. /// Gets the code for not acceptable data.
  27. /// </summary>
  28. int NotAcceptableData { get; }
  29. /// <summary>
  30. /// Gets the code for protocol error.
  31. /// </summary>
  32. int ProtocolError { get; }
  33. /// <summary>
  34. /// Gets the code for TLS handshake failure.
  35. /// </summary>
  36. int TLSHandshakeFailure { get; }
  37. /// <summary>
  38. /// Gets the code for too large frame.
  39. /// </summary>
  40. int TooLargeFrame { get; }
  41. /// <summary>
  42. /// Gets the code for unexpected condition.
  43. /// </summary>
  44. int UnexpectedCondition { get; }
  45. /// <summary>
  46. /// Gets the code for violate policy.
  47. /// </summary>
  48. int ViolatePolicy { get; }
  49. /// <summary>
  50. /// Gets the code for no status code.
  51. /// </summary>
  52. int NoStatusCode { get; }
  53. }
  54. }