summaryrefslogtreecommitdiffstats
path: root/common/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/socket.h')
-rw-r--r--common/socket.h5
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);
46int socket_connect_unix(const char *filename); 46int socket_connect_unix(const char *filename);
47#endif 47#endif
48int socket_create(uint16_t port); 48int socket_create(uint16_t port);
49int socket_connect_addr(struct sockaddr *addr, uint16_t port);
49int socket_connect(const char *addr, uint16_t port); 50int socket_connect(const char *addr, uint16_t port);
50int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout); 51int socket_check_fd(int fd, fd_mode fdm, unsigned int timeout);
51int socket_accept(int fd, uint16_t port); 52int socket_accept(int fd, uint16_t port);
@@ -62,4 +63,6 @@ int socket_send(int fd, void *data, size_t size);
62 63
63void socket_set_verbose(int level); 64void socket_set_verbose(int level);
64 65
66const 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 */