| 1283 | */ |
| 1284 | template <typename Protocol1, typename Executor1> |
| 1285 | void accept(basic_socket<Protocol1, Executor1>& peer, |
| 1286 | constraint_t< |
| 1287 | is_convertible<Protocol, Protocol1>::value |
| 1288 | > = 0) |
| 1289 | { |
| 1290 | boost::system::error_code ec; |
| 1291 | impl_.get_service().accept(impl_.get_implementation(), |
| 1292 | peer, static_cast<endpoint_type*>(0), ec); |
| 1293 | boost::asio::detail::throw_error(ec, "accept"); |
| 1294 | } |
| 1295 | |
| 1296 | /// Accept a new connection. |
| 1297 | /** |
no test coverage detected