sock: add addr argument to listen_sock()

instead of using config.ipAddr internally.
This is in preparation to make it possible
to call it for multiple addresses.

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Michael Adam committed 2013-11-09 13:34:33 +01:00
1 parent 7eea1638bc
commit 2bd919f01e
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@
#define MAXLINE (1024 * 4)
extern int opensock (const char *host, int port, const char *bind_to);
extern int listen_sock (uint16_t port);
extern int listen_sock (const char *addr, uint16_t port);
extern int socket_nonblocking (int sock);
extern int socket_blocking (int sock);