diff options
author | Nikias Bassen | 2020-05-28 04:06:28 +0200 |
---|---|---|
committer | Nikias Bassen | 2020-05-28 04:06:28 +0200 |
commit | 910166b3d67652abb54dece7e1cacdc9dcfdb659 (patch) | |
tree | b64196ba50cac4ddd666bff576035f362f754e4c /common/socket.h | |
parent | 1bfcffbb9ea297457b4f0237d179004371b6df48 (diff) | |
download | libusbmuxd-910166b3d67652abb54dece7e1cacdc9dcfdb659.tar.gz libusbmuxd-910166b3d67652abb54dece7e1cacdc9dcfdb659.tar.bz2 |
iproxy: Allow specifying source address for the listening socket
Diffstat (limited to 'common/socket.h')
-rw-r--r-- | common/socket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/socket.h b/common/socket.h index 38eeddf..f510147 100644 --- a/common/socket.h +++ b/common/socket.h @@ -45,7 +45,7 @@ typedef enum fd_mode fd_mode; int socket_create_unix(const char *filename); int socket_connect_unix(const char *filename); #endif -int socket_create(uint16_t port); +int socket_create(const char *addr, uint16_t port); int socket_connect_addr(struct sockaddr *addr, uint16_t port); int socket_connect(const char *addr, uint16_t port); int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); |