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

« back to all changes in this revision

Viewing changes to src/pair.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:
38
38
 
39
39
void zmq::pair_t::xattach_pipe (pipe_t *pipe_, bool icanhasall_)
40
40
{
 
41
    // icanhasall_ is unused
 
42
    (void)icanhasall_;
 
43
 
41
44
    zmq_assert (pipe_ != NULL);
42
45
 
43
46
    //  ZMQ_PAIR socket can only be connected to a single peer.
54
57
        pipe = NULL;
55
58
}
56
59
 
57
 
void zmq::pair_t::xread_activated (pipe_t *pipe_)
 
60
void zmq::pair_t::xread_activated (pipe_t *)
58
61
{
59
62
    //  There's just one pipe. No lists of active and inactive pipes.
60
63
    //  There's nothing to do here.
61
64
}
62
65
 
63
 
void zmq::pair_t::xwrite_activated (pipe_t *pipe_)
 
66
void zmq::pair_t::xwrite_activated (pipe_t *)
64
67
{
65
68
    //  There's just one pipe. No lists of active and inactive pipes.
66
69
    //  There's nothing to do here.
85
88
 
86
89
int zmq::pair_t::xrecv (msg_t *msg_, int flags_)
87
90
{
 
91
    // flags_ is unused
 
92
    (void)flags_;
 
93
 
88
94
    //  Deallocate old content of the message.
89
95
    int rc = msg_->close ();
90
96
    errno_assert (rc == 0);