boost::corosio::local_endpoint
A Unix domain socket endpoint (filesystem path).
Synopsis
Declared in <boost/corosio/local_endpoint.hpp>
class local_endpoint;
Description
Stores the path in a fixed‐size buffer, avoiding heap allocation. The object is trivially copyable.
Abstract sockets (Linux‐only) are represented by paths whose first character is '0'. The full path including the leading null byte is stored.
The library does NOT automatically unlink the socket path on close — callers are responsible for cleanup.
Member Functions
Name |
Description |
|
Constructors |
Return true if the endpoint has no path. |
|
Check if this is an abstract socket (Linux‐only). |
|
Return the socket path. |
Static Data Members
Name |
Description |
Maximum path length for a Unix domain socket (excluding null terminator). |
Friends
Name |
Description |
Lexicographic ordering on stored path bytes. |
|
Format the endpoint for stream output. |
|
Compare endpoints for equality. |
Created with MrDocs