summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-08 16:49:21 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-08 16:49:21 -0700
commit4d5a6a25d373b395fa7c7c374c2e0d6da7854e46 (patch)
treef3d2ae0ca44d3fbb0f055473ff30c46b2a7c7df8 /node/Network.hpp
parent9d9d0ef12ccb60bda417c6bfed576ae87380e7e4 (diff)
downloadinfinitytier-4d5a6a25d373b395fa7c7c374c2e0d6da7854e46.tar.gz
infinitytier-4d5a6a25d373b395fa7c7c374c2e0d6da7854e46.zip
Add events for packet decode errors, etc., and re-implement TRACE as an event.
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 8938ff1d..6a41fa67 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -333,6 +333,13 @@ public:
*/
void destroy();
+ inline bool operator==(const Network &n) const throw() { return (_id == n._id); }
+ inline bool operator!=(const Network &n) const throw() { return (_id != n._id); }
+ inline bool operator<(const Network &n) const throw() { return (_id < n._id); }
+ inline bool operator>(const Network &n) const throw() { return (_id > n._id); }
+ inline bool operator<=(const Network &n) const throw() { return (_id <= n._id); }
+ inline bool operator>=(const Network &n) const throw() { return (_id >= n._id); }
+
private:
ZT1_VirtualNetworkStatus _status() const;
void _externalConfig(ZT1_VirtualNetworkConfig *ec) const; // assumes _lock is locked