libzmq
src
vmci_address.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_VMCI_ADDRESS_HPP_INCLUDED__
4
#define __ZMQ_VMCI_ADDRESS_HPP_INCLUDED__
5
6
#include <string>
7
8
#include "platform.hpp"
9
#include "
ctx.hpp
"
10
11
#if defined(ZMQ_HAVE_VMCI)
12
#include <vmci_sockets.h>
13
14
namespace
zmq
15
{
16
class
vmci_address_t
17
{
18
public
:
19
vmci_address_t ();
20
vmci_address_t (ctx_t *parent_);
21
vmci_address_t (
const
sockaddr *sa, socklen_t sa_len, ctx_t *parent_);
22
23
// This function sets up the address for VMCI transport.
24
int
resolve
(
const
char
*path_);
25
26
// The opposite to resolve()
27
int
to_string (
std::string
&addr_)
const
;
28
29
#if defined ZMQ_HAVE_WINDOWS
30
unsigned
short
family ()
const
;
31
#else
32
sa_family_t family ()
const
;
33
#endif
34
const
sockaddr *addr ()
const
;
35
socklen_t addrlen ()
const
;
36
37
private
:
38
struct
sockaddr_vm
address
;
39
ctx_t *parent;
40
41
ZMQ_NON_COPYABLE_NOR_MOVABLE
(vmci_address_t)
42
};
43
}
44
45
#endif
46
47
#endif
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:3083
address
const char * address
Definition:
builds/zos/test_fork.cpp:6
ctx.hpp
resolve
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
zmq
Definition:
zmq.hpp:229
ZMQ_NON_COPYABLE_NOR_MOVABLE
#define ZMQ_NON_COPYABLE_NOR_MOVABLE(classname)
Definition:
macros.hpp:58
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:01