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

async_connect

The async_connect function is a composed asynchronous operation that establishes a socket connection by trying each endpoint in a sequence.

Asynchronously establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename Executor,
    typename EndpointSequence,
    typename RangeConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    const EndpointSequence & endpoints,
    RangeConnectToken && token = DEFAULT,
    typename constraint< is_endpoint_sequence< EndpointSequence >::value >::type  = 0);
  » more...

(Deprecated: Use range overload.) Asynchronously establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename IteratorConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    IteratorConnectToken && token = DEFAULT,
    typename constraint<!is_endpoint_sequence< Iterator >::value >::type  = 0);
  » more...

Asynchronously establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename IteratorConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    Iterator end,
    IteratorConnectToken && token = DEFAULT);
  » more...

template<
    typename Protocol,
    typename Executor,
    typename EndpointSequence,
    typename ConnectCondition,
    typename RangeConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    const EndpointSequence & endpoints,
    ConnectCondition connect_condition,
    RangeConnectToken && token = DEFAULT,
    typename constraint< is_endpoint_sequence< EndpointSequence >::value >::type  = 0);
  » more...

(Deprecated: Use range overload.) Asynchronously establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename ConnectCondition,
    typename IteratorConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    ConnectCondition connect_condition,
    IteratorConnectToken && token = DEFAULT,
    typename constraint<!is_endpoint_sequence< Iterator >::value >::type  = 0);
  » more...

Asynchronously establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename ConnectCondition,
    typename IteratorConnectToken = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    Iterator end,
    ConnectCondition connect_condition,
    IteratorConnectToken && token = DEFAULT);
  » more...
Requirements

Header: boost/asio/connect.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext