[ZMQ] append a message sequence number to every ZMQ notification

This commit is contained in:
Jonas Schnelli
2016-03-29 14:30:02 +02:00
committed by Jack Grigg
parent abf8020443
commit 3ba2e19e2b
5 changed files with 60 additions and 13 deletions

View File

@@ -11,7 +11,19 @@ class CBlockIndex;
class CZMQAbstractPublishNotifier : public CZMQAbstractNotifier
{
private:
uint32_t nSequence; //! upcounting per message sequence number
public:
/* send zmq multipart message
parts:
* command
* data
* message sequence number
*/
bool SendMessage(const char *command, const void* data, size_t size);
bool Initialize(void *pcontext);
void Shutdown();
};