1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace SuperWebSocket.Protocol
- {
- /// <summary>
- /// Close status code for Hybi10
- /// </summary>
- public class CloseStatusCodeHybi10 : ICloseStatusCode
- {
- /// <summary>
- /// Initializes a new instance of the <see cref="CloseStatusCodeHybi10"/> class.
- /// </summary>
- public CloseStatusCodeHybi10()
- {
- NormalClosure = 1000;
- GoingAway = 1001;
- ProtocolError = 1002;
- NotAcceptableData = 1003;
- TooLargeFrame = 1004;
- InvalidUTF8 = 1007;
- ViolatePolicy = 1000;
- ExtensionNotMatch = 1000;
- UnexpectedCondition = 1000;
- TLSHandshakeFailure = 1000;
- NoStatusCode = 1005;
- }
- /// <summary>
- /// Gets the code for normal closure.
- /// </summary>
- public int NormalClosure { get; private set; }
- /// <summary>
- /// Gets the code for going away.
- /// </summary>
- public int GoingAway { get; private set; }
- /// <summary>
- /// Gets the code for protocol error.
- /// </summary>
- public int ProtocolError { get; private set; }
- /// <summary>
- /// Gets the code for not acceptable data.
- /// </summary>
- public int NotAcceptableData { get; private set; }
- /// <summary>
- /// Gets the code for too large frame.
- /// </summary>
- public int TooLargeFrame { get; private set; }
- /// <summary>
- /// Gets the code for invalid UT f8.
- /// </summary>
- public int InvalidUTF8 { get; private set; }
- /// <summary>
- /// Gets the code for violate policy.
- /// </summary>
- public int ViolatePolicy { get; private set; }
- /// <summary>
- /// Gets the code for extension not match.
- /// </summary>
- public int ExtensionNotMatch { get; private set; }
- /// <summary>
- /// Gets the code for unexpected condition.
- /// </summary>
- public int UnexpectedCondition { get; private set; }
- /// <summary>
- /// Gets the code for TLS handshake failure.
- /// </summary>
- public int TLSHandshakeFailure { get; private set; }
- /// <summary>
- /// Gets the code for no status code.
- /// </summary>
- public int NoStatusCode { get; private set; }
- }
- }
|