aboutsummaryrefslogtreecommitdiff
path: root/websocksy.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-05-25 15:57:20 +0200
committercbdev <cb@cbcdn.com>2019-05-25 15:57:20 +0200
commit20323140f55607d51199af8060b3d971451ae262 (patch)
treec0a20433ce5510e54d9fd2c222bb59fa5d570a46 /websocksy.h
parent79e063d6aa6116231fdfb374f52507236ca3770e (diff)
downloadwebsocksy-20323140f55607d51199af8060b3d971451ae262.tar.gz
websocksy-20323140f55607d51199af8060b3d971451ae262.tar.bz2
websocksy-20323140f55607d51199af8060b3d971451ae262.zip
Implement pongs, move to multiple TLUs
Diffstat (limited to 'websocksy.h')
-rw-r--r--websocksy.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/websocksy.h b/websocksy.h
index 59ec5b2..f50bb46 100644
--- a/websocksy.h
+++ b/websocksy.h
@@ -1,3 +1,5 @@
+#ifndef WEBSOCKSY_HEADER_INCLUDED
+#define WEBSOCKSY_HEADER_INCLUDED
#include <stdint.h>
#include <stdlib.h>
#include <nettle/sha1.h>
@@ -199,3 +201,9 @@ typedef struct /*_ws_backend*/ {
ws_backend_query query;
ws_backend_cleanup cleanup;
} ws_backend;
+
+/* Internal helper functions */
+char* xstr_lower(char* in);
+int client_register(websocket* ws);
+int client_connect(websocket* ws);
+#endif