OpCode.cs 922 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperWebSocket.Protocol
  6. {
  7. class OpCode
  8. {
  9. public const sbyte Plain = -2; // defined by SuperWebSocket, to support hybi-00
  10. public const string PlainTag = "-2";
  11. public const sbyte Handshake = -1; // defined by SuperWebSocket
  12. public const string HandshakeTag = "-1";
  13. public const sbyte Continuation = 0;
  14. public const string ContinuationTag = "0";
  15. public const sbyte Text = 1;
  16. public const string TextTag = "1";
  17. public const sbyte Binary = 2;
  18. public const string BinaryTag = "2";
  19. public const sbyte Close = 8;
  20. public const string CloseTag = "8";
  21. public const sbyte Ping = 9;
  22. public const string PingTag = "9";
  23. public const sbyte Pong = 10;
  24. public const string PongTag = "10";
  25. }
  26. }