From aee742e7675dfc125f31fbe00fafeda53c532b05 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 10 Apr 2014 16:30:15 -0700 Subject: More toward GitHub issue #56 --- node/InetAddress.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node/InetAddress.hpp') 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() { -- cgit v1.2.3