Skip to content

Commit b69f798

Browse files
committed
extmod/modwebsocket.h: Split websocket-related defines for reuse.
1 parent 558fd5d commit b69f798

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

extmod/modwebsocket.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,11 @@
3333
#include "py/obj.h"
3434
#include "py/runtime.h"
3535
#include "py/stream.h"
36+
#include "extmod/modwebsocket.h"
3637

3738
#if MICROPY_PY_WEBSOCKET
3839

3940
enum { FRAME_HEADER, FRAME_OPT, PAYLOAD };
40-
#define FRAME_OPCODE_MASK 0x0f
41-
enum {
42-
FRAME_CONT, FRAME_TXT, FRAME_BIN,
43-
FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG
44-
};
4541

4642
enum { BLOCKING_WRITE = 0x80 };
4743

extmod/modwebsocket.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define FRAME_OPCODE_MASK 0x0f
2+
enum {
3+
FRAME_CONT, FRAME_TXT, FRAME_BIN,
4+
FRAME_CLOSE = 0x8, FRAME_PING, FRAME_PONG
5+
};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy