diff options
| author | 2020-12-30 03:18:02 +0100 | |
|---|---|---|
| committer | 2020-12-30 03:18:02 +0100 | |
| commit | 52371bccdcb1b0fe98930e79ac2ab9bdad2700e2 (patch) | |
| tree | e7e2280486e616331de2f71fa946b4dc3dc5867f /common/socket.h | |
| parent | 9c3dd915ea00ce33d6dee359bcef963a586aaf05 (diff) | |
| download | libimobiledevice-52371bccdcb1b0fe98930e79ac2ab9bdad2700e2.tar.gz libimobiledevice-52371bccdcb1b0fe98930e79ac2ab9bdad2700e2.tar.bz2 | |
common: Merge socket changes from libusbmuxd
Diffstat (limited to 'common/socket.h')
| -rw-r--r-- | common/socket.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/socket.h b/common/socket.h index 38eeddf..9567270 100644 --- a/common/socket.h +++ b/common/socket.h | |||
| @@ -45,7 +45,7 @@ typedef enum fd_mode fd_mode; | |||
| 45 | int socket_create_unix(const char *filename); | 45 | int socket_create_unix(const char *filename); |
| 46 | int socket_connect_unix(const char *filename); | 46 | int socket_connect_unix(const char *filename); |
| 47 | #endif | 47 | #endif |
| 48 | int socket_create(uint16_t port); | 48 | int socket_create(const char *addr, uint16_t port); |
| 49 | int socket_connect_addr(struct sockaddr *addr, uint16_t port); | 49 | int socket_connect_addr(struct sockaddr *addr, uint16_t port); |
| 50 | int socket_connect(const char *addr, uint16_t port); | 50 | int socket_connect(const char *addr, uint16_t port); |
| 51 | int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); | 51 | int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); |
| @@ -54,12 +54,12 @@ int socket_accept(int fd, uint16_t port); | |||
| 54 | int socket_shutdown(int fd, int how); | 54 | int socket_shutdown(int fd, int how); |
| 55 | int socket_close(int fd); | 55 | int socket_close(int fd); |
| 56 | 56 | ||
| 57 | int socket_receive(int fd, void *data, size_t size); | 57 | int socket_receive(int fd, void *data, size_t length); |
| 58 | int socket_peek(int fd, void *data, size_t size); | 58 | int socket_peek(int fd, void *data, size_t length); |
| 59 | int socket_receive_timeout(int fd, void *data, size_t size, int flags, | 59 | int socket_receive_timeout(int fd, void *data, size_t length, int flags, |
| 60 | unsigned int timeout); | 60 | unsigned int timeout); |
| 61 | 61 | ||
| 62 | int socket_send(int fd, void *data, size_t size); | 62 | int socket_send(int fd, void *data, size_t length); |
| 63 | 63 | ||
| 64 | void socket_set_verbose(int level); | 64 | void socket_set_verbose(int level); |
| 65 | 65 | ||
