push.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_PUSH_HPP_INCLUDED__
4 #define __ZMQ_PUSH_HPP_INCLUDED__
5 
6 #include "socket_base.hpp"
7 #include "session_base.hpp"
8 #include "lb.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 push_t ZMQ_FINAL : public socket_base_t
18 {
19  public:
20  push_t (zmq::ctx_t *parent_, uint32_t tid_, int sid_);
21  ~push_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 xsend (zmq::msg_t *msg_);
29  bool xhas_out ();
30  void xwrite_activated (zmq::pipe_t *pipe_);
31  void xpipe_terminated (zmq::pipe_t *pipe_);
32 
33  private:
34  // Load balancer managing the outbound pipes.
35  lb_t _lb;
36 
38 };
39 }
40 
41 #endif
lb.hpp
zmq
Definition: zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition: macros.hpp:58
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