adds lowercase synonyms for some constants

This commit is contained in:
Peter Thorson
2013-02-02 10:14:37 -06:00
parent 3a92ff981a
commit 6861398648

View File

@@ -64,6 +64,23 @@ union uint64_converter {
// WebSocket Opcodes are 4 bits. See spec section 5.2
namespace opcode {
enum value {
continuation = 0x0,
text = 0x1,
binary = 0x2,
rsv3 = 0x3,
rsv4 = 0x4,
rsv5 = 0x5,
rsv6 = 0x6,
rsv7 = 0x7,
close = 0x8,
ping = 0x9,
pong = 0xA,
control_rsvb = 0xB,
control_rsvc = 0xC,
control_rsvd = 0xD,
control_rsve = 0xE,
control_rsvf = 0xF,
CONTINUATION = 0x0,
TEXT = 0x1,
BINARY = 0x2,