Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <zmqpublishnotifier.h>
Public Member Functions | |
bool | SendMessage (const char *command, const void *data, size_t size) |
bool | Initialize (void *pcontext) override |
void | Shutdown () override |
Public Member Functions inherited from CZMQAbstractNotifier | |
CZMQAbstractNotifier () | |
virtual | ~CZMQAbstractNotifier () |
std::string | GetType () const |
void | SetType (const std::string &t) |
std::string | GetAddress () const |
void | SetAddress (const std::string &a) |
virtual bool | NotifyBlock (const CBlockIndex *pindex) |
virtual bool | NotifyChainLock (const CBlockIndex *pindex, const llmq::CChainLockSig &clsig) |
virtual bool | NotifyTransaction (const CTransaction &transaction) |
virtual bool | NotifyTransactionLock (const CTransaction &transaction, const llmq::CInstantSendLock &islock) |
virtual bool | NotifyGovernanceVote (const CGovernanceVote &vote) |
virtual bool | NotifyGovernanceObject (const CGovernanceObject &object) |
virtual bool | NotifyInstantSendDoubleSpendAttempt (const CTransaction ¤tTx, const CTransaction &previousTx) |
Private Attributes | |
uint32_t | nSequence |
upcounting per message sequence number More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CZMQAbstractNotifier | |
template<typename T > | |
static CZMQAbstractNotifier * | Create () |
Protected Attributes inherited from CZMQAbstractNotifier | |
void * | psocket |
std::string | type |
std::string | address |
Detailed Description
Definition at line 14 of file zmqpublishnotifier.h.
Member Function Documentation
◆ Initialize()
|
overridevirtual |
Implements CZMQAbstractNotifier.
Definition at line 74 of file zmqpublishnotifier.cpp.
References CZMQAbstractNotifier::address, LogPrint, mapPublishNotifiers, CZMQAbstractNotifier::psocket, BCLog::ZMQ, and zmqError().
◆ SendMessage()
bool CZMQAbstractPublishNotifier::SendMessage | ( | const char * | command, |
const void * | data, | ||
size_t | size | ||
) |
Definition at line 143 of file zmqpublishnotifier.cpp.
References nSequence, CZMQAbstractNotifier::psocket, WriteLE32(), and zmq_send_multipart().
Referenced by CZMQPublishHashBlockNotifier::NotifyBlock(), CZMQPublishRawBlockNotifier::NotifyBlock(), CZMQPublishHashChainLockNotifier::NotifyChainLock(), CZMQPublishRawChainLockNotifier::NotifyChainLock(), CZMQPublishRawChainLockSigNotifier::NotifyChainLock(), CZMQPublishHashGovernanceObjectNotifier::NotifyGovernanceObject(), CZMQPublishRawGovernanceObjectNotifier::NotifyGovernanceObject(), CZMQPublishHashGovernanceVoteNotifier::NotifyGovernanceVote(), CZMQPublishRawGovernanceVoteNotifier::NotifyGovernanceVote(), CZMQPublishHashInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(), CZMQPublishRawInstantSendDoubleSpendNotifier::NotifyInstantSendDoubleSpendAttempt(), CZMQPublishHashTransactionNotifier::NotifyTransaction(), CZMQPublishRawTransactionNotifier::NotifyTransaction(), CZMQPublishHashTransactionLockNotifier::NotifyTransactionLock(), CZMQPublishRawTransactionLockNotifier::NotifyTransactionLock(), and CZMQPublishRawTransactionLockSigNotifier::NotifyTransactionLock().
◆ Shutdown()
|
overridevirtual |
Implements CZMQAbstractNotifier.
Definition at line 113 of file zmqpublishnotifier.cpp.
References CZMQAbstractNotifier::address, count, LogPrint, mapPublishNotifiers, CZMQAbstractNotifier::psocket, and BCLog::ZMQ.
Member Data Documentation
◆ nSequence
|
private |
upcounting per message sequence number
Definition at line 17 of file zmqpublishnotifier.h.
Referenced by SendMessage().
The documentation for this class was generated from the following files:
- src/zmq/zmqpublishnotifier.h
- src/zmq/zmqpublishnotifier.cpp