Unix domain socket address. More...
#include <senf/Socket/Protocols/UN/UNAddressing.hh>

Public Member Functions | |
| UNSocketAddress () | |
| UNSocketAddress (std::string const &path) | |
| Construct an address constant from given path. More... | |
| UNSocketAddress (const UNSocketAddress &other) | |
| UNSocketAddress & | operator= (const UNSocketAddress &other) |
| std::string | path () const |
| Return path as string. More... | |
| void | path (std::string const &path) |
Public Member Functions inherited from senf::BSDSocketAddress | |
| bool | operator== (BSDSocketAddress const &other) const |
| Compare two arbitrary addresses. More... | |
| bool | operator< (BSDSocketAddress const &other) const |
| Compare two arbitrary addresses. More... | |
| bool | boolean_test () const |
Return true, if address is not empty. More... | |
| short | family () const |
| Return the address family. More... | |
| struct sockaddr const * | sockaddr_p () const |
| socklen_t | socklen () const |
| socklen_t const * | socklen_p () const |
Public Member Functions inherited from senf::comparable_safe_bool< BSDSocketAddress > | |
| operator bool_type () const | |
| bool | operator! () const |
Static Public Attributes | |
| static short const | addressFamily = AF_UNIX |
Related Functions | |
(Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &os, UNSocketAddress const &addr) |
| Write path to os. More... | |
Related Functions inherited from senf::BSDSocketAddress | |
| template<class Target > | |
| Target & | sockaddr_cast (BSDSocketAddress &source) |
| Safe socket address down-cast. More... | |
| template<class Target > | |
| Target const & | sockaddr_cast (BSDSocketAddress const &source) |
| Safe socket address down-cast (const) More... | |
| std::ostream & | operator<< (std::ostream &os, BSDSocketAddress const &addr) |
| Output generic socket address. More... | |
Additional Inherited Members | |
Protected Types inherited from senf::safe_bool_base | |
| typedef void(safe_bool_base::* | bool_type) () const |
Protected Member Functions inherited from senf::BSDSocketAddress | |
| BSDSocketAddress (socklen_t len, short family) | |
| BSDSocketAddress (BSDSocketAddress const &other) | |
| BSDSocketAddress & | operator= (BSDSocketAddress const &other) |
| struct sockaddr * | sockaddr_p () |
| socklen_t * | socklen_p () |
| void | socklen (socklen_t len) |
Protected Member Functions inherited from senf::comparable_safe_bool< BSDSocketAddress > | |
| ~comparable_safe_bool () | |
Protected Member Functions inherited from senf::safe_bool_base | |
| void | this_type_does_not_support_comparisons () const |
| safe_bool_base () | |
| safe_bool_base (const safe_bool_base &) | |
| safe_bool_base & | operator= (const safe_bool_base &) |
| ~safe_bool_base () | |
Unix domain socket address.
UNSocketAddress wraps the standard sockaddr_un datatype. It provides simple accessor methods to access the path.
Definition at line 41 of file UNAddressing.hh.
| senf::UNSocketAddress::UNSocketAddress | ( | ) |
|
explicit |
Construct an address constant from given path.
| senf::UNSocketAddress::UNSocketAddress | ( | const UNSocketAddress & | other | ) |
| UNSocketAddress& senf::UNSocketAddress::operator= | ( | const UNSocketAddress & | other | ) |
| std::string senf::UNSocketAddress::path | ( | ) | const |
Return path as string.
| void senf::UNSocketAddress::path | ( | std::string const & | path | ) |
Definition at line 26 of file UNAddressing.cc.
|
related |
Write path to os.
|
static |
Definition at line 45 of file UNAddressing.hh.