728x90
반응형
connect
connect 함수는 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립하는 합성된 작업이다.
순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립한다.
template< typename Protocol, typename Executor, typename EndpointSequence> Protocol::endpoint connect( basic_socket< Protocol, Executor > & s, const EndpointSequence & endpoints, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0);
[Protocol, Executor, EndpointSequence, connect]
template< typename Protocol, typename Executor, typename EndpointSequence> Protocol::endpoint connect( basic_socket< Protocol, Executor > & s, const EndpointSequence & endpoints, boost::system::error_code & ec, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0);
(더 이상 사용되지 않음: 범위 오버로드를 사용한다.) 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립한다.
template< typename Protocol, typename Executor, typename Iterator> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
template< typename Protocol, typename Executor, typename Iterator> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, boost::system::error_code & ec, typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립한다.
template< typename Protocol, typename Executor, typename Iterator> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, Iterator end);
template< typename Protocol, typename Executor, typename Iterator> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, Iterator end, boost::system::error_code & ec);
template< typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> Protocol::endpoint connect( basic_socket< Protocol, Executor > & s, const EndpointSequence & endpoints, ConnectCondition connect_condition, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0);
[Protocol, Executor, EndpointSequence, ConnectCondition, connect]
template< typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> Protocol::endpoint connect( basic_socket< Protocol, Executor > & s, const EndpointSequence & endpoints, ConnectCondition connect_condition, boost::system::error_code & ec, typename enable_if< is_endpoint_sequence< EndpointSequence >::value >::type * = 0);
[Protocol, Executor, EndpointSequence, ConnectCondition, connect]
(더 이상 사용되지 않음: 범위 오버로드를 사용한다.) 순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립한다.
template< typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, ConnectCondition connect_condition, typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
[Protocol, Executor, ConnectCondition, connect]
template< typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, ConnectCondition connect_condition, boost::system::error_code & ec, typename enable_if<!is_endpoint_sequence< Iterator >::value >::type * = 0);
순서대로 각 엔드포인트에 연결을 시도하여 소켓 연결을 수립한다.
template< typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, Iterator end, ConnectCondition connect_condition);
[Protocol, Executor, ConnectCondition, connect]
template< typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect( basic_socket< Protocol, Executor > & s, Iterator begin, Iterator end, ConnectCondition connect_condition, boost::system::error_code & ec);
요구 사항
일반 헤더: boost/asio/connect.hpp
편의 헤더: boost/asio.hpp
Boost.Asio 홈
728x90
반응형
'Boost C++ Libraries > Boost.Asio' 카테고리의 다른 글
Boost.Asio 색인 - basic_seq_packet_socket::connect (0) | 2021.01.15 |
---|---|
Boost.Asio 색인 - basic_raw_socket::connect (0) | 2021.01.15 |
Boost.Asio 색인 - async_result< std::packaged_task< Result(Args...)>, Signature >: (0) | 2021.01.15 |
Boost.Asio 색인 - async_result::completion_handler_type (0) | 2021.01.15 |
Boost.Asio 색인 - async_completion::completion_handler_type (0) | 2021.01.15 |