#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