aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-10-14 03:36:47 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-10-14 03:36:51 +0200
commit8ce21af2486b2da3273d554ffdf058cb07f49a8f (patch)
treec4e4425e78cb5c9c300e9b2281b1b1818c80a3dd /include
parenta5b3db69c366866398aaa30053f5b83e8e7e491a (diff)
Another test
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;
};