Go to the documentation of this file.
3 #ifndef __ZMQ_ADDRESS_HPP_INCLUDED__
4 #define __ZMQ_ADDRESS_HPP_INCLUDED__
10 #ifndef ZMQ_HAVE_WINDOWS
11 #include <sys/socket.h>
25 #if defined ZMQ_HAVE_IPC
28 #if defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_VXWORKS
31 #if defined ZMQ_HAVE_VMCI
35 namespace protocol_name
37 static const char inproc[] =
"inproc";
38 static const char tcp[] =
"tcp";
39 static const char udp[] =
"udp";
40 #ifdef ZMQ_HAVE_OPENPGM
41 static const char pgm[] =
"pgm";
42 static const char epgm[] =
"epgm";
45 static const char norm[] =
"norm";
48 static const char ws[] =
"ws";
51 static const char wss[] =
"wss";
53 #if defined ZMQ_HAVE_IPC
54 static const char ipc[] =
"ipc";
56 #if defined ZMQ_HAVE_TIPC
57 static const char tipc[] =
"tipc";
59 #if defined ZMQ_HAVE_VMCI
60 static const char vmci[] =
"vmci";
89 #if defined ZMQ_HAVE_IPC
90 ipc_address_t *ipc_addr;
92 #if defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_VXWORKS
93 tipc_address_t *tipc_addr;
95 #if defined ZMQ_HAVE_VMCI
96 vmci_address_t *vmci_addr;
103 #if defined(ZMQ_HAVE_HPUX) || defined(ZMQ_HAVE_VXWORKS) \
104 || defined(ZMQ_HAVE_WINDOWS)
119 template <
typename T>
122 struct sockaddr_storage ss;
128 const T addr (
reinterpret_cast<struct sockaddr *
> (&ss), sl);
130 addr.to_string (address_string);
131 return address_string;
std::string get_socket_name(fd_t fd_, socket_end_t socket_end_)
const std::string address
GLsizei const GLchar *const * string
union zmq::address_t::@23 resolved
#define T(upbtypeconst, upbtype, ctype, default_value)
const std::string protocol
zmq_socklen_t get_socket_address(fd_t fd_, socket_end_t socket_end_, sockaddr_storage *ss_)
static const char inproc[]
int to_string(std::string &addr_) const
address_t(const std::string &protocol_, const std::string &address_, ctx_t *parent_)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:47