12 zmq::peer_t::peer_t (
class ctx_t *parent_, uint32_t tid_,
int sid_) :
13 server_t (parent_, tid_, sid_)
16 options.can_send_hello_msg =
true;
17 options.can_recv_disconnect_msg =
true;
18 options.can_recv_hiccup_msg =
true;
21 uint32_t zmq::peer_t::connect_peer (
const char *endpoint_uri_)
23 scoped_optional_lock_t sync_lock (&_sync);
31 int rc = socket_base_t::connect_internal (endpoint_uri_);
35 return _peer_last_routing_id;
38 void zmq::peer_t::xattach_pipe (pipe_t *pipe_,
39 bool subscribe_to_all_,
40 bool locally_initiated_)
42 server_t::xattach_pipe (pipe_, subscribe_to_all_, locally_initiated_);
43 _peer_last_routing_id = pipe_->get_server_socket_routing_id ();