#pragma once #include #include #include "connection.h" struct plop { const char * handler; lua_State * L; struct pollfd * fds; struct connection ** data; int nfds; }; extern struct plop plop; lua_State * plop_initialize_lua(void); int open_server(const char *, const char *); int plop_load_handler(lua_State *, const char *); void plop_drop_thread(const int); int plop_handle_client(struct connection *); int plop_handle_server(const int);