libzmq
src
vmci_listener.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_VMCI_LISTENER_HPP_INCLUDED__
4
#define __ZMQ_VMCI_LISTENER_HPP_INCLUDED__
5
6
#include "platform.hpp"
7
8
#if defined ZMQ_HAVE_VMCI
9
10
#include <string>
11
12
#include "
fd.hpp
"
13
#include "
vmci_address.hpp
"
14
#include "
stream_listener_base.hpp
"
15
16
namespace
zmq
17
{
18
class
vmci_listener_t
ZMQ_FINAL
:
public
stream_listener_base_t
19
{
20
public
:
21
vmci_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_,
socket_end_t
socket_end_)
const
;
30
31
private
:
32
// Handlers for I/O events.
33
void
in_event ();
34
35
// Accept the new connection. Returns the file descriptor of the
36
// newly created connection. The function may return retired_fd
37
// if the connection was dropped while waiting in the listen backlog.
38
fd_t
accept ();
39
40
int
create_socket (
const
char
*addr_);
41
42
// Address to listen on.
43
vmci_address_t _address;
44
45
ZMQ_NON_COPYABLE_NOR_MOVABLE
(vmci_listener_t)
46
};
47
}
48
49
#endif
50
51
#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
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
vmci_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:01