mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
@@ -159,7 +159,7 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
|
||||
}
|
||||
|
||||
// Check whether this is the last part of the message.
|
||||
more_out = msg_->flags () & (msg_t::more | msg_t::label);
|
||||
more_out = msg_->flags () & (msg_t::more | msg_t::label) ? true : false;
|
||||
|
||||
// Push the message into the pipe. If there's no out pipe, just drop it.
|
||||
if (current_out) {
|
||||
@@ -188,7 +188,7 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_)
|
||||
if (prefetched) {
|
||||
int rc = msg_->move (prefetched_msg);
|
||||
errno_assert (rc == 0);
|
||||
more_in = msg_->flags () & (msg_t::more | msg_t::label);
|
||||
more_in = msg_->flags () & (msg_t::more | msg_t::label) ? true : false;
|
||||
prefetched = false;
|
||||
return 0;
|
||||
}
|
||||
@@ -202,7 +202,7 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_)
|
||||
zmq_assert (inpipes [current_in].active);
|
||||
bool fetched = inpipes [current_in].pipe->read (msg_);
|
||||
zmq_assert (fetched);
|
||||
more_in = msg_->flags () & (msg_t::more | msg_t::label);
|
||||
more_in = msg_->flags () & (msg_t::more | msg_t::label) ? true : false;
|
||||
if (!more_in) {
|
||||
current_in++;
|
||||
if (current_in >= inpipes.size ())
|
||||
|
||||
Reference in New Issue
Block a user