mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-12 10:33:52 +01:00
keep _monitor_socket as private member
This commit is contained in:
parent
2dcab86425
commit
d8ab66a7af
@ -172,7 +172,7 @@ TEST_CASE("poll monitor events using active poller", "[monitor]")
|
|||||||
void addToPoller(zmq::active_poller_t &inActivePoller)
|
void addToPoller(zmq::active_poller_t &inActivePoller)
|
||||||
{
|
{
|
||||||
inActivePoller.add(
|
inActivePoller.add(
|
||||||
_monitor_socket, zmq::event_flags::pollin,
|
monitor_socket(), zmq::event_flags::pollin,
|
||||||
[&](zmq::event_flags ef) { process_event(static_cast<short>(ef)); });
|
[&](zmq::event_flags ef) { process_event(static_cast<short>(ef)); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
3
zmq.hpp
3
zmq.hpp
@ -2589,13 +2589,14 @@ class monitor_t
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
socket_t _monitor_socket;
|
socket_ref monitor_socket() {return _monitor_socket;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
monitor_t(const monitor_t &) ZMQ_DELETED_FUNCTION;
|
monitor_t(const monitor_t &) ZMQ_DELETED_FUNCTION;
|
||||||
void operator=(const monitor_t &) ZMQ_DELETED_FUNCTION;
|
void operator=(const monitor_t &) ZMQ_DELETED_FUNCTION;
|
||||||
|
|
||||||
socket_ref _socket;
|
socket_ref _socket;
|
||||||
|
socket_t _monitor_socket;
|
||||||
|
|
||||||
void close() ZMQ_NOTHROW
|
void close() ZMQ_NOTHROW
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user