Basic support for streaming of changes via stdout from controller.

This commit is contained in:
Adam Ierymenko 2016-12-15 15:08:47 -08:00
parent 890f6f0d35
commit a54c2b438c
5 changed files with 28 additions and 9 deletions

View file

@ -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);