aboutsummaryrefslogtreecommitdiff
path: root/websocksy.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-05-18 19:20:21 +0200
committercbdev <cb@cbcdn.com>2019-05-18 19:20:21 +0200
commit49ce320f17729a0cf0df0bd1322639ddf55e2402 (patch)
treeab378ab9e21ff1d514e5264a219a39b6d72c75fc /websocksy.h
parentff94e4518d417d88f2fabdfca7025e68ce21849b (diff)
downloadwebsocksy-49ce320f17729a0cf0df0bd1322639ddf55e2402.tar.gz
websocksy-49ce320f17729a0cf0df0bd1322639ddf55e2402.tar.bz2
websocksy-49ce320f17729a0cf0df0bd1322639ddf55e2402.zip
Basic websocket framing
Diffstat (limited to 'websocksy.h')
-rw-r--r--websocksy.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/websocksy.h b/websocksy.h
index 275b9ab..dd34959 100644
--- a/websocksy.h
+++ b/websocksy.h
@@ -11,6 +11,16 @@ typedef enum {
ws_open
} ws_state;
+//RFC Section 5.2
+typedef enum {
+ ws_frame_continuation = 0,
+ ws_frame_text = 1,
+ ws_frame_binary = 2,
+ ws_frame_close = 8,
+ ws_frame_ping = 9,
+ ws_frame_pong = 10
+} ws_operation;
+
struct {
char* host;
char* port;