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:
1 parent
7eea1638bc
commit
2bd919f01e
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user