mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
obsolete parameter removed from 'bind' command
This commit is contained in:
parent
0e9ab2e8a3
commit
64634605b3
@ -70,7 +70,6 @@ namespace zmq
|
||||
|
||||
// Sent from session to socket to establish pipe(s) between them.
|
||||
struct {
|
||||
class owned_t *session;
|
||||
class reader_t *in_pipe;
|
||||
class writer_t *out_pipe;
|
||||
} bind;
|
||||
|
@ -83,8 +83,7 @@ void zmq::object_t::process_command (command_t &cmd_)
|
||||
return;
|
||||
|
||||
case command_t::bind:
|
||||
process_bind (cmd_.args.bind.session,
|
||||
cmd_.args.bind.in_pipe, cmd_.args.bind.out_pipe);
|
||||
process_bind (cmd_.args.bind.in_pipe, cmd_.args.bind.out_pipe);
|
||||
return;
|
||||
|
||||
case command_t::pipe_term:
|
||||
@ -183,13 +182,12 @@ void zmq::object_t::send_attach (session_t *destination_, i_engine *engine_)
|
||||
send_command (cmd);
|
||||
}
|
||||
|
||||
void zmq::object_t::send_bind (object_t *destination_, owned_t *session_,
|
||||
void zmq::object_t::send_bind (object_t *destination_,
|
||||
reader_t *in_pipe_, writer_t *out_pipe_)
|
||||
{
|
||||
command_t cmd;
|
||||
cmd.destination = destination_;
|
||||
cmd.type = command_t::bind;
|
||||
cmd.args.bind.session = session_;
|
||||
cmd.args.bind.in_pipe = in_pipe_;
|
||||
cmd.args.bind.out_pipe = out_pipe_;
|
||||
send_command (cmd);
|
||||
@ -265,8 +263,7 @@ void zmq::object_t::process_attach (i_engine *engine_)
|
||||
zmq_assert (false);
|
||||
}
|
||||
|
||||
void zmq::object_t::process_bind (owned_t *session_,
|
||||
reader_t *in_pipe_, writer_t *out_pipe_)
|
||||
void zmq::object_t::process_bind (reader_t *in_pipe_, writer_t *out_pipe_)
|
||||
{
|
||||
zmq_assert (false);
|
||||
}
|
||||
|
@ -68,7 +68,7 @@ namespace zmq
|
||||
class owned_t *object_);
|
||||
void send_attach (class session_t *destination_,
|
||||
struct i_engine *engine_);
|
||||
void send_bind (object_t *destination_, class owned_t *session_,
|
||||
void send_bind (object_t *destination_,
|
||||
class reader_t *in_pipe_, class writer_t *out_pipe_);
|
||||
void send_revive (class object_t *destination_);
|
||||
void send_pipe_term (class writer_t *destination_);
|
||||
@ -84,8 +84,8 @@ namespace zmq
|
||||
virtual void process_plug ();
|
||||
virtual void process_own (class owned_t *object_);
|
||||
virtual void process_attach (struct i_engine *engine_);
|
||||
virtual void process_bind (class owned_t *session_,
|
||||
class reader_t *in_pipe_, class writer_t *out_pipe_);
|
||||
virtual void process_bind (class reader_t *in_pipe_,
|
||||
class writer_t *out_pipe_);
|
||||
virtual void process_revive ();
|
||||
virtual void process_pipe_term ();
|
||||
virtual void process_pipe_term_ack ();
|
||||
|
@ -155,7 +155,7 @@ void zmq::session_t::process_plug ()
|
||||
out_pipe->set_endpoint (this);
|
||||
}
|
||||
|
||||
send_bind (owner, this, outbound ? &outbound->reader : NULL,
|
||||
send_bind (owner, outbound ? &outbound->reader : NULL,
|
||||
inbound ? &inbound->writer : NULL);
|
||||
}
|
||||
|
||||
|
@ -160,8 +160,7 @@ int zmq::socket_base_t::connect (const char *addr_)
|
||||
// Attach the pipes to the peer socket. Note that peer's seqnum
|
||||
// was incremented in find_endpoint function. When this command
|
||||
// is delivered, peer will consider the seqnum to be processed.
|
||||
// TODO: Seems that 'session' parameter is unused...
|
||||
send_bind (peer, NULL, out_pipe ? &out_pipe->reader : NULL,
|
||||
send_bind (peer, out_pipe ? &out_pipe->reader : NULL,
|
||||
in_pipe ? &in_pipe->writer : NULL);
|
||||
|
||||
return 0;
|
||||
@ -510,8 +509,7 @@ void zmq::socket_base_t::process_own (owned_t *object_)
|
||||
io_objects.insert (object_);
|
||||
}
|
||||
|
||||
void zmq::socket_base_t::process_bind (owned_t *session_,
|
||||
reader_t *in_pipe_, writer_t *out_pipe_)
|
||||
void zmq::socket_base_t::process_bind (reader_t *in_pipe_, writer_t *out_pipe_)
|
||||
{
|
||||
attach_pipes (in_pipe_, out_pipe_);
|
||||
}
|
||||
|
@ -114,8 +114,7 @@ namespace zmq
|
||||
|
||||
// Handlers for incoming commands.
|
||||
void process_own (class owned_t *object_);
|
||||
void process_bind (class owned_t *session_,
|
||||
class reader_t *in_pipe_, class writer_t *out_pipe_);
|
||||
void process_bind (class reader_t *in_pipe_, class writer_t *out_pipe_);
|
||||
void process_term_req (class owned_t *object_);
|
||||
void process_term_ack ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user