Bitcoin Core 28.99.0
P2P Digital Currency
Namespaces | Functions | Variables
zmqpublishnotifier.cpp File Reference
#include <zmq/zmqpublishnotifier.h>
#include <chain.h>
#include <chainparams.h>
#include <crypto/common.h>
#include <kernel/cs_main.h>
#include <logging.h>
#include <netaddress.h>
#include <netbase.h>
#include <node/blockstorage.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <rpc/server.h>
#include <serialize.h>
#include <streams.h>
#include <sync.h>
#include <uint256.h>
#include <zmq/zmqutil.h>
#include <zmq.h>
#include <cassert>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <map>
#include <optional>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for zmqpublishnotifier.cpp:

Go to the source code of this file.

Namespaces

namespace  Consensus
 Transaction validation functions.
 

Functions

static int zmq_send_multipart (void *sock, const void *data, size_t size,...)
 
static bool IsZMQAddressIPV6 (const std::string &zmq_address)
 
static bool SendSequenceMsg (CZMQAbstractPublishNotifier &notifier, uint256 hash, char label, std::optional< uint64_t > sequence={})
 

Variables

static std::multimap< std::string, CZMQAbstractPublishNotifier * > mapPublishNotifiers
 
static const char * MSG_HASHBLOCK = "hashblock"
 
static const char * MSG_HASHTX = "hashtx"
 
static const char * MSG_RAWBLOCK = "rawblock"
 
static const char * MSG_RAWTX = "rawtx"
 
static const char * MSG_SEQUENCE = "sequence"
 

Function Documentation

◆ IsZMQAddressIPV6()

static bool IsZMQAddressIPV6 ( const std::string &  zmq_address)
static

Definition at line 92 of file zmqpublishnotifier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendSequenceMsg()

static bool SendSequenceMsg ( CZMQAbstractPublishNotifier notifier,
uint256  hash,
char  label,
std::optional< uint64_t >  sequence = {} 
)
static

Definition at line 266 of file zmqpublishnotifier.cpp.

Here is the caller graph for this function:

◆ zmq_send_multipart()

static int zmq_send_multipart ( void *  sock,
const void *  data,
size_t  size,
  ... 
)
static

Definition at line 50 of file zmqpublishnotifier.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mapPublishNotifiers

std::multimap<std::string, CZMQAbstractPublishNotifier*> mapPublishNotifiers
static

Definition at line 41 of file zmqpublishnotifier.cpp.

◆ MSG_HASHBLOCK

const char* MSG_HASHBLOCK = "hashblock"
static

Definition at line 43 of file zmqpublishnotifier.cpp.

◆ MSG_HASHTX

const char* MSG_HASHTX = "hashtx"
static

Definition at line 44 of file zmqpublishnotifier.cpp.

◆ MSG_RAWBLOCK

const char* MSG_RAWBLOCK = "rawblock"
static

Definition at line 45 of file zmqpublishnotifier.cpp.

◆ MSG_RAWTX

const char* MSG_RAWTX = "rawtx"
static

Definition at line 46 of file zmqpublishnotifier.cpp.

◆ MSG_SEQUENCE

const char* MSG_SEQUENCE = "sequence"
static

Definition at line 47 of file zmqpublishnotifier.cpp.