diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-15 16:32:55 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-09-15 16:32:55 -0700 |
| commit | fb22ef053b7e73d62789e6c9816cbb918638ae85 (patch) | |
| tree | 196a091fb419ab0f1e43be6f28a746af86b2c906 /node/Node.hpp | |
| parent | 4ba426934439ac37e63e30f53a93a7d765f5cbba (diff) | |
| download | infinitytier-fb22ef053b7e73d62789e6c9816cbb918638ae85.tar.gz infinitytier-fb22ef053b7e73d62789e6c9816cbb918638ae85.zip | |
Move rest of NodeControl stuff out of node/ and into control/
Diffstat (limited to 'node/Node.hpp')
| -rw-r--r-- | node/Node.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
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 <stdint.h> + #include "../include/ZeroTierOne.h" namespace ZeroTier { @@ -138,6 +140,30 @@ public: 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 * * Use getNetworkStatus() to check the network's status after joining. If you |
