diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-09-28 09:16:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-28 09:16:14 +0200 |
commit | b9783f44c00d86c9e79153ae52649e20f60ea7eb (patch) | |
tree | 6c7c2ae9288c4f338ecb40d63d1be701d6cbcb1c /drivers/unix/net_socket_posix.h | |
parent | e8282f9ccee8daf77eb709f04c898e47b32d715a (diff) | |
parent | 9d9a14e289c2326f9ae224f6079faf9a8e8f0d11 (diff) | |
download | redot-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.h | 3 |
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(); |