Boost C++ Libraries/Boost.Asio

Boost.Asio 색인 - async_connect

까마귀75 2021. 1. 6. 13:46
728x90
반응형

async_connect

async_connect 함수는 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 설정하는 합성된 비동기 작업이다.

[1 / 6 오버로드] 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename EndpointSequence,
    typename RangeConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    const EndpointSequence & endpoints,
    RangeConnectHandler && handler = DEFAULT,
    typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type *  = 0);

[Protocol, Executor, EndpointSequence, RangeConnectHandler, DEFAULT, DEDUCED, async_connect]

[2 / 6 오버로드] (더 이상 사용되지 않음: range 오버로드 사용) 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename IteratorConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    IteratorConnectHandler && handler = DEFAULT,
    typename enable_if<!is_endpoint_sequence< Iterator >::value >::type *  = 0);

[Protocol, Executor, IteratorConnectHandler, DEFAULT, DEDUCED, async_connect]

[3 / 6 오버로드] 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename IteratorConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    Iterator end,
    IteratorConnectHandler && handler = DEFAULT);

[Protocol, Executor, IteratorConnectHandler, DEFAULT, DEDUCED, async_connect]

[4 / 6 오버로드] 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename EndpointSequence,
    typename ConnectCondition,
    typename RangeConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    const EndpointSequence & endpoints,
    ConnectCondition connect_condition,
    RangeConnectHandler && handler = DEFAULT,
    typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type *  = 0);

[Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler, DEFAULT, DEDUCED, async_connect]

[5 / 6 오버로드] (더 이상 사용되지 않음: range 오버로드 사용) 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename ConnectCondition,
    typename IteratorConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    ConnectCondition connect_condition,
    IteratorConnectHandler && handler = DEFAULT,
    typename enable_if<!is_endpoint_sequence< Iterator >::value >::type *  = 0);

[Protocol, Executor, ConnectCondition, IteratorConnectHandler, DEFAULT, DEDUCED, async_connect]

[6 / 6 오버로드] 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 비동기적으로 설정한다.

template<
    typename Protocol,
    typename Executor,
    typename Iterator,
    typename ConnectCondition,
    typename IteratorConnectHandler = DEFAULT>
DEDUCED async_connect(
    basic_socket< Protocol, Executor > & s,
    Iterator begin,
    Iterator end,
    ConnectCondition connect_condition,
    IteratorConnectHandler && handler = DEFAULT);

[Protocol, Executor, ConnectCondition, IteratorConnectHandler, DEFAULT, DEDUCED, async_connect]

요구사항

일반 헤더 : boost/asio/connect.hpp
편의 헤더 : boost/asio.hpp

Boost.Asio 홈

728x90
반응형