Kylin/AsioZeroMQ/ErrorCode.cpp

14 lines
358 B
C++
Raw Normal View History

2023-07-21 14:07:27 +08:00
#include "ErrorCode.h"
namespace ZeroMQ {
boost::system::error_code makeErrorCode(int ev) {
static ErrorCategory cat;
return boost::system::error_code(ev, cat);
}
const char *ErrorCategory::name() const noexcept { return "ZeroMQ"; }
std::string ErrorCategory::message(int ev) const { return std::string(zmq_strerror(ev)); }
} // namespace ZeroMQ