Added the IsNoStatusCode (CloseStatusCode) method

This commit is contained in:
sta 2015-01-22 16:18:50 +09:00
parent fa936b1743
commit a74f109649

View File

@ -589,6 +589,11 @@ namespace WebSocketSharp
return code == (ushort) CloseStatusCode.NoStatusCode;
}
internal static bool IsNoStatusCode (this CloseStatusCode code)
{
return code == CloseStatusCode.NoStatusCode;
}
internal static bool IsPortNumber (this int value)
{
return value > 0 && value < 65536;