![]() |
Home | Libraries | People | FAQ | More |
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 EndpointSequence,
typename RangeConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
const EndpointSequence & endpoints,
RangeConnectHandler && handler,
typename enable_if< 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 Iterator,
typename IteratorConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
Iterator begin,
IteratorConnectHandler && handler,
typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
» more...
Asynchronously establishes a socket connection by trying each endpoint in a sequence.
template<
typename Protocol,
typename Iterator,
typename IteratorConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
Iterator begin,
Iterator end,
IteratorConnectHandler && handler);
» more...
template<
typename Protocol,
typename EndpointSequence,
typename ConnectCondition,
typename RangeConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
const EndpointSequence & endpoints,
ConnectCondition connect_condition,
RangeConnectHandler && handler,
typename enable_if< 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 Iterator,
typename ConnectCondition,
typename IteratorConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
Iterator begin,
ConnectCondition connect_condition,
IteratorConnectHandler && handler,
typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
» more...
Asynchronously establishes a socket connection by trying each endpoint in a sequence.
template<
typename Protocol,
typename Iterator,
typename ConnectCondition,
typename IteratorConnectHandler>
DEDUCED async_connect(
basic_socket< Protocol > & s,
Iterator begin,
Iterator end,
ConnectCondition connect_condition,
IteratorConnectHandler && handler);
» more...
Header: boost/asio/connect.hpp
Convenience header: boost/asio.hpp