diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-10 11:54:47 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-10 11:54:47 -0800 |
| commit | 226123ca08ffbb5f4e4f0699b92fb9db08576a66 (patch) | |
| tree | 61664d08dd88cea92931516476fddfd2c6e0faa0 /node/Node.hpp | |
| parent | 5ebf5077f56442908d4a5ced8d969df9e7de8c4f (diff) | |
| download | infinitytier-226123ca08ffbb5f4e4f0699b92fb9db08576a66.tar.gz infinitytier-226123ca08ffbb5f4e4f0699b92fb9db08576a66.zip | |
Refactor controller to permit sending of pushes as well as just replies to config requests.
Diffstat (limited to 'node/Node.hpp')
| -rw-r--r-- | node/Node.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index 11462531..e616da3d 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -36,6 +36,7 @@ #include "Network.hpp" #include "Path.hpp" #include "Salsa20.hpp" +#include "NetworkController.hpp" #undef TRACE #ifdef ZT_TRACE @@ -55,7 +56,7 @@ namespace ZeroTier { * * The pointer returned by ZT_Node_new() is an instance of this class. */ -class Node +class Node : public NetworkController::Sender { public: Node( @@ -69,7 +70,7 @@ public: ZT_PathCheckFunction pathCheckFunction, ZT_EventCallback eventCallback); - ~Node(); + virtual ~Node(); // Public API Functions ---------------------------------------------------- @@ -282,6 +283,9 @@ public: return false; } + virtual void ncSendConfig(uint64_t nwid,uint64_t requestPacketId,const Address &destination,const NetworkConfig &nc,bool sendLegacyFormatConfig); + virtual void ncSendError(uint64_t nwid,uint64_t requestPacketId,const Address &destination,NetworkController::ErrorCode errorCode); + private: inline SharedPtr<Network> _network(uint64_t nwid) const { |
