diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-15 15:08:47 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-15 15:08:47 -0800 |
commit | a54c2b438c0abc574039055ecfc70dd829e2cade (patch) | |
tree | 0d606a4713382b7c11dddcab3bd3d09f17d2e915 /controller/EmbeddedNetworkController.hpp | |
parent | 890f6f0d35cc715f759cb3014c536a8801bd0c99 (diff) | |
download | infinitytier-a54c2b438c0abc574039055ecfc70dd829e2cade.tar.gz infinitytier-a54c2b438c0abc574039055ecfc70dd829e2cade.zip |
Basic support for streaming of changes via stdout from controller.
Diffstat (limited to 'controller/EmbeddedNetworkController.hpp')
-rw-r--r-- | controller/EmbeddedNetworkController.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/controller/EmbeddedNetworkController.hpp b/controller/EmbeddedNetworkController.hpp index cde6522d..37c067ff 100644 --- a/controller/EmbeddedNetworkController.hpp +++ b/controller/EmbeddedNetworkController.hpp @@ -53,7 +53,12 @@ class Node; class EmbeddedNetworkController : public NetworkController { public: - EmbeddedNetworkController(Node *node,const char *dbPath); + /** + * @param node Parent node + * @param dbPath Path to store data + * @param feed FILE to send feed of all data and changes to (zero-delimited JSON objects) or NULL for none + */ + EmbeddedNetworkController(Node *node,const char *dbPath,FILE *feed); virtual ~EmbeddedNetworkController(); virtual void init(const Identity &signingId,Sender *sender); |