summaryrefslogtreecommitdiffstats
path: root/include/libimobiledevice-glue
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 11:16:29 +0200
committerGravatar Nikias Bassen2022-03-29 11:16:29 +0200
commit5950ea6d4139394c38c7bdc445725d04113c1fee (patch)
treebcab66ea0f869a1041b9baa635f6e0ef32c3f362 /include/libimobiledevice-glue
parent78c121323158f5fa7fe6137d7a49f9cc58ab6f7d (diff)
downloadlibimobiledevice-glue-5950ea6d4139394c38c7bdc445725d04113c1fee.tar.gz
libimobiledevice-glue-5950ea6d4139394c38c7bdc445725d04113c1fee.tar.bz2
socket: Add socket_get_socket_port function
Diffstat (limited to 'include/libimobiledevice-glue')
-rw-r--r--include/libimobiledevice-glue/socket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libimobiledevice-glue/socket.h b/include/libimobiledevice-glue/socket.h
index fac5df5..53f58b8 100644
--- a/include/libimobiledevice-glue/socket.h
+++ b/include/libimobiledevice-glue/socket.h
@@ -56,11 +56,11 @@ int socket_close(int fd);
int socket_receive(int fd, void *data, size_t length);
int socket_peek(int fd, void *data, size_t length);
-int socket_receive_timeout(int fd, void *data, size_t length, int flags,
- unsigned int timeout);
-
+int socket_receive_timeout(int fd, void *data, size_t length, int flags, unsigned int timeout);
int socket_send(int fd, void *data, size_t length);
+int socket_get_socket_port(int fd, uint16_t *port);
+
void socket_set_verbose(int level);
const char *socket_addr_to_string(struct sockaddr *addr, char *addr_out, size_t addr_out_size);