Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

local::basic_endpoint

Describes an endpoint for a UNIX socket.

template<
    typename Protocol>
class basic_endpoint
Types

Name

Description

data_type

The type of the endpoint structure. This type is dependent on the underlying implementation of the socket layer.

protocol_type

The protocol type associated with the endpoint.

Member Functions

Name

Description

basic_endpoint

Default constructor.

Construct an endpoint using the specified path name.

Copy constructor.

capacity

Get the capacity of the endpoint in the native type.

data

Get the underlying endpoint in the native type.

operator=

Assign from another endpoint.

path

Get the path associated with the endpoint.

Set the path associated with the endpoint.

protocol

The protocol associated with the endpoint.

resize

Set the underlying size of the endpoint in the native type.

size

Get the underlying size of the endpoint in the native type.

Friends

Name

Description

operator!=

Compare two endpoints for inequality.

operator<

Compare endpoints for ordering.

operator<=

Compare endpoints for ordering.

operator==

Compare two endpoints for equality.

operator>

Compare endpoints for ordering.

operator>=

Compare endpoints for ordering.

Related Functions

Name

Description

operator<<

Output an endpoint as a string.

The local::basic_endpoint class template describes an endpoint that may be associated with a particular UNIX socket.

Thread Safety

Distinct objects: Safe.

Shared objects: Unsafe.

Requirements

Header: boost/asio/local/basic_endpoint.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext