diff options
Diffstat (limited to 'node/Address.hpp')
| -rw-r--r-- | node/Address.hpp | 9 |
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 |
