using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SuperWebSocket.Protocol
{
///
/// Close status code for rfc6455
///
public class CloseStatusCodeRfc6455 : ICloseStatusCode
{
///
/// Initializes a new instance of the class.
///
public CloseStatusCodeRfc6455()
{
NormalClosure = 1000;
GoingAway = 1001;
ProtocolError = 1002;
NotAcceptableData = 1003;
TooLargeFrame = 1009;
InvalidUTF8 = 1007;
ViolatePolicy = 1008;
ExtensionNotMatch = 1010;
UnexpectedCondition = 1011;
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; }
}
}