Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

connect

Establishes a socket connection by trying each endpoint in a sequence.

template<
    typename Protocol,
    typename SocketService,
    typename Iterator>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    boost::system::error_code & ec);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    Iterator end);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    Iterator end,
    boost::system::error_code & ec);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator,
    typename ConnectCondition>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    ConnectCondition connect_condition);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator,
    typename ConnectCondition>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    ConnectCondition connect_condition,
    boost::system::error_code & ec);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator,
    typename ConnectCondition>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    Iterator end,
    ConnectCondition connect_condition);
  » more...

template<
    typename Protocol,
    typename SocketService,
    typename Iterator,
    typename ConnectCondition>
Iterator connect(
    basic_socket< Protocol, SocketService > & s,
    Iterator begin,
    Iterator end,
    ConnectCondition connect_condition,
    boost::system::error_code & ec);
  » more...
Requirements

Header: boost/asio/connect.hpp

Convenience header: boost/asio.hpp


PrevUpHomeNext