From fb22ef053b7e73d62789e6c9816cbb918638ae85 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 15 Sep 2014 16:32:55 -0700 Subject: Move rest of NodeControl stuff out of node/ and into control/ --- node/Node.hpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'node/Node.hpp') diff --git a/node/Node.hpp b/node/Node.hpp index 29fe494c..32342349 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -28,6 +28,8 @@ #ifndef ZT_NODE_HPP #define ZT_NODE_HPP +#include + #include "../include/ZeroTierOne.h" namespace ZeroTier { @@ -137,6 +139,30 @@ public: bool online() throw(); + /** + * @return True if run() has been called + */ + bool started() + throw(); + + /** + * @return True if run() has not yet returned + */ + bool running() + throw(); + + /** + * @return True if initialization phase of startup is complete + */ + bool initialized() + throw(); + + /** + * @return This node's address (in least significant 40 bits of 64-bit int) or 0 if not yet initialized + */ + uint64_t address() + throw(); + /** * Join a network * -- cgit v1.2.3