Added the IsNoStatusCode (CloseStatusCode) method

master
sta 11 years ago
parent fa936b1743
commit a74f109649

@ -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;

Loading…
Cancel
Save