9using FPTR_MessageCallback = std::function<bool(
const std::vector<zmq::message_t> &, std::vector<zmq::message_t> &)>;
38 ZeroMQServer(const std::
string &hostAddr, std::shared_ptr<std::atomic_flag> checkFlag,
39 const std::shared_ptr<prometheus::Registry> ® =
nullptr, const std::
string &prependName = "");
std::function< bool(const std::vector< zmq::message_t > &, std::vector< zmq::message_t > &)> FPTR_MessageCallback
bool ZeroMQServerMessageCallback(const std::vector< zmq::message_t > &recvMsgs, std::vector< zmq::message_t > &replyMsgs)
std::atomic_flag _shouldStop
void update()
Processes new messages.
std::unique_ptr< ZeroMQStats > _stats
void messageCallback(FPTR_MessageCallback func)
std::shared_ptr< std::atomic_flag > _checkFlag
void threadFunc() noexcept
Main thread function.
FPTR_MessageCallback messageCallback() const
FPTR_MessageCallback _m_messageCallback
std::unique_ptr< std::thread > _serverThread
void shutdown()
Closes the ZeroMQ Server.