Line | Count | Source (jump to first uncovered line) |
1 | | /* SPDX-License-Identifier: MPL-2.0 */ |
2 | | |
3 | | #include "precompiled.hpp" |
4 | | #include "macros.hpp" |
5 | | #include "pull.hpp" |
6 | | #include "err.hpp" |
7 | | #include "msg.hpp" |
8 | | #include "pipe.hpp" |
9 | | |
10 | | zmq::pull_t::pull_t (class ctx_t *parent_, uint32_t tid_, int sid_) : |
11 | 0 | socket_base_t (parent_, tid_, sid_) |
12 | 0 | { |
13 | 0 | options.type = ZMQ_PULL; |
14 | 0 | } |
15 | | |
16 | | zmq::pull_t::~pull_t () |
17 | 0 | { |
18 | 0 | } |
19 | | |
20 | | void zmq::pull_t::xattach_pipe (pipe_t *pipe_, |
21 | | bool subscribe_to_all_, |
22 | | bool locally_initiated_) |
23 | 0 | { |
24 | 0 | LIBZMQ_UNUSED (subscribe_to_all_); |
25 | 0 | LIBZMQ_UNUSED (locally_initiated_); |
26 | |
|
27 | 0 | zmq_assert (pipe_); |
28 | 0 | _fq.attach (pipe_); |
29 | 0 | } |
30 | | |
31 | | void zmq::pull_t::xread_activated (pipe_t *pipe_) |
32 | 0 | { |
33 | 0 | _fq.activated (pipe_); |
34 | 0 | } |
35 | | |
36 | | void zmq::pull_t::xpipe_terminated (pipe_t *pipe_) |
37 | 0 | { |
38 | 0 | _fq.pipe_terminated (pipe_); |
39 | 0 | } |
40 | | |
41 | | int zmq::pull_t::xrecv (msg_t *msg_) |
42 | 0 | { |
43 | 0 | return _fq.recv (msg_); |
44 | 0 | } |
45 | | |
46 | | bool zmq::pull_t::xhas_in () |
47 | 0 | { |
48 | 0 | return _fq.has_in (); |
49 | 0 | } |