asio C++ library

PrevUpHomeNext

local::connect_pair

Create a pair of connected sockets.

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

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

Header: asio/local/connect_pair.hpp

Convenience header: asio.hpp


PrevUpHomeNext