diff options
Diffstat (limited to 'node/Network.hpp')
| -rw-r--r-- | node/Network.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp index 6d35b961..b42e09c1 100644 --- a/node/Network.hpp +++ b/node/Network.hpp @@ -265,6 +265,23 @@ public: } }; + /** + * Status for networks + */ + enum Status + { + NETWORK_WAITING_FOR_FIRST_AUTOCONF, + NETWORK_OK, + NETWORK_ACCESS_DENIED + }; + + /** + * @param s Status + * @return String description + */ + static const char *statusString(const Status s) + throw(); + private: // Only NodeConfig can create, only SharedPtr can delete @@ -404,6 +421,11 @@ public: return _lastConfigUpdate; } + /** + * @return Status of this network + */ + Status status() const; + private: static void _CBhandleTapData(void *arg,const MAC &from,const MAC &to,unsigned int etherType,const Buffer<4096> &data); void _restoreState(); |
