Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
fix enum numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rge committed Sep 30, 2012
1 parent e2184bb commit ecc70b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion websocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ enum wsFrameType wsParseInputFrame(uint8_t *inputFrame, size_t inputLength,
*outLength = payloadLength;

for (uint8_t i=0; i<*outLength; i++) {
inputFrameCursor[i] = inputFrameCursor[i] ^ *(maskingKey +i%4);
inputFrameCursor[i] = inputFrameCursor[i] ^ *(maskingKey + i%4);
}

if (opcode == 0x01)
Expand Down
8 changes: 4 additions & 4 deletions websocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ static const char version[] PROGMEM = "13";
static const char secret[] PROGMEM = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";

enum wsFrameType {
WS_EMPTY_FRAME,
WS_ERROR_FRAME,
WS_INCOMPLETE_FRAME,
WS_EMPTY_FRAME = -1,
WS_ERROR_FRAME = -2,
WS_INCOMPLETE_FRAME = -3,
WS_TEXT_FRAME = 0x01,
WS_BINARY_FRAME = 0x02,
WS_PING_FRAME = 0x09,
WS_PONG_FRAME = 0x0A,
WS_OPENING_FRAME,
WS_OPENING_FRAME = -4,
WS_CLOSING_FRAME = 0x08
};

Expand Down

0 comments on commit ecc70b8

Please sign in to comment.