10 zmq::pair_t::pair_t (
class ctx_t *parent_, uint32_t tid_,
int sid_) :
11 socket_base_t (parent_, tid_, sid_), _pipe (
NULL)
16 zmq::pair_t::~pair_t ()
21 void zmq::pair_t::xattach_pipe (pipe_t *pipe_,
22 bool subscribe_to_all_,
23 bool locally_initiated_)
35 pipe_->terminate (
false);
38 void zmq::pair_t::xpipe_terminated (pipe_t *pipe_)
45 void zmq::pair_t::xread_activated (pipe_t *)
51 void zmq::pair_t::xwrite_activated (pipe_t *)
57 int zmq::pair_t::xsend (msg_t *msg_)
59 if (!_pipe || !_pipe->write (msg_)) {
64 if (!(msg_->flags () & msg_t::more))
68 const int rc = msg_->init ();
74 int zmq::pair_t::xrecv (msg_t *msg_)
77 int rc = msg_->close ();
80 if (!_pipe || !_pipe->read (msg_)) {
91 bool zmq::pair_t::xhas_in ()
96 return _pipe->check_read ();
99 bool zmq::pair_t::xhas_out ()
104 return _pipe->check_write ();