| Home | Libraries | People | FAQ | More

##### basic_stream::async_connect

Connect the stream to the specified endpoint asynchronously.

    template<
        class ConnectHandler>
    DEDUCED
    async_connect(
        endpoint_type const& ep,
        ConnectHandler&& handler);
      » more...

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

    template<
        class EndpointSequence,
        class RangeConnectHandler>
    DEDUCED
    async_connect(
        EndpointSequence const& endpoints,
        RangeConnectHandler&& handler);
      » more...

    template<
        class EndpointSequence,
        class ConnectCondition,
        class RangeConnectHandler>
    DEDUCED
    async_connect(
        EndpointSequence const& endpoints,
        ConnectCondition connect_condition,
        RangeConnectHandler&& handler);
      » more...

    template<
        class Iterator,
        class IteratorConnectHandler>
    DEDUCED
    async_connect(
        Iterator begin,
        Iterator end,
        IteratorConnectHandler&& handler);
      » more...

    template<
        class Iterator,
        class ConnectCondition,
        class IteratorConnectHandler>
    DEDUCED
    async_connect(
        Iterator begin,
        Iterator end,
        ConnectCondition connect_condition,
        IteratorConnectHandler&& handler);
      » more...