| 288 | #endif |
| 289 | |
| 290 | class error_t : public std::exception |
| 291 | { |
| 292 | public: |
| 293 | error_t() ZMQ_NOTHROW : errnum(zmq_errno()) {} |
| 294 | explicit error_t(int err) ZMQ_NOTHROW : errnum(err) {} |
| 295 | virtual const char *what() const ZMQ_NOTHROW ZMQ_OVERRIDE |
| 296 | { |
| 297 | return zmq_strerror(errnum); |
| 298 | } |
| 299 | int num() const ZMQ_NOTHROW { return errnum; } |
| 300 | |
| 301 | private: |
| 302 | int errnum; |
| 303 | }; |
| 304 | |
| 305 | namespace detail { |
| 306 | inline int poll(zmq_pollitem_t *items_, size_t nitems_, long timeout_) |
no outgoing calls
no test coverage detected