diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-27 19:30:28 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-27 19:30:28 +0000 |
commit | fa7c78d39976a0679315b5a8229594ced13a5b0f (patch) | |
tree | 63e5919d5f3ec9272955ce8888440f5062eaf645 /networkAddress.h | |
parent | added network prefix (diff) |
added networkAddress operators
Diffstat (limited to 'networkAddress.h')
-rw-r--r-- | networkAddress.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/networkAddress.h b/networkAddress.h index 371abf2..f20f018 100644 --- a/networkAddress.h +++ b/networkAddress.h @@ -49,11 +49,17 @@ class NetworkAddress { public: NetworkAddress(); + NetworkAddress(const NetworkAddress &); + NetworkAddress(in6_addr); + NetworkAddress(in_addr); + NetworkAddress(uint64_t); ~NetworkAddress(); void setNetworkAddress(const network_address_type_t type, const char * address ); void getNetworkAddress(const char *); network_address_type_t getNetworkAddressType(); bool operator<(const NetworkAddress &s) const; + NetworkAddress operator&(const NetworkAddress &s) const; + NetworkAddress operator<<(uint8_t shift) const; private: Mutex mutex_; |