1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once #include <lua.h> #include "request.h" struct connection { int fd; int lua_ref; lua_State * L; struct request * request; }; struct connection * connection_new(lua_State *, const int); void connection_clear(struct connection *); void connection_free(lua_State *, struct connection *);