### local::connect_pair

Create a pair of connected sockets.

    template<
        typename Protocol>
    void connect_pair(
        basic_socket< Protocol > & socket1,
        basic_socket< Protocol > & socket2);
      » more...

    template<
        typename Protocol>
    void connect_pair(
        basic_socket< Protocol > & socket1,
        basic_socket< Protocol > & socket2,
        asio::error_code & ec);
      » more...

##### Requirements

Header: `asio/local/connect_pair.hpp`

Convenience header: `asio.hpp`