summaryrefslogtreecommitdiffstats
path: root/drivers/unix/net_socket_posix.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-09-28 09:16:14 +0200
committerGitHub <noreply@github.com>2018-09-28 09:16:14 +0200
commitb9783f44c00d86c9e79153ae52649e20f60ea7eb (patch)
tree6c7c2ae9288c4f338ecb40d63d1be701d6cbcb1c /drivers/unix/net_socket_posix.h
parente8282f9ccee8daf77eb709f04c898e47b32d715a (diff)
parent9d9a14e289c2326f9ae224f6079faf9a8e8f0d11 (diff)
downloadredot-engine-b9783f44c00d86c9e79153ae52649e20f60ea7eb.tar.gz
Merge pull request #22490 from Faless/netsocket_cleanup
Remove socket_helper.h after NetSocket refactor
Diffstat (limited to 'drivers/unix/net_socket_posix.h')
-rw-r--r--drivers/unix/net_socket_posix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/unix/net_socket_posix.h b/drivers/unix/net_socket_posix.h
index 8177e01987..010f2ea6e0 100644
--- a/drivers/unix/net_socket_posix.h
+++ b/drivers/unix/net_socket_posix.h
@@ -39,6 +39,7 @@
#define SOCKET_TYPE SOCKET
#else
+#include <sys/socket.h>
#define SOCKET_TYPE int
#endif
@@ -68,6 +69,8 @@ protected:
public:
static void make_default();
static void cleanup();
+ static void _set_ip_port(struct sockaddr_storage *p_addr, IP_Address &r_ip, uint16_t &r_port);
+ static size_t _set_addr_storage(struct sockaddr_storage *p_addr, const IP_Address &p_ip, uint16_t p_port, IP::Type p_ip_type);
virtual Error open(Type p_sock_type, IP::Type &ip_type);
virtual void close();