diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-10 16:30:15 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-10 16:30:15 -0700 |
| commit | aee742e7675dfc125f31fbe00fafeda53c532b05 (patch) | |
| tree | 0c37168cc39677c1a4896ec1d8fffc7ebbe5b867 /node/InetAddress.hpp | |
| parent | c9294c1a78fa86fbba38b1a81988ea7527b0872c (diff) | |
| download | infinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.tar.gz infinitytier-aee742e7675dfc125f31fbe00fafeda53c532b05.zip | |
More toward GitHub issue #56
Diffstat (limited to 'node/InetAddress.hpp')
| -rw-r--r-- | node/InetAddress.hpp | 6 |
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() { |
