mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 05:29:43 +01: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:
11
src/pipe.cpp
11
src/pipe.cpp
@@ -65,8 +65,7 @@ zmq::pipe_t::pipe_t (object_t *parent_, upipe_t *inpipe_, upipe_t *outpipe_,
|
||||
peer (NULL),
|
||||
sink (NULL),
|
||||
state (active),
|
||||
delay (delay_),
|
||||
pipe_id (0)
|
||||
delay (delay_)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -88,14 +87,14 @@ void zmq::pipe_t::set_event_sink (i_pipe_events *sink_)
|
||||
sink = sink_;
|
||||
}
|
||||
|
||||
void zmq::pipe_t::set_pipe_id (uint32_t id_)
|
||||
void zmq::pipe_t::set_identity (const blob_t &identity_)
|
||||
{
|
||||
pipe_id = id_;
|
||||
identity = identity_;
|
||||
}
|
||||
|
||||
uint32_t zmq::pipe_t::get_pipe_id ()
|
||||
zmq::blob_t zmq::pipe_t::get_identity ()
|
||||
{
|
||||
return pipe_id;
|
||||
return identity;
|
||||
}
|
||||
|
||||
bool zmq::pipe_t::check_read ()
|
||||
|
||||
Reference in New Issue
Block a user