diff options
author | June McEnroe <june@causal.agency> | 2019-10-20 14:49:04 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-10-20 14:49:04 -0400 |
commit | 48ee1e045709b5d2a08335f700c8b0a94566cf30 (patch) | |
tree | 22f356ca60e233fd85875ab0a9c575d03cadd85e /bouncer.h | |
parent | Move listen code to listen.c (diff) | |
download | pounce-48ee1e045709b5d2a08335f700c8b0a94566cf30.tar.gz pounce-48ee1e045709b5d2a08335f700c8b0a94566cf30.zip |
Remove pollfd from listen interface
Diffstat (limited to '')
-rw-r--r-- | bouncer.h | 6 |
1 files changed, 2 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. */ -#include <poll.h> #include <stdlib.h> #include <tls.h> @@ -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); |