![]() |
Establishes a socket connection by trying each endpoint in a sequence.
template< typename Protocol, typename EndpointSequence> Protocol::endpoint connect( basic_socket< Protocol > & s, const EndpointSequence & endpoints, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0); » more... template< typename Protocol, typename EndpointSequence> Protocol::endpoint connect( basic_socket< Protocol > & s, const EndpointSequence & endpoints, std::error_code & ec, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0); » more... template< typename Protocol, typename Iterator> Iterator connect( basic_socket< Protocol > & s, Iterator begin, Iterator end); » more... template< typename Protocol, typename Iterator> Iterator connect( basic_socket< Protocol > & s, Iterator begin, Iterator end, std::error_code & ec); » more... template< typename Protocol, typename EndpointSequence, typename ConnectCondition> Protocol::endpoint connect( basic_socket< Protocol > & s, const EndpointSequence & endpoints, ConnectCondition connect_condition, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0); » more... template< typename Protocol, typename EndpointSequence, typename ConnectCondition> Protocol::endpoint connect( basic_socket< Protocol > & s, const EndpointSequence & endpoints, ConnectCondition connect_condition, std::error_code & ec, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0); » more... template< typename Protocol, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol > & s, Iterator begin, Iterator end, ConnectCondition connect_condition); » more... template< typename Protocol, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol > & s, Iterator begin, Iterator end, ConnectCondition connect_condition, std::error_code & ec); » more...