diff options
-rw-r--r-- | main.c | 2 | ||||
-rw-r--r-- | plop.c | 2 | ||||
-rw-r--r-- | plop.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -79,7 +79,7 @@ int main(int argc, char ** argv) struct epoll_event e; e.events = EPOLLIN; e.data.ptr = NULL; // TODO: Consider putting server's Lua state in here? - const int server = plop_make_server(NULL, service); // TODO: Check server's fd before ctl? + const int server = open_server(NULL, service); // TODO: Check server's fd before ctl? if (-1 == epoll_ctl(efd, EPOLL_CTL_ADD, server, &e)) { @@ -40,7 +40,7 @@ lua_State * plop_initialize_lua(void) /// \return File descriptor of the socket or -1 in case of an error /// \see getaddrinfo(3) // TODO: Handle UNIX sockets -int plop_make_server(const char * node, const char * service) +int open_server(const char * node, const char * service) { struct addrinfo hints = { .ai_family = AF_UNSPEC, @@ -5,7 +5,7 @@ #include <lua.h> lua_State * plop_initialize_lua(void); -int plop_make_server(const char *, const char *); +int open_server(const char *, const char *); int plop_load_handler(lua_State *, const char *); int plop_handle_client(lua_State *, struct epoll_event *); int plop_handle_server(lua_State *, const int, const int); |