Start an asynchronous accept.
</p>
<pre class="programlisting">template<
- typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a>>
+ typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#boost_asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
<a class="link" href="../../asynchronous_operations.html#boost_asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
- MoveAcceptHandler && handler);
+ MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#boost_asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>);
</pre>
<p>
This function is used to asynchronously accept a new connection. The
of the handler must be:
</p>
<pre class="programlisting">void handler(
- const boost::system::error_code& error, // Result of operation.
- typename Protocol::socket peer // On success, the newly accepted socket.
+ // Result of operation.
+ const boost::system::error_code& error,
+ // On success, the newly accepted socket.
+ typename Protocol::socket::template
+ rebind_executor<executor_type>::other peer
);
</pre>
<p>