From 48ee1e045709b5d2a08335f700c8b0a94566cf30 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sun, 20 Oct 2019 14:49:04 -0400 Subject: Remove pollfd from listen interface --- bouncer.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bouncer.h') diff --git a/bouncer.h b/bouncer.h index b8e6362..13656ad 100644 --- a/bouncer.h +++ b/bouncer.h @@ -14,7 +14,6 @@ * along with this program. If not, see . */ -#include #include #include @@ -27,6 +26,5 @@ #endif void listenConfig(const char *cert, const char *priv); -size_t -listenBind(struct pollfd fds[], size_t cap, const char *host, const char *port); -struct tls *listenAccept(struct pollfd *poll, int fd); +size_t listenBind(int fds[], size_t cap, const char *host, const char *port); +int listenAccept(struct tls **client, int fd); -- cgit 1.4.1