diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-03 19:42:54 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-03 19:42:54 +0000 |
commit | 405ad9e58bbb1be771d777f00b253e03061f6b2e (patch) | |
tree | 30737ecec65435621fc12eca129c2e2b6d1719c3 /src/listen.h | |
parent | 16335ba0976077e2fbc326afe66cc50efe622b6b (diff) | |
download | mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.gz mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.tar.xz mpd-405ad9e58bbb1be771d777f00b253e03061f6b2e.zip |
now one can specify multiple bind_to_addresses
git-svn-id: https://svn.musicpd.org/mpd/trunk@2501 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-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 |