linking fd to pipe identity via socket option

This commit is contained in:
Stoian Ivanov
2014-04-30 16:34:55 +03:00
parent e37c206211
commit fe3e8c5c70
10 changed files with 57 additions and 4 deletions

View File

@@ -353,7 +353,8 @@ void zmq::session_base_t::process_attach (i_engine *engine_)
// Remember the local end of the pipe.
zmq_assert (!pipe);
pipe = pipes [0];
// Store engine assoc_fd for lilnking pipe to fd
pipe->assoc_fd=engine_->get_assoc_fd();
// Ask socket to plug into the remote end of the pipe.
send_bind (socket, pipes [1]);
}