|
Monero
|
#include <memory>#include <string>#include <system_error>#include <zmq.h>#include "common/expect.h"#include "span.h"

Go to the source code of this file.
Classes | |
| class | net::zmq::terminate |
Calls zmq_term More... | |
| struct | net::zmq::close |
Calls zmq_close More... | |
Namespaces | |
| epee | |
| TODO: (mj-xmr) This will be reduced in an another PR. | |
| net | |
| net::zmq | |
Macros | |
| #define | MONERO_ZMQ_CHECK(...) |
| If the expression is less than 0, return the current ZMQ error code. More... | |
| #define | MONERO_LOG_ZMQ_ERROR(...) |
| Print a message followed by the current ZMQ error message. More... | |
| #define | MONERO_ZMQ_THROW(msg) MONERO_THROW( ::net::zmq::get_error_code(), msg ) |
Throw an exception with a custom msg, current ZMQ error code, filename, and line number. More... | |
Typedefs | |
| using | net::zmq::context = std::unique_ptr< void, terminate > |
Unique ZMQ context handle, calls zmq_term on destruction. More... | |
| using | net::zmq::socket = std::unique_ptr< void, close > |
Unique ZMQ socket handle, calls zmq_close on destruction. More... | |
Functions | |
| const std::error_category & | net::zmq::error_category () noexcept |
| std::error_code | net::zmq::make_error_code (int code) noexcept |
| std::error_code | net::zmq::get_error_code () noexcept |
| template<typename F , typename... T> | |
| expect< void > | net::zmq::retry_op (F op, T &&... args) noexcept(noexcept(op(args...))) |
| expect< std::string > | net::zmq::receive (void *const socket, const int flags) |
| expect< void > | net::zmq::send (const epee::span< const std::uint8_t > payload, void *const socket, const int flags) noexcept |
| expect< void > | net::zmq::send (epee::byte_slice &&payload, void *socket, int flags) noexcept |
| #define MONERO_LOG_ZMQ_ERROR | ( | ... | ) |
Print a message followed by the current ZMQ error message.
| #define MONERO_ZMQ_CHECK | ( | ... | ) |
If the expression is less than 0, return the current ZMQ error code.
| #define MONERO_ZMQ_THROW | ( | msg | ) | MONERO_THROW( ::net::zmq::get_error_code(), msg ) |
Throw an exception with a custom msg, current ZMQ error code, filename, and line number.
1.8.14