mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-10 08:08:33 +01:00
Add support for ZMQ_XPUB_NODROP on ZMQ_RADIO sockets
Solves issue #2927
This commit is contained in:
@@ -61,6 +61,7 @@ class radio_t : public socket_base_t
|
||||
bool xhas_in ();
|
||||
void xread_activated (zmq::pipe_t *pipe_);
|
||||
void xwrite_activated (zmq::pipe_t *pipe_);
|
||||
int xsetsockopt (int option_, const void *optval_, size_t optvallen_);
|
||||
void xpipe_terminated (zmq::pipe_t *pipe_);
|
||||
|
||||
private:
|
||||
@@ -75,6 +76,9 @@ class radio_t : public socket_base_t
|
||||
// Distributor of messages holding the list of outbound pipes.
|
||||
dist_t dist;
|
||||
|
||||
// Drop messages if HWM reached, otherwise return with EAGAIN
|
||||
bool lossy;
|
||||
|
||||
radio_t (const radio_t &);
|
||||
const radio_t &operator= (const radio_t &);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user