Changeset View
Changeset View
Standalone View
Standalone View
src/zmq/zmqnotificationinterface.cpp
// Copyright (c) 2015-2018 The Bitcoin Core developers | // Copyright (c) 2015-2018 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <zmq/zmqnotificationinterface.h> | #include <zmq/zmqnotificationinterface.h> | ||||
#include <zmq/zmqpublishnotifier.h> | #include <zmq/zmqpublishnotifier.h> | ||||
#include <zmq/zmqutil.h> | |||||
#include <zmq.h> | |||||
#include <primitives/block.h> | #include <primitives/block.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
void zmqError(const char *str) { | |||||
LogPrint(BCLog::ZMQ, "zmq: Error: %s, errno=%s\n", str, | |||||
zmq_strerror(errno)); | |||||
} | |||||
CZMQNotificationInterface::CZMQNotificationInterface() : pcontext(nullptr) {} | CZMQNotificationInterface::CZMQNotificationInterface() : pcontext(nullptr) {} | ||||
CZMQNotificationInterface::~CZMQNotificationInterface() { | CZMQNotificationInterface::~CZMQNotificationInterface() { | ||||
Shutdown(); | Shutdown(); | ||||
} | } | ||||
std::list<const CZMQAbstractNotifier *> | std::list<const CZMQAbstractNotifier *> | ||||
CZMQNotificationInterface::GetActiveNotifiers() const { | CZMQNotificationInterface::GetActiveNotifiers() const { | ||||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |