diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-06-07 22:00:42 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-06-07 22:00:45 +0200 |
commit | 214150db03411d90d6aee4044386d9f671304f3e (patch) | |
tree | 27ff7ebbadbc82adf3c45cab06dd2ed8233845d2 /include/sibs/IpAddress.hpp | |
parent | e6ed8f19771d23a2e3496eb8fd71187ce0acc615 (diff) |
Add bootstrap node, listen method
Diffstat (limited to 'include/sibs/IpAddress.hpp')
-rw-r--r-- | include/sibs/IpAddress.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sibs/IpAddress.hpp b/include/sibs/IpAddress.hpp index a0fad75..7b757f4 100644 --- a/include/sibs/IpAddress.hpp +++ b/include/sibs/IpAddress.hpp @@ -1,6 +1,5 @@ #pragma once -#include "../utils.hpp" #include <stdexcept> #include <string> #ifndef WIN32 @@ -21,11 +20,13 @@ namespace sibs class Ipv4 { - DISABLE_COPY(Ipv4) public: + Ipv4(); // 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(const Ipv4 &other); + Ipv4& operator = (const Ipv4 &other); std::string getAddress() const; unsigned short getPort() const; |