diff options
Diffstat (limited to 'src/listen.h')
-rw-r--r-- | src/listen.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/listen.h b/src/listen.h index dd5e32d8c..1030d9b19 100644 --- a/src/listen.h +++ b/src/listen.h @@ -21,10 +21,20 @@ #include "../config.h" -extern int listenSocket; +#include <sys/select.h> +#include <sys/time.h> +#include <sys/types.h> +#include <unistd.h> -int establish(unsigned short port); +void establish(unsigned int port); -void getConnections(int sock); +void getConnections(fd_set * fds); + +int isAListenSocket(int sock); + +void closeAllListenSockets(); + +/* fdmax should be initialized to something */ +void addListenSocketsToFdSet(fd_set * fds, int * fdmax); #endif |