#ifndef CONN_H #define CONN_H #include #include #ifndef MSG_MAX_SIZE #define MSG_MAX_SIZE 16386 #endif struct conn { struct ev_io io; struct ev_timer timeout; size_t num_read; lua_State *L; char msg[MSG_MAX_SIZE]; }; int conn_init(struct ev_loop *loop, const char *socket_path); #endif