boost::corosio::local_stream_acceptor::bind

Bind to a local endpoint.

Synopsis

[[nodiscard]]
std::error_code
bind(
    corosio::local_endpoint ep,
    bind_option opt = bind_option::none);

Exceptions

Name

Thrown on

std::logic_error

if the acceptor is not open.

Return Value

An error code on failure, empty on success.

Parameters

Name

Description

ep

The local endpoint (path) to bind to.

opt

Bind options. Pass bind_option::unlink_existing to unlink the socket path before binding (ignored for abstract sockets and empty endpoints).

Created with MrDocs