boost::corosio::local_stream

Protocol tag for local (Unix domain) stream sockets.

Synopsis

class local_stream;

Description

Identifies the local stream protocol for parameterizing socket and acceptor open() calls with a self‐documenting type.

The family(), type(), and protocol() members return the three integers passed to the operating system's socket() call. Their values are platform‐defined constants taken from the system socket headers.

Example

local_stream_socket sock(ctx);
sock.open(local_stream{});

Type Aliases

Name

Description

acceptor

The acceptor type to use with this protocol, local_stream_acceptor.

socket

The socket type to use with this protocol, local_stream_socket.

Static Member Functions

Name

Description

family

Return the address family, the platform's AF_UNIX constant.

protocol

Return the protocol number, always 0.

type

Return the socket type, the platform's SOCK_STREAM constant.

See Also

native_local_stream, local_stream_socket, local_stream_acceptor

Created with MrDocs