Bitcoin Core  22.99.0
P2P Digital Currency
Functions | Variables
zmqpublishnotifier.cpp File Reference
#include <zmq/zmqpublishnotifier.h>
#include <chain.h>
#include <chainparams.h>
#include <netbase.h>
#include <node/blockstorage.h>
#include <rpc/server.h>
#include <streams.h>
#include <util/system.h>
#include <validation.h>
#include <zmq/zmqutil.h>
#include <zmq.h>
#include <cstdarg>
#include <cstddef>
#include <map>
#include <optional>
#include <string>
#include <utility>
Include dependency graph for zmqpublishnotifier.cpp:

Go to the source code of this file.

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 77 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 258 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 35 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 26 of file zmqpublishnotifier.cpp.

◆ MSG_HASHBLOCK

const char* MSG_HASHBLOCK = "hashblock"
static

Definition at line 28 of file zmqpublishnotifier.cpp.

◆ MSG_HASHTX

const char* MSG_HASHTX = "hashtx"
static

Definition at line 29 of file zmqpublishnotifier.cpp.

◆ MSG_RAWBLOCK

const char* MSG_RAWBLOCK = "rawblock"
static

Definition at line 30 of file zmqpublishnotifier.cpp.

◆ MSG_RAWTX

const char* MSG_RAWTX = "rawtx"
static

Definition at line 31 of file zmqpublishnotifier.cpp.

◆ MSG_SEQUENCE

const char* MSG_SEQUENCE = "sequence"
static

Definition at line 32 of file zmqpublishnotifier.cpp.