19 lines
395 B
C++
19 lines
395 B
C++
#ifndef ERRORCODE_H
|
|
#define ERRORCODE_H
|
|
|
|
#include <boost/system/error_code.hpp>
|
|
#include <zmq.h>
|
|
|
|
namespace ZeroMQ {
|
|
|
|
class ErrorCategory : public boost::system::error_category {
|
|
public:
|
|
const char *name() const noexcept override;
|
|
std::string message(int ev) const override;
|
|
};
|
|
|
|
boost::system::error_code makeErrorCode(int ev = zmq_errno());
|
|
} // namespace ZeroMQ
|
|
|
|
#endif // ERRORCODE_H
|