aboutsummaryrefslogtreecommitdiff
path: root/websocksy.h
diff options
context:
space:
mode:
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;