diff options
Diffstat (limited to 'src/connection.h')
-rw-r--r-- | src/connection.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 |