#include "tsocket.h" #include "eventloop.h" #ifndef __CONNECTION_H #define __CONNECTION_H struct connection { struct tsocket *sock; }; struct connection *connectionNew(struct tsocket *sock); void connectionDel(struct connection *conn); struct event *connectionNewEvent(struct connection *conn); #endif