pull.cpp
Go to the documentation of this file.
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  socket_base_t (parent_, tid_, sid_)
12 {
13  options.type = ZMQ_PULL;
14 }
15 
16 zmq::pull_t::~pull_t ()
17 {
18 }
19 
20 void zmq::pull_t::xattach_pipe (pipe_t *pipe_,
21  bool subscribe_to_all_,
22  bool locally_initiated_)
23 {
24  LIBZMQ_UNUSED (subscribe_to_all_);
25  LIBZMQ_UNUSED (locally_initiated_);
26 
27  zmq_assert (pipe_);
28  _fq.attach (pipe_);
29 }
30 
31 void zmq::pull_t::xread_activated (pipe_t *pipe_)
32 {
33  _fq.activated (pipe_);
34 }
35 
36 void zmq::pull_t::xpipe_terminated (pipe_t *pipe_)
37 {
38  _fq.pipe_terminated (pipe_);
39 }
40 
41 int zmq::pull_t::xrecv (msg_t *msg_)
42 {
43  return _fq.recv (msg_);
44 }
45 
46 bool zmq::pull_t::xhas_in ()
47 {
48  return _fq.has_in ();
49 }
options
Message * options
Definition: src/google/protobuf/descriptor.cc:3119
precompiled.hpp
zmq_assert
#define zmq_assert(x)
Definition: err.hpp:102
pull.hpp
macros.hpp
LIBZMQ_UNUSED
#define LIBZMQ_UNUSED(object)
Definition: macros.hpp:6
pipe.hpp
msg.hpp
err.hpp
ZMQ_PULL
#define ZMQ_PULL
Definition: zmq.h:265


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:58