aboutsummaryrefslogtreecommitdiff
path: root/include/sibs
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-14 03:36:47 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commitfdbcee4063db89a8ba49cc5c2367376884f4b9d4 (patch)
treef1255d7066bf223601e81d8f18f0c2d541eddaee /include/sibs
parent10b5eab3e2ba705b73ce3d8b7d8c623ba09bfc82 (diff)
Another test
Diffstat (limited to 'include/sibs')
-rw-r--r--include/sibs/DirectConnection.hpp2
-rw-r--r--include/sibs/IpAddress.hpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/sibs/DirectConnection.hpp b/include/sibs/DirectConnection.hpp
index 62d15ad..4b5c67f 100644
--- a/include/sibs/DirectConnection.hpp
+++ b/include/sibs/DirectConnection.hpp
@@ -44,7 +44,7 @@ namespace sibs
DISABLE_COPY(DirectConnections)
friend class BootstrapNode;
public:
- DirectConnections(u16 port = 27137);
+ DirectConnections(u16 port = 0);
~DirectConnections();
// Throws ConnectionException on error
diff --git a/include/sibs/IpAddress.hpp b/include/sibs/IpAddress.hpp
index 7b757f4..c3b43c4 100644
--- a/include/sibs/IpAddress.hpp
+++ b/include/sibs/IpAddress.hpp
@@ -30,6 +30,8 @@ namespace sibs
std::string getAddress() const;
unsigned short getPort() const;
+
+ bool operator == (const Ipv4 &other) const;
struct sockaddr_in address;
};