diff options
author | Aki <please@ignore.pl> | 2021-08-15 15:58:44 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-15 15:58:44 +0200 |
commit | a0473749524261367d91cee981d76e099bac6f83 (patch) | |
tree | 87cc608443f4cef5b6c7ec106f6a8b2a4cd50a6b | |
parent | c05d5a9faa363ee68776ec621d8c2cb86e3b9e24 (diff) | |
download | plop-a0473749524261367d91cee981d76e099bac6f83.zip plop-a0473749524261367d91cee981d76e099bac6f83.tar.gz plop-a0473749524261367d91cee981d76e099bac6f83.tar.bz2 |
Renamed plop_make_server to open_server
-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); |