boost::corosio::local_endpoint

A Unix domain socket endpoint (filesystem path).

Synopsis

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.

Thread Safety

Distinct objects: Safe. Shared objects: Safe.

Member Functions

Name

Description

local_endpoint [constructor]

Constructors

empty

Return true if the endpoint has no path.

is_abstract

Check if this is an abstract socket (Linux‐only).

path

Return the socket path.

Static Data Members

Name

Description

max_path_length

Maximum path length for a Unix domain socket (excluding null terminator).

Friends

Name

Description

boost::corosio::operator<=>

Lexicographic ordering on stored path bytes.

boost::corosio::operator<<

Format the endpoint for stream output.

boost::corosio::operator==

Compare endpoints for equality.

Created with MrDocs