MySQL 9.1.0
Source Code Documentation
|
endpoint of Unix domain sockets (AF_UNIX). More...
#include <local.h>
Public Types | |
using | protocol_type = Protocol |
Public Member Functions | |
constexpr | basic_endpoint () noexcept |
basic_endpoint (std::string_view path) | |
constexpr protocol_type | protocol () const noexcept |
std::string | path () const |
get path. More... | |
const void * | data () const noexcept |
void * | data () noexcept |
constexpr size_t | size () const noexcept |
bytes used data(). More... | |
constexpr size_t | capacity () const noexcept |
void | resize (size_t n) noexcept |
resize data(). More... | |
Private Member Functions | |
constexpr size_t | max_path_len () const |
Private Attributes | |
sockaddr_un | data_ |
size_t | path_len_ {0} |
endpoint of Unix domain sockets (AF_UNIX).
path may be:
using local::basic_endpoint< Protocol >::protocol_type = Protocol |
|
inlineconstexprnoexcept |
|
inline |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineconstexprprivate |
|
inline |
get path.
|
inlineconstexprnoexcept |
|
inlinenoexcept |
resize data().
n | size to resize data() too |
if n == 0, path() is considered empty, if n < offsetof(sockaddr_un, sun_path), behaviour is undefined, otherwise path().size() is the rest of the data()
|
inlineconstexprnoexcept |
bytes used data().
|
private |
|
private |