libzmq
src
tipc_listener.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_TIPC_LISTENER_HPP_INCLUDED__
4
#define __ZMQ_TIPC_LISTENER_HPP_INCLUDED__
5
6
#include "platform.hpp"
7
8
#if defined ZMQ_HAVE_TIPC
9
10
#include <string>
11
12
#include "
fd.hpp
"
13
#include "
stream_listener_base.hpp
"
14
#include "
tipc_address.hpp
"
15
16
namespace
zmq
17
{
18
class
tipc_listener_t
ZMQ_FINAL
:
public
stream_listener_base_t
19
{
20
public
:
21
tipc_listener_t (zmq::io_thread_t *io_thread_,
22
zmq::socket_base_t
*socket_,
23
const
options_t &
options_
);
24
25
// Set address to listen on.
26
int
set_local_address (
const
char
*addr_);
27
28
protected
:
29
std::string
get_socket_name
(
fd_t
fd_,
30
socket_end_t
socket_end_)
const
ZMQ_FINAL
;
31
32
private
:
33
// Handlers for I/O events.
34
void
in_event ()
ZMQ_FINAL
;
35
36
// Accept the new connection. Returns the file descriptor of the
37
// newly created connection. The function may return retired_fd
38
// if the connection was dropped while waiting in the listen backlog.
39
fd_t
accept ();
40
41
// Address to listen on
42
tipc_address_t _address;
43
44
ZMQ_NON_COPYABLE_NOR_MOVABLE
(tipc_listener_t)
45
};
46
}
47
48
#endif
49
50
#endif
zmq::get_socket_name
std::string get_socket_name(fd_t fd_, socket_end_t socket_end_)
Definition:
address.hpp:120
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:3083
zmq::socket_base_t
Definition:
socket_base.hpp:31
ZMQ_FINAL
#define ZMQ_FINAL
Definition:
macros.hpp:35
zmq
Definition:
zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition:
macros.hpp:58
fd.hpp
stream_listener_base.hpp
fd_t
zmq_fd_t fd_t
Definition:
libzmq/tests/testutil.hpp:98
tipc_address.hpp
zmq::socket_end_t
socket_end_t
Definition:
address.hpp:110
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