Skip to content
Snippets Groups Projects
Commit b69f798c authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

extmod/modwebsocket.h: Split websocket-related defines for reuse.

parent 558fd5d2
Branches
Tags
No related merge requests found
...@@ -33,15 +33,11 @@ ...@@ -33,15 +33,11 @@
#include "py/obj.h" #include "py/obj.h"
#include "py/runtime.h" #include "py/runtime.h"
#include "py/stream.h" #include "py/stream.h"
#include "extmod/modwebsocket.h"
#if MICROPY_PY_WEBSOCKET #if MICROPY_PY_WEBSOCKET
enum { FRAME_HEADER, FRAME_OPT, PAYLOAD }; enum { FRAME_HEADER, FRAME_OPT, PAYLOAD };
#define FRAME_OPCODE_MASK 0x0f
enum {
FRAME_CONT, FRAME_TXT, FRAME_BIN,
FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG
};
enum { BLOCKING_WRITE = 0x80 }; enum { BLOCKING_WRITE = 0x80 };
......
#define FRAME_OPCODE_MASK 0x0f
enum {
FRAME_CONT, FRAME_TXT, FRAME_BIN,
FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment