summaryrefslogtreecommitdiff
path: root/controller/EmbeddedNetworkController.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-10 11:54:47 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-11-10 11:54:47 -0800
commit226123ca08ffbb5f4e4f0699b92fb9db08576a66 (patch)
tree61664d08dd88cea92931516476fddfd2c6e0faa0 /controller/EmbeddedNetworkController.hpp
parent5ebf5077f56442908d4a5ced8d969df9e7de8c4f (diff)
downloadinfinitytier-226123ca08ffbb5f4e4f0699b92fb9db08576a66.tar.gz
infinitytier-226123ca08ffbb5f4e4f0699b92fb9db08576a66.zip
Refactor controller to permit sending of pushes as well as just replies to config requests.
Diffstat (limited to 'controller/EmbeddedNetworkController.hpp')
-rw-r--r--controller/EmbeddedNetworkController.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/controller/EmbeddedNetworkController.hpp b/controller/EmbeddedNetworkController.hpp
index 53d3be0f..79b919b9 100644
--- a/controller/EmbeddedNetworkController.hpp
+++ b/controller/EmbeddedNetworkController.hpp
@@ -52,13 +52,14 @@ public:
EmbeddedNetworkController(Node *node,const char *dbPath);
virtual ~EmbeddedNetworkController();
- virtual NetworkController::ResultCode doNetworkConfigRequest(
+ virtual void init(const Identity &signingId,Sender *sender);
+
+ virtual void request(
+ uint64_t nwid,
const InetAddress &fromAddr,
- const Identity &signingId,
+ uint64_t requestPacketId,
const Identity &identity,
- uint64_t nwid,
- const Dictionary<ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY> &metaData,
- NetworkConfig &nc);
+ const Dictionary<ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY> &metaData);
unsigned int handleControlPlaneHttpGET(
const std::vector<std::string> &path,
@@ -157,6 +158,9 @@ private:
Node *const _node;
std::string _path;
+ NetworkController::Sender *_sender;
+ Identity _signingId;
+
struct _CircuitTestEntry
{
ZT_CircuitTest *test;