Don't pass flags to xsend method

This commit is contained in:
Martin Hurton
2012-11-09 17:08:03 +01:00
parent 793895c477
commit 7865f96e97
24 changed files with 43 additions and 52 deletions

View File

@@ -39,7 +39,7 @@ zmq::req_t::~req_t ()
{
}
int zmq::req_t::xsend (msg_t *msg_, int flags_)
int zmq::req_t::xsend (msg_t *msg_)
{
// If we've sent a request and we still haven't got the reply,
// we can't send another request.
@@ -54,7 +54,7 @@ int zmq::req_t::xsend (msg_t *msg_, int flags_)
int rc = bottom.init ();
errno_assert (rc == 0);
bottom.set_flags (msg_t::more);
rc = dealer_t::xsend (&bottom, 0);
rc = dealer_t::xsend (&bottom);
if (rc != 0)
return -1;
message_begins = false;
@@ -62,7 +62,7 @@ int zmq::req_t::xsend (msg_t *msg_, int flags_)
bool more = msg_->flags () & msg_t::more ? true : false;
int rc = dealer_t::xsend (msg_, flags_);
int rc = dealer_t::xsend (msg_);
if (rc != 0)
return rc;