summaryrefslogtreecommitdiff
path: root/node/Address.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-04 12:24:21 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-10-04 12:24:21 -0400
commitea4e1136dd8b8d7830f770b4dff92f4946a998dd (patch)
treeb965512eaf04205a5b209b7ff160d5650d1ccd31 /node/Address.hpp
parentca6c0fad081b48a7316e412675aa8bd30d9a0540 (diff)
downloadinfinitytier-ea4e1136dd8b8d7830f770b4dff92f4946a998dd.tar.gz
infinitytier-ea4e1136dd8b8d7830f770b4dff92f4946a998dd.zip
Flesh out membership certificate with signature, better serialize/deserialize, and rename parameter to qualifier to make better conceptual sense.
Diffstat (limited to 'node/Address.hpp')
-rw-r--r--node/Address.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node/Address.hpp b/node/Address.hpp
index 034bc144..91e971d4 100644
--- a/node/Address.hpp
+++ b/node/Address.hpp
@@ -232,6 +232,15 @@ public:
inline operator bool() const throw() { return (_a != 0); }
/**
+ * Set to null/zero
+ */
+ inline void zero()
+ throw()
+ {
+ _a = 0;
+ }
+
+ /**
* Check if this address is reserved
*
* The all-zero null address and any address beginning with 0xff are