diff options
author | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-23 15:44:08 +0100 |
---|---|---|
committer | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-23 15:47:08 +0100 |
commit | 81b59a08b69d4872b06930aedd06a957c4acb7cc (patch) | |
tree | 363be779997930f24219193ca74d04a6e682affc /include/sibs/IpAddress.hpp | |
parent | 2b7ed06dcaa149f9ecc800ec17435dca1c04b861 (diff) |
Add data routing for failed p2p connections
Diffstat (limited to 'include/sibs/IpAddress.hpp')
-rw-r--r-- | include/sibs/IpAddress.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sibs/IpAddress.hpp b/include/sibs/IpAddress.hpp index 54cb58a..ea2a7bd 100644 --- a/include/sibs/IpAddress.hpp +++ b/include/sibs/IpAddress.hpp @@ -4,6 +4,7 @@ #include <string> #include <unordered_map> #include "../env.hpp" +#include "../types.hpp" #if OS_FAMILY != OS_FAMILY_WINDOWS #include <arpa/inet.h> #include <netdb.h> @@ -32,6 +33,7 @@ namespace sibs // If @ip is nullptr, then bind to all available sockets (typical for servers) // Throws InvalidAddressException on error. Ipv4(const char *ip, unsigned short port); + Ipv4(u16 family, u32 address, u16 port); Ipv4(const Ipv4 &other); Ipv4& operator = (const Ipv4 &other); |