~ubuntu-branches/ubuntu/saucy/zeromq3/saucy

« back to all changes in this revision

Viewing changes to src/dealer.cpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-10-16 19:49:30 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20121016194930-98r0bi746eoaa4iv
Tags: 3.2.1~rc2+dfsg-1
* New upstream RC release (Closes: #690704)
* Bump Standards-Version to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    //  be noone to receive the replies anyway.
36
36
    //  options.delay_on_close = false;
37
37
 
38
 
    options.send_identity = true;
39
38
    options.recv_identity = true;
40
39
 
41
40
    prefetched_msg.init ();
48
47
 
49
48
void zmq::dealer_t::xattach_pipe (pipe_t *pipe_, bool icanhasall_)
50
49
{
 
50
    // icanhasall_ is unused
 
51
    (void) icanhasall_;
 
52
 
51
53
    zmq_assert (pipe_);
52
54
    fq.attach (pipe_);
53
55
    lb.attach (pipe_);
60
62
 
61
63
int zmq::dealer_t::xrecv (msg_t *msg_, int flags_)
62
64
{
 
65
    // flags_ is unused
 
66
    (void)flags_;
 
67
 
63
68
    //  If there is a prefetched message, return it.
64
69
    if (prefetched) {
65
70
        int rc = msg_->move (prefetched_msg);