| 1258 | */ |
| 1259 | template <typename Protocol1, typename Executor1> |
| 1260 | void accept(basic_socket<Protocol1, Executor1>& peer, |
| 1261 | typename enable_if< |
| 1262 | is_convertible<Protocol, Protocol1>::value |
| 1263 | >::type* = 0) |
| 1264 | { |
| 1265 | asio::error_code ec; |
| 1266 | impl_.get_service().accept(impl_.get_implementation(), |
| 1267 | peer, static_cast<endpoint_type*>(0), ec); |
| 1268 | asio::detail::throw_error(ec, "accept"); |
| 1269 | } |
| 1270 | |
| 1271 | /// Accept a new connection. |
| 1272 | /** |
nothing calls this directly
no test coverage detected