boost::corosio::local_datagram

Protocol tag for local (Unix domain) datagram sockets.

Synopsis

class local_datagram;

Description

Identifies the local datagram protocol for parameterizing socket 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.

Not available on Windows. Windows does not support AF_UNIX datagram sockets (SOCK_DGRAM).

Type Aliases

Name

Description

socket

The socket type to use with this protocol, local_datagram_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_DGRAM constant.

See Also

local_datagram_socket

Created with MrDocs