mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 07:14:49 +02:00
Identities re-introduced
However, the "durable socket" behaviour wasn't re-added. Identities are used solely for routing in REQ/REP pattern. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
@@ -845,7 +845,16 @@ void zmq::socket_base_t::terminated (pipe_t *pipe_)
|
||||
|
||||
void zmq::socket_base_t::extract_flags (msg_t *msg_)
|
||||
{
|
||||
// Test whether IDENTITY flag is valid for this socket type.
|
||||
if (unlikely (msg_->flags () & msg_t::identity)) {
|
||||
zmq_assert (options.recv_identity);
|
||||
printf ("identity recvd\n");
|
||||
}
|
||||
|
||||
|
||||
// Remove MORE flag.
|
||||
rcvmore = msg_->flags () & msg_t::more ? true : false;
|
||||
if (rcvmore)
|
||||
msg_->reset_flags (msg_t::more);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user