@ -128,13 +128,13 @@ namespace WebSocketSharp
internal bool IsBinary {
internal bool IsBinary {
get {
get {
return Opcode = = Opcode . B INARY ;
return Opcode = = Opcode . B inary ;
}
}
}
}
internal bool IsClose {
internal bool IsClose {
get {
get {
return Opcode = = Opcode . C LOSE ;
return Opcode = = Opcode . C lose ;
}
}
}
}
@ -146,21 +146,21 @@ namespace WebSocketSharp
internal bool IsContinuation {
internal bool IsContinuation {
get {
get {
return Opcode = = Opcode . C ONT ;
return Opcode = = Opcode . C ont ;
}
}
}
}
internal bool IsControl {
internal bool IsControl {
get {
get {
var opcode = Opcode ;
var opcode = Opcode ;
return opcode = = Opcode . C LOSE | | opcode = = Opcode . PING | | opcode = = Opcode . PONG ;
return opcode = = Opcode . C lose | | opcode = = Opcode . Ping | | opcode = = Opcode . Pong ;
}
}
}
}
internal bool IsData {
internal bool IsData {
get {
get {
var opcode = Opcode ;
var opcode = Opcode ;
return opcode = = Opcode . B INARY | | opcode = = Opcode . TEXT ;
return opcode = = Opcode . B inary | | opcode = = Opcode . Text ;
}
}
}
}
@ -172,7 +172,7 @@ namespace WebSocketSharp
internal bool IsFragmented {
internal bool IsFragmented {
get {
get {
return Fin = = Fin . More | | Opcode = = Opcode . C ONT ;
return Fin = = Fin . More | | Opcode = = Opcode . C ont ;
}
}
}
}
@ -185,25 +185,25 @@ namespace WebSocketSharp
internal bool IsPerMessageCompressed {
internal bool IsPerMessageCompressed {
get {
get {
var opcode = Opcode ;
var opcode = Opcode ;
return ( opcode = = Opcode . B INARY | | opcode = = Opcode . TEXT ) & & Rsv1 = = Rsv . On ;
return ( opcode = = Opcode . B inary | | opcode = = Opcode . Text ) & & Rsv1 = = Rsv . On ;
}
}
}
}
internal bool IsPing {
internal bool IsPing {
get {
get {
return Opcode = = Opcode . P ING ;
return Opcode = = Opcode . P ing ;
}
}
}
}
internal bool IsPong {
internal bool IsPong {
get {
get {
return Opcode = = Opcode . P ONG ;
return Opcode = = Opcode . P ong ;
}
}
}
}
internal bool IsText {
internal bool IsText {
get {
get {
return Opcode = = Opcode . T EXT ;
return Opcode = = Opcode . T ext ;
}
}
}
}
@ -322,27 +322,27 @@ namespace WebSocketSharp
private static bool isBinary ( Opcode opcode )
private static bool isBinary ( Opcode opcode )
{
{
return opcode = = Opcode . B INARY ;
return opcode = = Opcode . B inary ;
}
}
private static bool isClose ( Opcode opcode )
private static bool isClose ( Opcode opcode )
{
{
return opcode = = Opcode . C LOSE ;
return opcode = = Opcode . C lose ;
}
}
private static bool isContinuation ( Opcode opcode )
private static bool isContinuation ( Opcode opcode )
{
{
return opcode = = Opcode . C ONT ;
return opcode = = Opcode . C ont ;
}
}
private static bool isControl ( Opcode opcode )
private static bool isControl ( Opcode opcode )
{
{
return opcode = = Opcode . C LOSE | | opcode = = Opcode . PING | | opcode = = Opcode . PONG ;
return opcode = = Opcode . C lose | | opcode = = Opcode . Ping | | opcode = = Opcode . Pong ;
}
}
private static bool isData ( Opcode opcode )
private static bool isData ( Opcode opcode )
{
{
return opcode = = Opcode . T EXT | | opcode = = Opcode . BINARY ;
return opcode = = Opcode . T ext | | opcode = = Opcode . Binary ;
}
}
private static bool isFinal ( Fin fin )
private static bool isFinal ( Fin fin )
@ -357,17 +357,17 @@ namespace WebSocketSharp
private static bool isPing ( Opcode opcode )
private static bool isPing ( Opcode opcode )
{
{
return opcode = = Opcode . P ING ;
return opcode = = Opcode . P ing ;
}
}
private static bool isPong ( Opcode opcode )
private static bool isPong ( Opcode opcode )
{
{
return opcode = = Opcode . P ONG ;
return opcode = = Opcode . P ong ;
}
}
private static bool isText ( Opcode opcode )
private static bool isText ( Opcode opcode )
{
{
return opcode = = Opcode . T EXT ;
return opcode = = Opcode . T ext ;
}
}
private static WsFrame parse ( byte [ ] header , Stream stream , bool unmask )
private static WsFrame parse ( byte [ ] header , Stream stream , bool unmask )
@ -556,12 +556,12 @@ Extended Payload Len: {7}
internal static WsFrame CreateCloseFrame ( Mask mask , PayloadData payload )
internal static WsFrame CreateCloseFrame ( Mask mask , PayloadData payload )
{
{
return new WsFrame ( Opcode . C LOSE , mask , payload ) ;
return new WsFrame ( Opcode . C lose , mask , payload ) ;
}
}
internal static WsFrame CreatePongFrame ( Mask mask , PayloadData payload )
internal static WsFrame CreatePongFrame ( Mask mask , PayloadData payload )
{
{
return new WsFrame ( Opcode . P ONG , mask , payload ) ;
return new WsFrame ( Opcode . P ong , mask , payload ) ;
}
}
# endregion
# endregion
@ -570,12 +570,12 @@ Extended Payload Len: {7}
public static WsFrame CreateCloseFrame ( Mask mask , byte [ ] data )
public static WsFrame CreateCloseFrame ( Mask mask , byte [ ] data )
{
{
return new WsFrame ( Opcode . C LOSE , mask , new PayloadData ( data ) ) ;
return new WsFrame ( Opcode . C lose , mask , new PayloadData ( data ) ) ;
}
}
public static WsFrame CreateCloseFrame ( Mask mask , CloseStatusCode code , string reason )
public static WsFrame CreateCloseFrame ( Mask mask , CloseStatusCode code , string reason )
{
{
return new WsFrame ( Opcode . C LOSE , mask , new PayloadData ( ( ( ushort ) code ) . Append ( reason ) ) ) ;
return new WsFrame ( Opcode . C lose , mask , new PayloadData ( ( ( ushort ) code ) . Append ( reason ) ) ) ;
}
}
public static WsFrame CreateFrame (
public static WsFrame CreateFrame (
@ -586,12 +586,12 @@ Extended Payload Len: {7}
public static WsFrame CreatePingFrame ( Mask mask )
public static WsFrame CreatePingFrame ( Mask mask )
{
{
return new WsFrame ( Opcode . P ING , mask , new PayloadData ( ) ) ;
return new WsFrame ( Opcode . P ing , mask , new PayloadData ( ) ) ;
}
}
public static WsFrame CreatePingFrame ( Mask mask , byte [ ] data )
public static WsFrame CreatePingFrame ( Mask mask , byte [ ] data )
{
{
return new WsFrame ( Opcode . P ING , mask , new PayloadData ( data ) ) ;
return new WsFrame ( Opcode . P ing , mask , new PayloadData ( data ) ) ;
}
}
public IEnumerator < byte > GetEnumerator ( )
public IEnumerator < byte > GetEnumerator ( )