ipc_address.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: MPL-2.0 */
2 
3 #ifndef __ZMQ_IPC_ADDRESS_HPP_INCLUDED__
4 #define __ZMQ_IPC_ADDRESS_HPP_INCLUDED__
5 
6 #if defined ZMQ_HAVE_IPC
7 
8 #include <string>
9 
10 #if defined ZMQ_HAVE_WINDOWS
11 #include <afunix.h>
12 #else
13 #include <sys/socket.h>
14 #include <sys/un.h>
15 #endif
16 
17 #include "macros.hpp"
18 
19 namespace zmq
20 {
21 class ipc_address_t
22 {
23  public:
24  ipc_address_t ();
25  ipc_address_t (const sockaddr *sa_, socklen_t sa_len_);
26  ~ipc_address_t ();
27 
28  // This function sets up the address for UNIX domain transport.
29  int resolve (const char *path_);
30 
31  // The opposite to resolve()
32  int to_string (std::string &addr_) const;
33 
34  const sockaddr *addr () const;
35  socklen_t addrlen () const;
36 
37  private:
38  struct sockaddr_un _address;
39  socklen_t _addrlen;
40 
41  ZMQ_NON_COPYABLE_NOR_MOVABLE (ipc_address_t)
42 };
43 }
44 
45 #endif
46 
47 #endif
string
GLsizei const GLchar *const * string
Definition: glcorearb.h:3083
resolve
ROSCPP_DECL std::string resolve(const std::string &name, bool remap=true)
zmq
Definition: zmq.hpp:229
macros.hpp
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:06:54