mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-14 02:57:48 +01:00
Merge pull request #106 from vtellier/master
Added new monitor event since libzmq new feature
This commit is contained in:
commit
3cdcff1ac7
10
zmq.hpp
10
zmq.hpp
@ -785,6 +785,14 @@ namespace zmq
|
|||||||
case ZMQ_EVENT_DISCONNECTED:
|
case ZMQ_EVENT_DISCONNECTED:
|
||||||
on_event_disconnected(*event, address.c_str());
|
on_event_disconnected(*event, address.c_str());
|
||||||
break;
|
break;
|
||||||
|
#ifdef ZMQ_BUILD_DRAFT_API
|
||||||
|
case ZMQ_EVENT_HANDSHAKE_FAILED:
|
||||||
|
on_event_handshake_failed(*event, address.c_str());
|
||||||
|
break;
|
||||||
|
case ZMQ_EVENT_HANDSHAKE_SUCCEED:
|
||||||
|
on_event_handshake_succeed(*event, address.c_str());
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
on_event_unknown(*event, address.c_str());
|
on_event_unknown(*event, address.c_str());
|
||||||
break;
|
break;
|
||||||
@ -813,6 +821,8 @@ namespace zmq
|
|||||||
virtual void on_event_closed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
virtual void on_event_closed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
||||||
virtual void on_event_close_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
virtual void on_event_close_failed(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
||||||
virtual void on_event_disconnected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
virtual void on_event_disconnected(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
||||||
|
virtual void on_event_handshake_failed(const zmq_event_t &event_, const char* addr_) { (void) event_; (void) addr_; }
|
||||||
|
virtual void on_event_handshake_succeed(const zmq_event_t &event_, const char* addr_) { (void) event_; (void) addr_; }
|
||||||
virtual void on_event_unknown(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
virtual void on_event_unknown(const zmq_event_t &event_, const char* addr_) { (void)event_; (void)addr_; }
|
||||||
private:
|
private:
|
||||||
void* socketPtr;
|
void* socketPtr;
|
||||||
|
Loading…
Reference in New Issue
Block a user