diff options
author | Aki <please@ignore.pl> | 2021-08-15 16:30:27 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-08-15 16:30:27 +0200 |
commit | 3070ac071925261691d785b78450483f996d2e51 (patch) | |
tree | b62e907871f8ae56f84376b5233db8f24936c45e /plop.c | |
parent | 3ac2cb114a38ea683c1f0646ddba3ac49987b169 (diff) | |
download | plop-3070ac071925261691d785b78450483f996d2e51.zip plop-3070ac071925261691d785b78450483f996d2e51.tar.gz plop-3070ac071925261691d785b78450483f996d2e51.tar.bz2 |
Removed epoll dependency from client logic
Diffstat (limited to 'plop.c')
-rw-r--r-- | plop.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -140,11 +140,10 @@ int plop_load_handler(lua_State * L, const char * path) /// Handles client events. /// \param L Server's Lua state -/// \param event Event for client +/// \param c Connection associated with the client /// \return -1 if an error occured -int plop_handle_client(lua_State * L, struct epoll_event * event) +int plop_handle_client(lua_State * L, struct connection * c) { - struct connection * c = (struct connection *) event->data.ptr; int nargs = 0; if (NULL == c->L) |