[zeromq-dev] question about recv_identity in the libzmq code
Laurent Alebarde
l.alebarde at free.fr
Wed Dec 11 18:13:41 CET 2013
Hi Devs,
In socket_base.cpp, there is this code:
// If required, send the identity of the local socket to
the peer.
if (peer.options.recv_identity) {
msg_t id;
rc = id.init_size (options.identity_size);
errno_assert (rc == 0);
memcpy (id.data (), options.identity,
options.identity_size);
id.set_flags (msg_t::identity);
bool written = new_pipes [0]->write (&id);
zmq_assert (written);
new_pipes [0]->flush ();
}
.recv_identity is true for a ROUTER socket. Could one please explain me
in which case / context this is usefull for ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131211/c1ce7980/attachment.htm>
More information about the zeromq-dev
mailing list