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