Added the IsNoStatusCode (ushort) method

This commit is contained in:
sta 2015-01-20 17:57:09 +09:00
parent dc6250a0e3
commit 9a06b646d7

View File

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