boost::corosio::native_udp_socket::connect

Asynchronously connect to set the default peer.

Synopsis

auto
connect(endpoint ep);

Description

Calls the backend implementation directly, bypassing virtual dispatch. Otherwise identical to udp_socket::connect.

If the socket is not already open, it is opened automatically using the address family of ep.

Exceptions

Name

Thrown on

std::system_error

if the socket needs to be opened and the open fails.

Return Value

An awaitable yielding io_result<>.

Parameters

Name

Description

ep

The remote endpoint to connect to.

Created with MrDocs