#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.
|
| 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...
|
| |
◆ ELECTRONEUM_LOG_ZMQ_ERROR
| #define ELECTRONEUM_LOG_ZMQ_ERROR |
( |
|
... | ) |
|
Value:do \
{ \
} while (0)
std::string message("Message requiring signing")
std::error_code get_error_code() noexcept
Print a message followed by the current ZMQ error message.
Definition at line 46 of file zmq.h.
◆ ELECTRONEUM_ZMQ_CHECK
| #define ELECTRONEUM_ZMQ_CHECK |
( |
|
... | ) |
|
Value:do \
{ \
if (( __VA_ARGS__ ) < 0) \
} while (0)
std::error_code get_error_code() noexcept
If the expression is less than 0, return the current ZMQ error code.
Definition at line 38 of file zmq.h.
◆ ELECTRONEUM_ZMQ_THROW
Throw an exception with a custom msg, current ZMQ error code, filename, and line number.
Definition at line 53 of file zmq.h.