aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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;
};