summaryrefslogtreecommitdiff
path: root/node/InetAddress.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-04-10 16:30:15 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-04-10 16:30:15 -0700
commitaee742e7675dfc125f31fbe00fafeda53c532b05 (patch)
tree0c37168cc39677c1a4896ec1d8fffc7ebbe5b867 /node/InetAddress.hpp
parentc9294c1a78fa86fbba38b1a81988ea7527b0872c (diff)
downloadinfinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.tar.gz
infinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.zip
More toward GitHub issue #56
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()
{