tipc_connecter.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __TIPC_CONNECTER_HPP_INCLUDED__
4 #define __TIPC_CONNECTER_HPP_INCLUDED__
5 
6 #include "platform.hpp"
7 
8 #if defined ZMQ_HAVE_TIPC
9 
10 #include "fd.hpp"
12 
13 namespace zmq
14 {
15 class tipc_connecter_t ZMQ_FINAL : public stream_connecter_base_t
16 {
17  public:
18  // If 'delayed_start' is true connecter first waits for a while,
19  // then starts connection process.
20  tipc_connecter_t (zmq::io_thread_t *io_thread_,
21  zmq::session_base_t *session_,
22  const options_t &options_,
23  address_t *addr_,
24  bool delayed_start_);
25 
26  private:
27  // Handlers for I/O events.
28  void out_event () ZMQ_FINAL;
29 
30  // Internal function to start the actual connection establishment.
31  void start_connecting () ZMQ_FINAL;
32 
33  // Get the file descriptor of newly created connection. Returns
34  // retired_fd if the connection was unsuccessful.
35  fd_t connect ();
36 
37  // Open IPC connecting socket. Returns -1 in case of error,
38  // 0 if connect was successful immediately. Returns -1 with
39  // EAGAIN errno if async connect was launched.
40  int open ();
41 
42  ZMQ_NON_COPYABLE_NOR_MOVABLE (tipc_connecter_t)
43 };
44 }
45 
46 #endif
47 
48 #endif
zmq::session_base_t
Definition: session_base.hpp:21
zmq
Definition: zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition: macros.hpp:58
fd.hpp
fd_t
zmq_fd_t fd_t
Definition: libzmq/tests/testutil.hpp:98
stream_connecter_base.hpp
ZMQ_FINAL
Definition: unittest_ip_resolver.cpp:26
options_
DebugStringOptions options_
Definition: src/google/protobuf/descriptor.cc:2410


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00