From 7369505397cdfddf0883e2c24e1652df8bd488fe Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 16 Dec 2022 13:53:35 +0800 Subject: Refactor file structure --- src/connection.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/connection.h (limited to 'src/connection.h') diff --git a/src/connection.h b/src/connection.h new file mode 100644 index 0000000..4e14487 --- /dev/null +++ b/src/connection.h @@ -0,0 +1,15 @@ +#include "tsocket.h" +#include "evloop.h" + +#ifndef __CONNECTION_H +#define __CONNECTION_H + +struct connection; +typedef struct connection connection_t; + +connection_t *connection_create(struct tsocket *sock); +void connection_destroy(struct connection *conn); + +event_t *connection_create_event(struct tsocket *sock); + +#endif -- cgit v1.2.3