libzmq
src
tipc_address.hpp
Go to the documentation of this file.
1
/* SPDX-License-Identifier: MPL-2.0 */
2
3
#ifndef __ZMQ_TIPC_ADDRESS_HPP_INCLUDED__
4
#define __ZMQ_TIPC_ADDRESS_HPP_INCLUDED__
5
6
#include <string>
7
8
#include "platform.hpp"
9
10
#if defined ZMQ_HAVE_TIPC
11
12
#include <sys/socket.h>
13
#if defined ZMQ_HAVE_VXWORKS
14
#include <tipc/tipc.h>
15
#else
16
#include <linux/tipc.h>
17
#endif
18
19
namespace
zmq
20
{
21
class
tipc_address_t
22
{
23
public
:
24
tipc_address_t ();
25
tipc_address_t (
const
sockaddr *sa, socklen_t sa_len);
26
27
// This function sets up the address "{type, lower, upper}" for TIPC transport
28
int
resolve
(
const
char
*
name
);
29
30
// The opposite to resolve()
31
int
to_string (
std::string
&addr_)
const
;
32
33
// Handling different TIPC address types
34
bool
is_service ()
const
;
35
bool
is_random ()
const
;
36
void
set_random ();
37
38
const
sockaddr *addr ()
const
;
39
socklen_t addrlen ()
const
;
40
41
private
:
42
bool
_random;
43
struct
sockaddr_tipc
address
;
44
};
45
}
46
47
#endif
48
49
#endif
name
GLuint const GLchar * name
Definition:
glcorearb.h:3055
string
GLsizei const GLchar *const * string
Definition:
glcorearb.h:3083
address
const char * address
Definition:
builds/zos/test_fork.cpp:6
resolve
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
zmq
Definition:
zmq.hpp:229
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:00