Dash Core  0.12.2.1
P2P Digital Currency
zmqpublishnotifier.h
Go to the documentation of this file.
1 // Copyright (c) 2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H
6 #define BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H
7 
8 #include "zmqabstractnotifier.h"
9 
10 class CBlockIndex;
11 
13 {
14 private:
15  uint32_t nSequence; // upcounting per message sequence number
16 
17 public:
18 
19  /* send zmq multipart message
20  parts:
21  * command
22  * data
23  * message sequence number
24  */
25  bool SendMessage(const char *command, const void* data, size_t size);
26 
27  bool Initialize(void *pcontext);
28  void Shutdown();
29 };
30 
32 {
33 public:
34  bool NotifyBlock(const CBlockIndex *pindex);
35 };
36 
38 {
39 public:
40  bool NotifyTransaction(const CTransaction &transaction);
41 };
42 
44 {
45 public:
46  bool NotifyTransactionLock(const CTransaction &transaction);
47 };
48 
50 {
51 public:
52  bool NotifyBlock(const CBlockIndex *pindex);
53 };
54 
56 {
57 public:
58  bool NotifyTransaction(const CTransaction &transaction);
59 };
60 
62 {
63 public:
64  bool NotifyTransactionLock(const CTransaction &transaction);
65 };
66 
67 #endif // BITCOIN_ZMQ_ZMQPUBLISHNOTIFIER_H
bool NotifyBlock(const CBlockIndex *pindex)
bool NotifyTransactionLock(const CTransaction &transaction)
bool SendMessage(const char *command, const void *data, size_t size)
bool NotifyBlock(const CBlockIndex *pindex)
bool NotifyTransaction(const CTransaction &transaction)
bool NotifyTransaction(const CTransaction &transaction)
bool NotifyTransactionLock(const CTransaction &transaction)
bool Initialize(void *pcontext)