[Modify] Edit it

This commit is contained in:
sta 2016-12-27 17:53:34 +09:00
parent a3c0d4bdfc
commit a2280fb3a7

View File

@ -36,12 +36,12 @@ namespace WebSocketSharp
/// <remarks> /// <remarks>
/// <para> /// <para>
/// The values of this enumeration are defined in /// The values of this enumeration are defined in
/// <see href="http://tools.ietf.org/html/rfc6455#section-7.4">Section 7.4</see> of RFC 6455. /// <see href="http://tools.ietf.org/html/rfc6455#section-7.4">
/// Section 7.4</see> of RFC 6455.
/// </para> /// </para>
/// <para> /// <para>
/// "Reserved value" must not be set as a status code in a connection close frame by /// "Reserved value" cannot be sent as a status code in
/// an endpoint. It's designated for use in applications expecting a status code to /// closing handshake by an endpoint.
/// indicate that the connection was closed due to the system grounds.
/// </para> /// </para>
/// </remarks> /// </remarks>
public enum CloseStatusCode : ushort public enum CloseStatusCode : ushort
@ -51,17 +51,19 @@ namespace WebSocketSharp
/// </summary> /// </summary>
Normal = 1000, Normal = 1000,
/// <summary> /// <summary>
/// Equivalent to close status 1001. Indicates that an endpoint is going away. /// Equivalent to close status 1001. Indicates that an endpoint is
/// going away.
/// </summary> /// </summary>
Away = 1001, Away = 1001,
/// <summary> /// <summary>
/// Equivalent to close status 1002. Indicates that an endpoint is terminating /// Equivalent to close status 1002. Indicates that an endpoint is
/// the connection due to a protocol error. /// terminating the connection due to a protocol error.
/// </summary> /// </summary>
ProtocolError = 1002, ProtocolError = 1002,
/// <summary> /// <summary>
/// Equivalent to close status 1003. Indicates that an endpoint is terminating /// Equivalent to close status 1003. Indicates that an endpoint is
/// the connection because it has received a type of data that it cannot accept. /// terminating the connection because it has received a type of
/// data that it cannot accept.
/// </summary> /// </summary>
UnsupportedData = 1003, UnsupportedData = 1003,
/// <summary> /// <summary>
@ -69,46 +71,49 @@ namespace WebSocketSharp
/// </summary> /// </summary>
Undefined = 1004, Undefined = 1004,
/// <summary> /// <summary>
/// Equivalent to close status 1005. Indicates that no status code was actually present. /// Equivalent to close status 1005. Indicates that no status code was
/// A Reserved value. /// actually present. A Reserved value.
/// </summary> /// </summary>
NoStatus = 1005, NoStatus = 1005,
/// <summary> /// <summary>
/// Equivalent to close status 1006. Indicates that the connection was closed abnormally. /// Equivalent to close status 1006. Indicates that the connection was
/// A Reserved value. /// closed abnormally. A Reserved value.
/// </summary> /// </summary>
Abnormal = 1006, Abnormal = 1006,
/// <summary> /// <summary>
/// Equivalent to close status 1007. Indicates that an endpoint is terminating /// Equivalent to close status 1007. Indicates that an endpoint is
/// the connection because it has received a message that contains data that /// terminating the connection because it has received a message that
/// isn't consistent with the type of the message. /// contains data that is not consistent with the type of the message.
/// </summary> /// </summary>
InvalidData = 1007, InvalidData = 1007,
/// <summary> /// <summary>
/// Equivalent to close status 1008. Indicates that an endpoint is terminating /// Equivalent to close status 1008. Indicates that an endpoint is
/// the connection because it has received a message that violates its policy. /// terminating the connection because it has received a message that
/// violates its policy.
/// </summary> /// </summary>
PolicyViolation = 1008, PolicyViolation = 1008,
/// <summary> /// <summary>
/// Equivalent to close status 1009. Indicates that an endpoint is terminating /// Equivalent to close status 1009. Indicates that an endpoint is
/// the connection because it has received a message that is too big to process. /// terminating the connection because it has received a message that
/// is too big to process.
/// </summary> /// </summary>
TooBig = 1009, TooBig = 1009,
/// <summary> /// <summary>
/// Equivalent to close status 1010. Indicates that a client is terminating /// Equivalent to close status 1010. Indicates that a client is
/// the connection because it has expected the server to negotiate one or more extension, /// terminating the connection because it has expected the server to
/// but the server didn't return them in the handshake response. /// negotiate one or more extension, but the server did not return
/// them in the handshake response.
/// </summary> /// </summary>
MandatoryExtension = 1010, MandatoryExtension = 1010,
/// <summary> /// <summary>
/// Equivalent to close status 1011. Indicates that a server is terminating /// Equivalent to close status 1011. Indicates that a server is
/// the connection because it has encountered an unexpected condition that /// terminating the connection because it has encountered an unexpected
/// prevented it from fulfilling the request. /// condition that prevented it from fulfilling the request.
/// </summary> /// </summary>
ServerError = 1011, ServerError = 1011,
/// <summary> /// <summary>
/// Equivalent to close status 1015. Indicates that the connection was closed /// Equivalent to close status 1015. Indicates that the connection was
/// due to a failure to perform a TLS handshake. A Reserved value. /// closed due to a failure to perform a TLS handshake. A Reserved value.
/// </summary> /// </summary>
TlsHandshakeFailure = 1015 TlsHandshakeFailure = 1015
} }