diff options
| author | 2020-05-18 02:57:32 +0200 | |
|---|---|---|
| committer | 2020-05-18 02:57:32 +0200 | |
| commit | 798601d8ff09d4f80a2fd42119112846ea8f050e (patch) | |
| tree | bcac7a6a8f6a6b4d1da7e8153b84d0813caf6266 /common/socket.h | |
| parent | 05d2e6d09674a8f66a57b5d4b2b42a5b758d2054 (diff) | |
| download | libimobiledevice-798601d8ff09d4f80a2fd42119112846ea8f050e.tar.gz libimobiledevice-798601d8ff09d4f80a2fd42119112846ea8f050e.tar.bz2 | |
common: Update socket.c/.h from libusbmuxd
Diffstat (limited to 'common/socket.h')
| -rw-r--r-- | common/socket.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/socket.h b/common/socket.h index e31de6b..38eeddf 100644 --- a/common/socket.h +++ b/common/socket.h | |||
| @@ -1,8 +1,8 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * socket.h | 2 | * socket.h |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 2012-2020 Nikias Bassen <nikias@gmx.li> | ||
| 4 | * Copyright (C) 2012 Martin Szulecki <m.szulecki@libimobiledevice.org> | 5 | * Copyright (C) 2012 Martin Szulecki <m.szulecki@libimobiledevice.org> |
| 5 | * Copyright (C) 2012 Nikias Bassen <nikias@gmx.li> | ||
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| @@ -46,6 +46,7 @@ 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(uint16_t port); |
| 49 | int socket_connect_addr(struct sockaddr *addr, uint16_t port); | ||
| 49 | int socket_connect(const char *addr, uint16_t port); | 50 | int socket_connect(const char *addr, uint16_t port); |
| 50 | 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); |
| 51 | int socket_accept(int fd, uint16_t port); | 52 | int socket_accept(int fd, uint16_t port); |
| @@ -62,4 +63,6 @@ int socket_send(int fd, void *data, size_t size); | |||
| 62 | 63 | ||
| 63 | void socket_set_verbose(int level); | 64 | void socket_set_verbose(int level); |
| 64 | 65 | ||
| 66 | const char *socket_addr_to_string(struct sockaddr *addr, char *addr_out, size_t addr_out_size); | ||
| 67 | |||
| 65 | #endif /* SOCKET_SOCKET_H */ | 68 | #endif /* SOCKET_SOCKET_H */ |
