| 1274 | */ |
| 1275 | template <typename Protocol1, typename Executor1> |
| 1276 | void accept(basic_socket<Protocol1, Executor1>& peer, |
| 1277 | typename constraint< |
| 1278 | is_convertible<Protocol, Protocol1>::value |
| 1279 | >::type = 0) |
| 1280 | { |
| 1281 | asio::error_code ec; |
| 1282 | impl_.get_service().accept(impl_.get_implementation(), |
| 1283 | peer, static_cast<endpoint_type*>(0), ec); |
| 1284 | asio::detail::throw_error(ec, "accept"); |
| 1285 | } |
| 1286 | |
| 1287 | /// Accept a new connection. |
| 1288 | /** |
no test coverage detected