summaryrefslogtreecommitdiff
path: root/node/InetAddress.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/InetAddress.hpp')
-rw-r--r--node/InetAddress.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp
index e073172b..897b5242 100644
--- a/node/InetAddress.hpp
+++ b/node/InetAddress.hpp
@@ -101,6 +101,12 @@ public:
this->set(ipBytes,ipLen,port);
}
+ InetAddress(const uint32_t ipv4,unsigned int port)
+ throw()
+ {
+ this->set(&ipv4,4,port);
+ }
+
InetAddress(const std::string &ip,unsigned int port)
throw()
{