From fdbcee4063db89a8ba49cc5c2367376884f4b9d4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 14 Oct 2018 03:36:47 +0200 Subject: Another test --- include/sibs/DirectConnection.hpp | 2 +- include/sibs/IpAddress.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/sibs') 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; }; -- cgit v1.2.3