pull.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_PULL_HPP_INCLUDED__
4 #define __ZMQ_PULL_HPP_INCLUDED__
5 
6 #include "socket_base.hpp"
7 #include "session_base.hpp"
8 #include "fq.hpp"
9 
10 namespace zmq
11 {
12 class ctx_t;
13 class pipe_t;
14 class msg_t;
15 class io_thread_t;
16 
17 class pull_t ZMQ_FINAL : public socket_base_t
18 {
19  public:
20  pull_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);
21  ~pull_t ();
22 
23  protected:
24  // Overrides of functions from socket_base_t.
25  void xattach_pipe (zmq::pipe_t *pipe_,
26  bool subscribe_to_all_,
27  bool locally_initiated_);
28  int xrecv (zmq::msg_t *msg_);
29  bool xhas_in ();
30  void xread_activated (zmq::pipe_t *pipe_);
31  void xpipe_terminated (zmq::pipe_t *pipe_);
32 
33  private:
34  // Fair queueing object for inbound pipes.
35  fq_t _fq;
36 
38 };
39 }
40 
41 #endif
zmq
Definition: zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition: macros.hpp:58
fq.hpp
socket_base.hpp
session_base.hpp
ZMQ_FINAL
Definition: unittest_ip_resolver.cpp:26
zmq::msg_t
Definition: msg.hpp:33


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