Seastar
High performance C++ framework for concurrent servers
|
A helper struct for creating/manipulating UNIX-domain sockets.
A UNIX-domain socket is either named or unnamed. If named, the name is either a path in the filesystem namespace, or an abstract-domain identifier. Abstract-domain names start with a null byte, and may contain non-printable characters.
std::string() can hold a sequence of arbitrary bytes, and has a length() attribute that does not rely on using strlen(). Thus it is used here to hold the address.
#include <seastar/net/unix_address.hh>
Public Member Functions | |
unix_domain_addr (const std::string &fn) | |
unix_domain_addr (const char *fn) | |
int | path_length () const |
int | path_length_aux () const |
const char * | path_bytes () const |
bool | operator== (const unix_domain_addr &a) const |
bool | operator!= (const unix_domain_addr &a) const |
Public Attributes | |
const std::string | name |
const int | path_count |