diff options
Diffstat (limited to 'websocksy.h')
-rw-r--r-- | websocksy.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/websocksy.h b/websocksy.h new file mode 100644 index 0000000..36a713d --- /dev/null +++ b/websocksy.h @@ -0,0 +1,25 @@ +#include <stdint.h> +#include <stdlib.h> + +struct { + char* host; + char* port; + struct { + char* name; + } backend; +} config = { + .host = "::", + .port = "8001", + .backend.name = "internal" +}; + +typedef struct { + char* name; + int fd; +} ws_proto; + +typedef struct /*_web_socket*/ { + int fd; + size_t protocols; + ws_proto* protocol; +} websocket; |