summaryrefslogtreecommitdiffhomepage
path: root/plop.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2020-08-16 01:34:46 +0200
committerAki <please@ignore.pl>2020-08-16 01:34:46 +0200
commit67671f75955eaeb5f44bcd8717417f7ba7007c4b (patch)
treeec578dcf3371e6b7f865802eadadb5210593bc93 /plop.h
parent8704dabe2d6f1129787266dfab089aea23d92f15 (diff)
downloadplop-67671f75955eaeb5f44bcd8717417f7ba7007c4b.zip
plop-67671f75955eaeb5f44bcd8717417f7ba7007c4b.tar.gz
plop-67671f75955eaeb5f44bcd8717417f7ba7007c4b.tar.bz2
Switched to epoll
Diffstat (limited to 'plop.h')
-rw-r--r--plop.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/plop.h b/plop.h
index c12b43b..1aeec7f 100644
--- a/plop.h
+++ b/plop.h
@@ -1,6 +1,6 @@
#pragma once
-#include <poll.h>
+#include <sys/epoll.h>
#include <lua.h>
@@ -9,5 +9,5 @@
int make_server(const char *, const char *);
int load_handler(lua_State *, const char *);
-int handle_client(lua_State *, struct pollfd *, struct request **, const int);
-int handle_server(struct pollfd *, int, const int);
+int handle_client(lua_State *, struct epoll_event *);
+int handle_server(lua_State *, const int, const int);