WebSocket async working

This commit is contained in:
2023-01-03 16:12:45 +01:00
parent c1706edcea
commit 896486b64a
8 changed files with 108 additions and 92 deletions

View File

@ -38,7 +38,8 @@ typedef struct {
typedef struct {
client_ctx_t *client;
sock *s1, *s2, *s, *r;
sock *socket;
void *other;
} ws_ctx_t;
void tcp_acceptor_func(client_ctx_t *ctx);
@ -61,4 +62,8 @@ void tcp_close(client_ctx_t *ctx);
void proxy_close(proxy_ctx_t *ctx);
int ws_handle_connection(client_ctx_t *ctx);
void ws_close(ws_ctx_t *ctx);
#endif //SESIMOS_FUNC_H