template< typename Protocol1, typename SocketService> void accept( basic_socket< Protocol1, SocketService > & peer, typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0); » more... template< typename Protocol1, typename SocketService> asio::error_code accept( basic_socket< Protocol1, SocketService > & peer, asio::error_code & ec, typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0); » more...
Accept a new connection and obtain the endpoint of the peer.
template< typename SocketService> void accept( basic_socket< protocol_type, SocketService > & peer, endpoint_type & peer_endpoint); » more... template< typename SocketService> asio::error_code accept( basic_socket< protocol_type, SocketService > & peer, endpoint_type & peer_endpoint, asio::error_code & ec); » more...