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