Adds asio library and Storage Module
This commit is contained in:
1 parent
79a6ee5779
commit
30439acd43
4869 files changed
+618801
-903
No files matched your search
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::~basic_socket_acceptor</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="wait_type.html" title="basic_socket_acceptor::wait_type">
|
||||
<link rel="next" href="../basic_socket_acceptor__rebind_executor.html" title="basic_socket_acceptor::rebind_executor">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="wait_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../basic_socket_acceptor__rebind_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor._basic_socket_acceptor"></a><a class="link" href="_basic_socket_acceptor.html" title="basic_socket_acceptor::~basic_socket_acceptor">basic_socket_acceptor::~basic_socket_acceptor</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor._basic_socket_acceptor"></a>
|
||||
Destroys
|
||||
the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">~basic_socket_acceptor();
|
||||
</pre>
|
||||
<p>
|
||||
This function destroys the acceptor, cancelling any outstanding asynchronous
|
||||
operations associated with the acceptor as if by calling <code class="computeroutput">cancel</code>.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="wait_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="../basic_socket_acceptor__rebind_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,157 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="next" href="accept/overload1.html" title="basic_socket_acceptor::accept (1 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../basic_socket_acceptor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="accept/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept"></a><a class="link" href="accept.html" title="basic_socket_acceptor::accept">basic_socket_acceptor::accept</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.accept"></a>
|
||||
Accept
|
||||
a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void <a class="link" href="accept/overload1.html" title="basic_socket_acceptor::accept (1 of 16 overloads)">accept</a>(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload1.html" title="basic_socket_acceptor::accept (1 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void <a class="link" href="accept/overload2.html" title="basic_socket_acceptor::accept (2 of 16 overloads)">accept</a>(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload2.html" title="basic_socket_acceptor::accept (2 of 16 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Accept a new connection and obtain the endpoint of the peer.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void <a class="link" href="accept/overload3.html" title="basic_socket_acceptor::accept (3 of 16 overloads)">accept</a>(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload3.html" title="basic_socket_acceptor::accept (3 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void <a class="link" href="accept/overload4.html" title="basic_socket_acceptor::accept (4 of 16 overloads)">accept</a>(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload4.html" title="basic_socket_acceptor::accept (4 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
Protocol::socket::template rebind_executor< executor_type >::other <a class="link" href="accept/overload5.html" title="basic_socket_acceptor::accept (5 of 16 overloads)">accept</a>();
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload5.html" title="basic_socket_acceptor::accept (5 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
Protocol::socket::template rebind_executor< executor_type >::other <a class="link" href="accept/overload6.html" title="basic_socket_acceptor::accept (6 of 16 overloads)">accept</a>(
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload6.html" title="basic_socket_acceptor::accept (6 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other <a class="link" href="accept/overload7.html" title="basic_socket_acceptor::accept (7 of 16 overloads)">accept</a>(
|
||||
const Executor1 & ex,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload7.html" title="basic_socket_acceptor::accept (7 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other <a class="link" href="accept/overload8.html" title="basic_socket_acceptor::accept (8 of 16 overloads)">accept</a>(
|
||||
ExecutionContext & context,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload8.html" title="basic_socket_acceptor::accept (8 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other <a class="link" href="accept/overload9.html" title="basic_socket_acceptor::accept (9 of 16 overloads)">accept</a>(
|
||||
const Executor1 & ex,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload9.html" title="basic_socket_acceptor::accept (9 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other <a class="link" href="accept/overload10.html" title="basic_socket_acceptor::accept (10 of 16 overloads)">accept</a>(
|
||||
ExecutionContext & context,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload10.html" title="basic_socket_acceptor::accept (10 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
Protocol::socket::template rebind_executor< executor_type >::other <a class="link" href="accept/overload11.html" title="basic_socket_acceptor::accept (11 of 16 overloads)">accept</a>(
|
||||
endpoint_type & peer_endpoint);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload11.html" title="basic_socket_acceptor::accept (11 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
Protocol::socket::template rebind_executor< executor_type >::other <a class="link" href="accept/overload12.html" title="basic_socket_acceptor::accept (12 of 16 overloads)">accept</a>(
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload12.html" title="basic_socket_acceptor::accept (12 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other <a class="link" href="accept/overload13.html" title="basic_socket_acceptor::accept (13 of 16 overloads)">accept</a>(
|
||||
const Executor1 & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload13.html" title="basic_socket_acceptor::accept (13 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other <a class="link" href="accept/overload14.html" title="basic_socket_acceptor::accept (14 of 16 overloads)">accept</a>(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload14.html" title="basic_socket_acceptor::accept (14 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other <a class="link" href="accept/overload15.html" title="basic_socket_acceptor::accept (15 of 16 overloads)">accept</a>(
|
||||
const executor_type & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload15.html" title="basic_socket_acceptor::accept (15 of 16 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other <a class="link" href="accept/overload16.html" title="basic_socket_acceptor::accept (16 of 16 overloads)">accept</a>(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="accept/overload16.html" title="basic_socket_acceptor::accept (16 of 16 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../basic_socket_acceptor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="accept/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (1 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::accept (2 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../accept.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::accept (1 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(1 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void accept(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer into the
|
||||
given socket. The function call will block until a new connection has
|
||||
been accepted successfully or an error occurs.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.accept.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.accept.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.accept.overload1.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(my_context);
|
||||
acceptor.accept(socket);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../accept.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,96 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (10 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload9.html" title="basic_socket_acceptor::accept (9 of 16 overloads)">
|
||||
<link rel="next" href="overload11.html" title="basic_socket_acceptor::accept (11 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload9.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload11.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload10"></a><a class="link" href="overload10.html" title="basic_socket_acceptor::accept (10 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(10 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other accept(
|
||||
ExecutionContext & context,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload10.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload10.parameters"></a></span><a class="link" href="overload10.html#asio.reference.basic_socket_acceptor.accept.overload10.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload10.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload10.return_value"></a></span><a class="link" href="overload10.html#asio.reference.basic_socket_acceptor.accept.overload10.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload10.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload10.example"></a></span><a class="link" href="overload10.html#asio.reference.basic_socket_acceptor.accept.overload10.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept(my_context2, ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload9.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload11.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,97 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (11 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload10.html" title="basic_socket_acceptor::accept (10 of 16 overloads)">
|
||||
<link rel="next" href="overload12.html" title="basic_socket_acceptor::accept (12 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload10.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload12.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload11"></a><a class="link" href="overload11.html" title="basic_socket_acceptor::accept (11 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(11 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">Protocol::socket::template rebind_executor< executor_type >::other accept(
|
||||
endpoint_type & peer_endpoint);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload11.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload11.parameters"></a></span><a class="link" href="overload11.html#asio.reference.basic_socket_acceptor.accept.overload11.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload11.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload11.return_value"></a></span><a class="link" href="overload11.html#asio.reference.basic_socket_acceptor.accept.overload11.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload11.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload11.exceptions"></a></span><a class="link" href="overload11.html#asio.reference.basic_socket_acceptor.accept.overload11.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload11.h3"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload11.example"></a></span><a class="link" href="overload11.html#asio.reference.basic_socket_acceptor.accept.overload11.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(acceptor.accept(endpoint));
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload10.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload12.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,94 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (12 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload11.html" title="basic_socket_acceptor::accept (11 of 16 overloads)">
|
||||
<link rel="next" href="overload13.html" title="basic_socket_acceptor::accept (13 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload11.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload13.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload12"></a><a class="link" href="overload12.html" title="basic_socket_acceptor::accept (12 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(12 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">Protocol::socket::template rebind_executor< executor_type >::other accept(
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload12.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload12.parameters"></a></span><a class="link" href="overload12.html#asio.reference.basic_socket_acceptor.accept.overload12.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload12.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload12.return_value"></a></span><a class="link" href="overload12.html#asio.reference.basic_socket_acceptor.accept.overload12.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload12.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload12.example"></a></span><a class="link" href="overload12.html#asio.reference.basic_socket_acceptor.accept.overload12.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(acceptor.accept(endpoint, ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload11.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload13.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,106 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (13 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload12.html" title="basic_socket_acceptor::accept (12 of 16 overloads)">
|
||||
<link rel="next" href="overload14.html" title="basic_socket_acceptor::accept (14 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload12.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload14.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload13"></a><a class="link" href="overload13.html" title="basic_socket_acceptor::accept (13 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(13 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other accept(
|
||||
const Executor1 & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload13.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload13.parameters"></a></span><a class="link" href="overload13.html#asio.reference.basic_socket_acceptor.accept.overload13.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload13.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload13.return_value"></a></span><a class="link" href="overload13.html#asio.reference.basic_socket_acceptor.accept.overload13.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload13.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload13.exceptions"></a></span><a class="link" href="overload13.html#asio.reference.basic_socket_acceptor.accept.overload13.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload13.h3"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload13.example"></a></span><a class="link" href="overload13.html#asio.reference.basic_socket_acceptor.accept.overload13.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(
|
||||
acceptor.accept(my_context2, endpoint));
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload12.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload14.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,107 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (14 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload13.html" title="basic_socket_acceptor::accept (13 of 16 overloads)">
|
||||
<link rel="next" href="overload15.html" title="basic_socket_acceptor::accept (15 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload13.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload15.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload14"></a><a class="link" href="overload14.html" title="basic_socket_acceptor::accept (14 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(14 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other accept(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload14.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload14.parameters"></a></span><a class="link" href="overload14.html#asio.reference.basic_socket_acceptor.accept.overload14.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload14.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload14.return_value"></a></span><a class="link" href="overload14.html#asio.reference.basic_socket_acceptor.accept.overload14.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload14.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload14.exceptions"></a></span><a class="link" href="overload14.html#asio.reference.basic_socket_acceptor.accept.overload14.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload14.h3"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload14.example"></a></span><a class="link" href="overload14.html#asio.reference.basic_socket_acceptor.accept.overload14.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(
|
||||
acceptor.accept(my_context2, endpoint));
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload13.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload15.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,103 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (15 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload14.html" title="basic_socket_acceptor::accept (14 of 16 overloads)">
|
||||
<link rel="next" href="overload16.html" title="basic_socket_acceptor::accept (16 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload14.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload16.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload15"></a><a class="link" href="overload15.html" title="basic_socket_acceptor::accept (15 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(15 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other accept(
|
||||
const executor_type & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload15.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload15.parameters"></a></span><a class="link" href="overload15.html#asio.reference.basic_socket_acceptor.accept.overload15.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload15.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload15.return_value"></a></span><a class="link" href="overload15.html#asio.reference.basic_socket_acceptor.accept.overload15.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload15.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload15.example"></a></span><a class="link" href="overload15.html#asio.reference.basic_socket_acceptor.accept.overload15.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(
|
||||
acceptor.accept(my_context2, endpoint, ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload14.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload16.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,104 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (16 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload15.html" title="basic_socket_acceptor::accept (15 of 16 overloads)">
|
||||
<link rel="next" href="../assign.html" title="basic_socket_acceptor::assign">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload15.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../assign.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload16"></a><a class="link" href="overload16.html" title="basic_socket_acceptor::accept (16 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(16 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other accept(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload16.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload16.parameters"></a></span><a class="link" href="overload16.html#asio.reference.basic_socket_acceptor.accept.overload16.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload16.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload16.return_value"></a></span><a class="link" href="overload16.html#asio.reference.basic_socket_acceptor.accept.overload16.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload16.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload16.example"></a></span><a class="link" href="overload16.html#asio.reference.basic_socket_acceptor.accept.overload16.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::ip::tcp::socket socket(
|
||||
acceptor.accept(my_context2, endpoint, ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload15.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../assign.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,85 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (2 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::accept (1 of 16 overloads)">
|
||||
<link rel="next" href="overload3.html" title="basic_socket_acceptor::accept (3 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::accept (2 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(2 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void accept(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer into the
|
||||
given socket. The function call will block until a new connection has
|
||||
been accepted successfully or an error occurs.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.accept.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.accept.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(my_context);
|
||||
asio::error_code ec;
|
||||
acceptor.accept(socket, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,94 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (3 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload2.html" title="basic_socket_acceptor::accept (2 of 16 overloads)">
|
||||
<link rel="next" href="overload4.html" title="basic_socket_acceptor::accept (4 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload3"></a><a class="link" href="overload3.html" title="basic_socket_acceptor::accept (3 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(3 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection and obtain the endpoint of the peer.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void accept(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer into the
|
||||
given socket, and additionally provide the endpoint of the remote peer.
|
||||
The function call will block until a new connection has been accepted
|
||||
successfully or an error occurs.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload3.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.accept.overload3.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object which will receive the endpoint of the remote
|
||||
peer.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload3.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload3.exceptions"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.accept.overload3.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload3.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload3.example"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.accept.overload3.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(my_context);
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
acceptor.accept(socket, endpoint);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,91 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (4 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload3.html" title="basic_socket_acceptor::accept (3 of 16 overloads)">
|
||||
<link rel="next" href="overload5.html" title="basic_socket_acceptor::accept (5 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload4"></a><a class="link" href="overload4.html" title="basic_socket_acceptor::accept (4 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(4 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection and obtain the endpoint of the peer.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
void accept(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer into the
|
||||
given socket, and additionally provide the endpoint of the remote peer.
|
||||
The function call will block until a new connection has been accepted
|
||||
successfully or an error occurs.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload4.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload4.parameters"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.accept.overload4.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object which will receive the endpoint of the remote
|
||||
peer.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload4.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload4.example"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.accept.overload4.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(my_context);
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
asio::error_code ec;
|
||||
acceptor.accept(socket, endpoint, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (5 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload4.html" title="basic_socket_acceptor::accept (4 of 16 overloads)">
|
||||
<link rel="next" href="overload6.html" title="basic_socket_acceptor::accept (6 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload5"></a><a class="link" href="overload5.html" title="basic_socket_acceptor::accept (5 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(5 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">Protocol::socket::template rebind_executor< executor_type >::other accept();
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload5.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload5.return_value"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.accept.overload5.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload5.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload5.exceptions"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.accept.overload5.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload5.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload5.example"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.accept.overload5.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept());
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,87 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (6 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload5.html" title="basic_socket_acceptor::accept (5 of 16 overloads)">
|
||||
<link rel="next" href="overload7.html" title="basic_socket_acceptor::accept (7 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload6"></a><a class="link" href="overload6.html" title="basic_socket_acceptor::accept (6 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(6 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">Protocol::socket::template rebind_executor< executor_type >::other accept(
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload6.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload6.parameters"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.accept.overload6.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload6.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload6.return_value"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.accept.overload6.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload6.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload6.example"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.accept.overload6.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept(ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,98 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (7 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload6.html" title="basic_socket_acceptor::accept (6 of 16 overloads)">
|
||||
<link rel="next" href="overload8.html" title="basic_socket_acceptor::accept (8 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload7"></a><a class="link" href="overload7.html" title="basic_socket_acceptor::accept (7 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(7 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other accept(
|
||||
const Executor1 & ex,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload7.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload7.parameters"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.accept.overload7.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload7.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload7.return_value"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.accept.overload7.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload7.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload7.exceptions"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.accept.overload7.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload7.h3"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload7.example"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.accept.overload7.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept());
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,99 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (8 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload7.html" title="basic_socket_acceptor::accept (7 of 16 overloads)">
|
||||
<link rel="next" href="overload9.html" title="basic_socket_acceptor::accept (9 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload8"></a><a class="link" href="overload8.html" title="basic_socket_acceptor::accept (8 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(8 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type >::other accept(
|
||||
ExecutionContext & context,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload8.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload8.parameters"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.accept.overload8.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload8.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload8.return_value"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.accept.overload8.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
A socket object representing the newly accepted connection.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload8.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload8.exceptions"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.accept.overload8.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload8.h3"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload8.example"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.accept.overload8.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept());
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,95 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::accept (9 of 16 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../accept.html" title="basic_socket_acceptor::accept">
|
||||
<link rel="prev" href="overload8.html" title="basic_socket_acceptor::accept (8 of 16 overloads)">
|
||||
<link rel="next" href="overload10.html" title="basic_socket_acceptor::accept (10 of 16 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload8.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload9"></a><a class="link" href="overload9.html" title="basic_socket_acceptor::accept (9 of 16 overloads)">basic_socket_acceptor::accept
|
||||
(9 of 16 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Accept a new connection.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
Protocol::socket::template rebind_executor< Executor1 >::other accept(
|
||||
const Executor1 & ex,
|
||||
asio::error_code & ec,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to accept a new connection from a peer. The function
|
||||
call will block until a new connection has been accepted successfully
|
||||
or an error occurs.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload9.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload9.parameters"></a></span><a class="link" href="overload9.html#asio.reference.basic_socket_acceptor.accept.overload9.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload9.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload9.return_value"></a></span><a class="link" href="overload9.html#asio.reference.basic_socket_acceptor.accept.overload9.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
On success, a socket object representing the newly accepted connection.
|
||||
On error, a socket object where <code class="computeroutput">is_open()</code> is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.accept.overload9.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.accept.overload9.example"></a></span><a class="link" href="overload9.html#asio.reference.basic_socket_acceptor.accept.overload9.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(acceptor.accept(my_context2, ec));
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload8.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,53 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::assign</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="accept/overload16.html" title="basic_socket_acceptor::accept (16 of 16 overloads)">
|
||||
<link rel="next" href="assign/overload1.html" title="basic_socket_acceptor::assign (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accept/overload16.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="assign/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.assign"></a><a class="link" href="assign.html" title="basic_socket_acceptor::assign">basic_socket_acceptor::assign</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.assign"></a>
|
||||
Assigns
|
||||
an existing native acceptor to the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="assign/overload1.html" title="basic_socket_acceptor::assign (1 of 2 overloads)">assign</a>(
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor);
|
||||
<span class="emphasis"><em>» <a class="link" href="assign/overload1.html" title="basic_socket_acceptor::assign (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="assign/overload2.html" title="basic_socket_acceptor::assign (2 of 2 overloads)">assign</a>(
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="assign/overload2.html" title="basic_socket_acceptor::assign (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="accept/overload16.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="assign/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,45 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::assign (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../assign.html" title="basic_socket_acceptor::assign">
|
||||
<link rel="prev" href="../assign.html" title="basic_socket_acceptor::assign">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::assign (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../assign.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../assign.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.assign.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::assign (1 of 2 overloads)">basic_socket_acceptor::assign
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Assigns an existing native acceptor to the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void assign(
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../assign.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../assign.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::assign (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../assign.html" title="basic_socket_acceptor::assign">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::assign (1 of 2 overloads)">
|
||||
<link rel="next" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../assign.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../async_accept.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.assign.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::assign (2 of 2 overloads)">basic_socket_acceptor::assign
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Assigns an existing native acceptor to the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void assign(
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../assign.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../async_accept.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,112 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="assign/overload2.html" title="basic_socket_acceptor::assign (2 of 2 overloads)">
|
||||
<link rel="next" href="async_accept/overload1.html" title="basic_socket_acceptor::async_accept (1 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="assign/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="async_accept/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept"></a><a class="link" href="async_accept.html" title="basic_socket_acceptor::async_accept">basic_socket_acceptor::async_accept</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.async_accept"></a>
|
||||
Start
|
||||
an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../AcceptHandler.html" title="Accept handler requirements">AcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload1.html" title="basic_socket_acceptor::async_accept (1 of 8 overloads)">async_accept</a>(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
AcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload1.html" title="basic_socket_acceptor::async_accept (1 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../AcceptHandler.html" title="Accept handler requirements">AcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload2.html" title="basic_socket_acceptor::async_accept (2 of 8 overloads)">async_accept</a>(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint,
|
||||
AcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload2.html" title="basic_socket_acceptor::async_accept (2 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload3.html" title="basic_socket_acceptor::async_accept (3 of 8 overloads)">async_accept</a>(
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload3.html" title="basic_socket_acceptor::async_accept (3 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload4.html" title="basic_socket_acceptor::async_accept (4 of 8 overloads)">async_accept</a>(
|
||||
const Executor1 & ex,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload4.html" title="basic_socket_acceptor::async_accept (4 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext,
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload5.html" title="basic_socket_acceptor::async_accept (5 of 8 overloads)">async_accept</a>(
|
||||
ExecutionContext & context,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload5.html" title="basic_socket_acceptor::async_accept (5 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload6.html" title="basic_socket_acceptor::async_accept (6 of 8 overloads)">async_accept</a>(
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload6.html" title="basic_socket_acceptor::async_accept (6 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload7.html" title="basic_socket_acceptor::async_accept (7 of 8 overloads)">async_accept</a>(
|
||||
const Executor1 & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload7.html" title="basic_socket_acceptor::async_accept (7 of 8 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext,
|
||||
typename <a class="link" href="../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> <a class="link" href="async_accept/overload8.html" title="basic_socket_acceptor::async_accept (8 of 8 overloads)">async_accept</a>(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="async_accept/overload8.html" title="basic_socket_acceptor::async_accept (8 of 8 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="assign/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="async_accept/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,106 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (1 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::async_accept (2 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../async_accept.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::async_accept (1 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(1 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../../AcceptHandler.html" title="Accept handler requirements">AcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
basic_socket< Protocol1, Executor1 > & peer,
|
||||
AcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< Protocol, Protocol1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to asynchronously accept a new connection into
|
||||
a socket. The function call always returns immediately.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.async_accept.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted. Ownership
|
||||
of the peer object is retained by the caller, which must guarantee
|
||||
that it is valid until the handler is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error // Result of operation.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.async_accept.overload1.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::socket socket(my_context);
|
||||
acceptor.async_accept(socket, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../async_accept.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,94 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (2 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::async_accept (1 of 8 overloads)">
|
||||
<link rel="next" href="overload3.html" title="basic_socket_acceptor::async_accept (3 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::async_accept (2 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(2 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../../AcceptHandler.html" title="Accept handler requirements">AcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
basic_socket< protocol_type, Executor1 > & peer,
|
||||
endpoint_type & peer_endpoint,
|
||||
AcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#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 into
|
||||
a socket, and additionally obtain the endpoint of the remote peer. The
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.async_accept.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer</span></dt>
|
||||
<dd><p>
|
||||
The socket into which the new connection will be accepted. Ownership
|
||||
of the peer object is retained by the caller, which must guarantee
|
||||
that it is valid until the handler is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written. Ownership of the peer_endpoint object is retained by
|
||||
the caller, which must guarantee that it is valid until the handler
|
||||
is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error // Result of operation.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,104 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (3 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload2.html" title="basic_socket_acceptor::async_accept (2 of 8 overloads)">
|
||||
<link rel="next" href="overload4.html" title="basic_socket_acceptor::async_accept (4 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload3"></a><a class="link" href="overload3.html" title="basic_socket_acceptor::async_accept (3 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(3 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#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
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload3.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.async_accept.overload3.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
// Result of operation.
|
||||
const asio::error_code& error,
|
||||
// On success, the newly accepted socket.
|
||||
typename Protocol::socket::template
|
||||
rebind_executor<executor_type>::other peer
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload3.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload3.example"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.async_accept.overload3.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
acceptor.async_accept(accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,109 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (4 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload3.html" title="basic_socket_acceptor::async_accept (3 of 8 overloads)">
|
||||
<link rel="next" href="overload5.html" title="basic_socket_acceptor::async_accept (5 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload4"></a><a class="link" href="overload4.html" title="basic_socket_acceptor::async_accept (4 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(4 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
const Executor1 & ex,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to asynchronously accept a new connection. The
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload4.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload4.parameters"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.async_accept.overload4.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error, // Result of operation.
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
Executor1>::other peer // On success, the newly accepted socket.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload4.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload4.example"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.async_accept.overload4.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
acceptor.async_accept(my_context2, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,111 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (5 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload4.html" title="basic_socket_acceptor::async_accept (4 of 8 overloads)">
|
||||
<link rel="next" href="overload6.html" title="basic_socket_acceptor::async_accept (6 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload5"></a><a class="link" href="overload5.html" title="basic_socket_acceptor::async_accept (5 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(5 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext,
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
ExecutionContext & context,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to asynchronously accept a new connection. The
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload5.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload5.parameters"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.async_accept.overload5.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error, // Result of operation.
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
typename ExecutionContext::executor_type>::other peer
|
||||
// On success, the newly accepted socket.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload5.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload5.example"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.async_accept.overload5.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
acceptor.async_accept(my_context2, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,113 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (6 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload5.html" title="basic_socket_acceptor::async_accept (5 of 8 overloads)">
|
||||
<link rel="next" href="overload7.html" title="basic_socket_acceptor::async_accept (7 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload6"></a><a class="link" href="overload6.html" title="basic_socket_acceptor::async_accept (6 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(6 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#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
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload6.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload6.parameters"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.async_accept.overload6.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written. Ownership of the peer_endpoint object is retained by
|
||||
the caller, which must guarantee that it is valid until the handler
|
||||
is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
// Result of operation.
|
||||
const asio::error_code& error,
|
||||
// On success, the newly accepted socket.
|
||||
typename Protocol::socket::template
|
||||
rebind_executor<executor_type>::other peer
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload6.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload6.example"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.async_accept.overload6.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
acceptor.async_accept(endpoint, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,118 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (7 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload6.html" title="basic_socket_acceptor::async_accept (6 of 8 overloads)">
|
||||
<link rel="next" href="overload8.html" title="basic_socket_acceptor::async_accept (8 of 8 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload7"></a><a class="link" href="overload7.html" title="basic_socket_acceptor::async_accept (7 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(7 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>,
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
const Executor1 & ex,
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_executor< Executor1 >::value||execution::is_executor< Executor1 >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to asynchronously accept a new connection. The
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload7.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload7.parameters"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.async_accept.overload7.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor object to be used for the newly accepted socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written. Ownership of the peer_endpoint object is retained by
|
||||
the caller, which must guarantee that it is valid until the handler
|
||||
is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error, // Result of operation.
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
Executor1>::other peer // On success, the newly accepted socket.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload7.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload7.example"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.async_accept.overload7.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
acceptor.async_accept(my_context2, endpoint, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,120 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_accept (8 of 8 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../async_accept.html" title="basic_socket_acceptor::async_accept">
|
||||
<link rel="prev" href="overload7.html" title="basic_socket_acceptor::async_accept (7 of 8 overloads)">
|
||||
<link rel="next" href="../async_wait.html" title="basic_socket_acceptor::async_wait">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../async_wait.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload8"></a><a class="link" href="overload8.html" title="basic_socket_acceptor::async_accept (8 of 8 overloads)">basic_socket_acceptor::async_accept
|
||||
(8 of 8 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Start an asynchronous accept.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext,
|
||||
typename <a class="link" href="../../MoveAcceptHandler.html" title="Move accept handler requirements">MoveAcceptHandler</a> = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_accept(
|
||||
ExecutionContext & context,
|
||||
endpoint_type & peer_endpoint,
|
||||
MoveAcceptHandler && handler = <a class="link" href="../../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to asynchronously accept a new connection. The
|
||||
function call always returns immediately.
|
||||
</p>
|
||||
<p>
|
||||
This overload requires that the Protocol template parameter satisfy the
|
||||
AcceptableProtocol type requirements.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload8.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload8.parameters"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.async_accept.overload8.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
The I/O execution context object to be used for the newly accepted
|
||||
socket.
|
||||
</p></dd>
|
||||
<dt><span class="term">peer_endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint object into which the endpoint of the remote peer will
|
||||
be written. Ownership of the peer_endpoint object is retained by
|
||||
the caller, which must guarantee that it is valid until the handler
|
||||
is called.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the accept operation completes. Copies
|
||||
will be made of the handler as required. The function signature
|
||||
of the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error, // Result of operation.
|
||||
typename Protocol::socket::template rebind_executor<
|
||||
typename ExecutionContext::executor_type>::other peer
|
||||
// On success, the newly accepted socket.
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_accept.overload8.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_accept.overload8.example"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.async_accept.overload8.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void accept_handler(const asio::error_code& error,
|
||||
asio::ip::tcp::socket peer)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Accept succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint;
|
||||
acceptor.async_accept(my_context2, endpoint, accept_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../async_accept.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../async_wait.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,104 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::async_wait</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="async_accept/overload8.html" title="basic_socket_acceptor::async_accept (8 of 8 overloads)">
|
||||
<link rel="next" href="basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="async_accept/overload8.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_socket_acceptor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.async_wait"></a><a class="link" href="async_wait.html" title="basic_socket_acceptor::async_wait">basic_socket_acceptor::async_wait</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.async_wait"></a>
|
||||
Asynchronously
|
||||
wait for the acceptor to become ready to read, ready to write, or to have
|
||||
pending error conditions.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../WaitHandler.html" title="Wait handler requirements">WaitHandler</a> = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>>
|
||||
<a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.automatic_deduction_of_initiating_function_return_type"><span class="emphasis"><em>DEDUCED</em></span></a> async_wait(
|
||||
wait_type w,
|
||||
WaitHandler && handler = <a class="link" href="../asynchronous_operations.html#asio.reference.asynchronous_operations.default_completion_tokens"><span class="emphasis"><em>DEFAULT</em></span></a>);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to perform an asynchronous wait for an acceptor to
|
||||
enter a ready to read, write or error condition state.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_wait.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_wait.parameters"></a></span><a class="link" href="async_wait.html#asio.reference.basic_socket_acceptor.async_wait.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">w</span></dt>
|
||||
<dd><p>
|
||||
Specifies the desired acceptor state.
|
||||
</p></dd>
|
||||
<dt><span class="term">handler</span></dt>
|
||||
<dd>
|
||||
<p>
|
||||
The handler to be called when the wait operation completes. Copies
|
||||
will be made of the handler as required. The function signature of
|
||||
the handler must be:
|
||||
</p>
|
||||
<pre class="programlisting">void handler(
|
||||
const asio::error_code& error // Result of operation
|
||||
);
|
||||
</pre>
|
||||
<p>
|
||||
Regardless of whether the asynchronous operation completes immediately
|
||||
or not, the handler will not be invoked from within this function.
|
||||
On immediate completion, invocation of the handler will be performed
|
||||
in a manner equivalent to using <a class="link" href="../post.html" title="post"><code class="computeroutput">post</code></a>.
|
||||
</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.async_wait.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.async_wait.example"></a></span><a class="link" href="async_wait.html#asio.reference.basic_socket_acceptor.async_wait.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">void wait_handler(const asio::error_code& error)
|
||||
{
|
||||
if (!error)
|
||||
{
|
||||
// Wait succeeded.
|
||||
}
|
||||
}
|
||||
|
||||
...
|
||||
|
||||
asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
acceptor.async_wait(
|
||||
asio::ip::tcp::acceptor::wait_read,
|
||||
wait_handler);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="async_accept/overload8.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_socket_acceptor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,126 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="async_wait.html" title="basic_socket_acceptor::async_wait">
|
||||
<link rel="next" href="basic_socket_acceptor/overload1.html" title="basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="async_wait.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_socket_acceptor/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor"></a><a class="link" href="basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">basic_socket_acceptor::basic_socket_acceptor</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.basic_socket_acceptor"></a>
|
||||
Construct
|
||||
an acceptor without opening it.
|
||||
</p>
|
||||
<pre class="programlisting">explicit <a class="link" href="basic_socket_acceptor/overload1.html" title="basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
const executor_type & ex);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload1.html" title="basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
explicit <a class="link" href="basic_socket_acceptor/overload2.html" title="basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
ExecutionContext & context,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload2.html" title="basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Construct an open acceptor.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="basic_socket_acceptor/overload3.html" title="basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
const executor_type & ex,
|
||||
const protocol_type & protocol);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload3.html" title="basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
<a class="link" href="basic_socket_acceptor/overload4.html" title="basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
ExecutionContext & context,
|
||||
const protocol_type & protocol,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload4.html" title="basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Construct an acceptor opened on the given endpoint.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="basic_socket_acceptor/overload5.html" title="basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
const executor_type & ex,
|
||||
const endpoint_type & endpoint,
|
||||
bool reuse_addr = true);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload5.html" title="basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
<a class="link" href="basic_socket_acceptor/overload6.html" title="basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
ExecutionContext & context,
|
||||
const endpoint_type & endpoint,
|
||||
bool reuse_addr = true,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload6.html" title="basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Construct a <a class="link" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
on an existing native acceptor.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="basic_socket_acceptor/overload7.html" title="basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
const executor_type & ex,
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload7.html" title="basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename ExecutionContext>
|
||||
<a class="link" href="basic_socket_acceptor/overload8.html" title="basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
ExecutionContext & context,
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload8.html" title="basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Move-construct a <a class="link" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from another.
|
||||
</p>
|
||||
<pre class="programlisting"><a class="link" href="basic_socket_acceptor/overload9.html" title="basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
basic_socket_acceptor && other);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload9.html" title="basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Move-construct a <a class="link" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from an acceptor of another protocol type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
<a class="link" href="basic_socket_acceptor/overload10.html" title="basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)">basic_socket_acceptor</a>(
|
||||
basic_socket_acceptor< Protocol1, Executor1 > && other,
|
||||
typename enable_if< is_convertible< Protocol1, Protocol >::value &&is_convertible< Executor1, Executor >::value >::type * = 0);
|
||||
<span class="emphasis"><em>» <a class="link" href="basic_socket_acceptor/overload10.html" title="basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="async_wait.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="basic_socket_acceptor/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../basic_socket_acceptor.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(1 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an acceptor without opening it.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor(
|
||||
const executor_type & ex);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor without opening it to listen for
|
||||
new connections. The <code class="computeroutput">open()</code> function must be called before
|
||||
the acceptor can accept new socket connections.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor that the acceptor will use, by default, to dispatch
|
||||
handlers for any asynchronous operations performed on the acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../basic_socket_acceptor.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload9.html" title="basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)">
|
||||
<link rel="next" href="../bind.html" title="basic_socket_acceptor::bind">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload9.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../bind.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10"></a><a class="link" href="overload10.html" title="basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(10 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Move-construct a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from an acceptor of another protocol type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
basic_socket_acceptor(
|
||||
basic_socket_acceptor< Protocol1, Executor1 > && other,
|
||||
typename enable_if< is_convertible< Protocol1, Protocol >::value &&is_convertible< Executor1, Executor >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor moves an acceptor from one object to another.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.parameters"></a></span><a class="link" href="overload10.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">other</span></dt>
|
||||
<dd><p>
|
||||
The other <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
object from which the move will occur.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.remarks"></a></span><a class="link" href="overload10.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload10.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
Following the move, the moved-from object is in the same state as if
|
||||
constructed using the <code class="computeroutput">basic_socket_acceptor(const executor_type&)</code>
|
||||
constructor.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload9.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../bind.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::basic_socket_acceptor (1 of 10 overloads)">
|
||||
<link rel="next" href="overload3.html" title="basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(2 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an acceptor without opening it.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
basic_socket_acceptor(
|
||||
ExecutionContext & context,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor without opening it to listen for
|
||||
new connections. The <code class="computeroutput">open()</code> function must be called before
|
||||
the acceptor can accept new socket connections.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
An execution context which provides the I/O executor that the acceptor
|
||||
will use, by default, to dispatch handlers for any asynchronous
|
||||
operations performed on the acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+79
@@ -0,0 +1,79 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload2.html" title="basic_socket_acceptor::basic_socket_acceptor (2 of 10 overloads)">
|
||||
<link rel="next" href="overload4.html" title="basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3"></a><a class="link" href="overload3.html" title="basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(3 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an open acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor(
|
||||
const executor_type & ex,
|
||||
const protocol_type & protocol);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor and automatically opens it.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor that the acceptor will use, by default, to dispatch
|
||||
handlers for any asynchronous operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying protocol parameters to be used.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.exceptions"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload3.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload4.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload3.html" title="basic_socket_acceptor::basic_socket_acceptor (3 of 10 overloads)">
|
||||
<link rel="next" href="overload5.html" title="basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4"></a><a class="link" href="overload4.html" title="basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(4 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an open acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
basic_socket_acceptor(
|
||||
ExecutionContext & context,
|
||||
const protocol_type & protocol,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor and automatically opens it.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.parameters"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
An execution context which provides the I/O executor that the acceptor
|
||||
will use, by default, to dispatch handlers for any asynchronous
|
||||
operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying protocol parameters to be used.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.exceptions"></a></span><a class="link" href="overload4.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload4.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload3.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload5.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+100
@@ -0,0 +1,100 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload4.html" title="basic_socket_acceptor::basic_socket_acceptor (4 of 10 overloads)">
|
||||
<link rel="next" href="overload6.html" title="basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5"></a><a class="link" href="overload5.html" title="basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(5 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an acceptor opened on the given endpoint.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor(
|
||||
const executor_type & ex,
|
||||
const endpoint_type & endpoint,
|
||||
bool reuse_addr = true);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor and automatically opens it to listen
|
||||
for new connections on the specified endpoint.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.parameters"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor that the acceptor will use, by default, to dispatch
|
||||
handlers for any asynchronous operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint on the local machine on which the acceptor will listen
|
||||
for new connections.
|
||||
</p></dd>
|
||||
<dt><span class="term">reuse_addr</span></dt>
|
||||
<dd><p>
|
||||
Whether the constructor should set the socket option <code class="computeroutput">socket_base::reuse_address</code>.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.exceptions"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.remarks"></a></span><a class="link" href="overload5.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload5.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
This constructor is equivalent to the following code:
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor<Protocol> acceptor(my_context);
|
||||
acceptor.open(endpoint.protocol());
|
||||
if (reuse_addr)
|
||||
acceptor.set_option(socket_base::reuse_address(true));
|
||||
acceptor.bind(endpoint);
|
||||
acceptor.listen();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload4.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload6.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload5.html" title="basic_socket_acceptor::basic_socket_acceptor (5 of 10 overloads)">
|
||||
<link rel="next" href="overload7.html" title="basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6"></a><a class="link" href="overload6.html" title="basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(6 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct an acceptor opened on the given endpoint.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
basic_socket_acceptor(
|
||||
ExecutionContext & context,
|
||||
const endpoint_type & endpoint,
|
||||
bool reuse_addr = true,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor and automatically opens it to listen
|
||||
for new connections on the specified endpoint.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.parameters"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
An execution context which provides the I/O executor that the acceptor
|
||||
will use, by default, to dispatch handlers for any asynchronous
|
||||
operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint on the local machine on which the acceptor will listen
|
||||
for new connections.
|
||||
</p></dd>
|
||||
<dt><span class="term">reuse_addr</span></dt>
|
||||
<dd><p>
|
||||
Whether the constructor should set the socket option <code class="computeroutput">socket_base::reuse_address</code>.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.exceptions"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.remarks"></a></span><a class="link" href="overload6.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload6.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
This constructor is equivalent to the following code:
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor<Protocol> acceptor(my_context);
|
||||
acceptor.open(endpoint.protocol());
|
||||
if (reuse_addr)
|
||||
acceptor.set_option(socket_base::reuse_address(true));
|
||||
acceptor.bind(endpoint);
|
||||
acceptor.listen();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload5.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload7.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload6.html" title="basic_socket_acceptor::basic_socket_acceptor (6 of 10 overloads)">
|
||||
<link rel="next" href="overload8.html" title="basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7"></a><a class="link" href="overload7.html" title="basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(7 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
on an existing native acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor(
|
||||
const executor_type & ex,
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor object to hold an existing native
|
||||
acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.parameters"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ex</span></dt>
|
||||
<dd><p>
|
||||
The I/O executor that the acceptor will use, by default, to dispatch
|
||||
handlers for any asynchronous operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying protocol parameters to be used.
|
||||
</p></dd>
|
||||
<dt><span class="term">native_acceptor</span></dt>
|
||||
<dd><p>
|
||||
A native acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.exceptions"></a></span><a class="link" href="overload7.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload7.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload6.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload8.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+90
@@ -0,0 +1,90 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload7.html" title="basic_socket_acceptor::basic_socket_acceptor (7 of 10 overloads)">
|
||||
<link rel="next" href="overload9.html" title="basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8"></a><a class="link" href="overload8.html" title="basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(8 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Construct a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
on an existing native acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename ExecutionContext>
|
||||
basic_socket_acceptor(
|
||||
ExecutionContext & context,
|
||||
const protocol_type & protocol,
|
||||
const native_handle_type & native_acceptor,
|
||||
typename enable_if< is_convertible< ExecutionContext &, execution_context & >::value >::type * = 0);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor creates an acceptor object to hold an existing native
|
||||
acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.parameters"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">context</span></dt>
|
||||
<dd><p>
|
||||
An execution context which provides the I/O executor that the acceptor
|
||||
will use, by default, to dispatch handlers for any asynchronous
|
||||
operations performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying protocol parameters to be used.
|
||||
</p></dd>
|
||||
<dt><span class="term">native_acceptor</span></dt>
|
||||
<dd><p>
|
||||
A native acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.exceptions"></a></span><a class="link" href="overload8.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload8.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload7.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload9.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor::basic_socket_acceptor">
|
||||
<link rel="prev" href="overload8.html" title="basic_socket_acceptor::basic_socket_acceptor (8 of 10 overloads)">
|
||||
<link rel="next" href="overload10.html" title="basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload8.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9"></a><a class="link" href="overload9.html" title="basic_socket_acceptor::basic_socket_acceptor (9 of 10 overloads)">basic_socket_acceptor::basic_socket_acceptor
|
||||
(9 of 10 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Move-construct a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from another.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor(
|
||||
basic_socket_acceptor && other);
|
||||
</pre>
|
||||
<p>
|
||||
This constructor moves an acceptor from one object to another.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.parameters"></a></span><a class="link" href="overload9.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">other</span></dt>
|
||||
<dd><p>
|
||||
The other <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
object from which the move will occur.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.remarks"></a></span><a class="link" href="overload9.html#asio.reference.basic_socket_acceptor.basic_socket_acceptor.overload9.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
Following the move, the moved-from object is in the same state as if
|
||||
constructed using the <code class="computeroutput">basic_socket_acceptor(const executor_type&)</code>
|
||||
constructor.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload8.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload10.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,51 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::bind</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="basic_socket_acceptor/overload10.html" title="basic_socket_acceptor::basic_socket_acceptor (10 of 10 overloads)">
|
||||
<link rel="next" href="bind/overload1.html" title="basic_socket_acceptor::bind (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="basic_socket_acceptor/overload10.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="bind/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.bind"></a><a class="link" href="bind.html" title="basic_socket_acceptor::bind">basic_socket_acceptor::bind</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.bind"></a>
|
||||
Bind
|
||||
the acceptor to the given local endpoint.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="bind/overload1.html" title="basic_socket_acceptor::bind (1 of 2 overloads)">bind</a>(
|
||||
const endpoint_type & endpoint);
|
||||
<span class="emphasis"><em>» <a class="link" href="bind/overload1.html" title="basic_socket_acceptor::bind (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="bind/overload2.html" title="basic_socket_acceptor::bind (2 of 2 overloads)">bind</a>(
|
||||
const endpoint_type & endpoint,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="bind/overload2.html" title="basic_socket_acceptor::bind (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="basic_socket_acceptor/overload10.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="bind/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::bind (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../bind.html" title="basic_socket_acceptor::bind">
|
||||
<link rel="prev" href="../bind.html" title="basic_socket_acceptor::bind">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::bind (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../bind.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../bind.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::bind (1 of 2 overloads)">basic_socket_acceptor::bind
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Bind the acceptor to the given local endpoint.
|
||||
</p>
|
||||
<pre class="programlisting">void bind(
|
||||
const endpoint_type & endpoint);
|
||||
</pre>
|
||||
<p>
|
||||
This function binds the socket acceptor to the specified endpoint on
|
||||
the local machine.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bind.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.bind.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint on the local machine to which the socket acceptor will
|
||||
be bound.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bind.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.bind.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bind.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.bind.overload1.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
asio::ip::tcp::endpoint endpoint(asio::ip::tcp::v4(), 12345);
|
||||
acceptor.open(endpoint.protocol());
|
||||
acceptor.bind(endpoint);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../bind.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../bind.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::bind (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../bind.html" title="basic_socket_acceptor::bind">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::bind (1 of 2 overloads)">
|
||||
<link rel="next" href="../broadcast.html" title="basic_socket_acceptor::broadcast">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../bind.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../broadcast.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::bind (2 of 2 overloads)">basic_socket_acceptor::bind
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Bind the acceptor to the given local endpoint.
|
||||
</p>
|
||||
<pre class="programlisting">void bind(
|
||||
const endpoint_type & endpoint,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function binds the socket acceptor to the specified endpoint on
|
||||
the local machine.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bind.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.bind.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">endpoint</span></dt>
|
||||
<dd><p>
|
||||
An endpoint on the local machine to which the socket acceptor will
|
||||
be bound.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bind.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bind.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.bind.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
asio::ip::tcp::endpoint endpoint(asio::ip::tcp::v4(), 12345);
|
||||
acceptor.open(endpoint.protocol());
|
||||
asio::error_code ec;
|
||||
acceptor.bind(endpoint, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../bind.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../broadcast.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::broadcast</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="bind/overload2.html" title="basic_socket_acceptor::bind (2 of 2 overloads)">
|
||||
<link rel="next" href="bytes_readable.html" title="basic_socket_acceptor::bytes_readable">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="bind/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="bytes_readable.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.broadcast"></a><a class="link" href="broadcast.html" title="basic_socket_acceptor::broadcast">basic_socket_acceptor::broadcast</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.broadcast"></a>
|
||||
Socket
|
||||
option to permit sending of broadcast messages.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined broadcast;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_BROADCAST socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.broadcast.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.broadcast.examples"></a></span><a class="link" href="broadcast.html#asio.reference.basic_socket_acceptor.broadcast.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::udp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::broadcast option(true);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::udp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::broadcast option;
|
||||
socket.get_option(option);
|
||||
bool is_set = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.broadcast.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.broadcast.requirements"></a></span><a class="link" href="broadcast.html#asio.reference.basic_socket_acceptor.broadcast.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="bind/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="bytes_readable.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,70 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::bytes_readable</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="broadcast.html" title="basic_socket_acceptor::broadcast">
|
||||
<link rel="next" href="cancel.html" title="basic_socket_acceptor::cancel">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="broadcast.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="cancel.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.bytes_readable"></a><a class="link" href="bytes_readable.html" title="basic_socket_acceptor::bytes_readable">basic_socket_acceptor::bytes_readable</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.bytes_readable"></a>
|
||||
IO
|
||||
control command to get the amount of data that can be read without blocking.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined bytes_readable;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the FIONREAD IO control command.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bytes_readable.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bytes_readable.example"></a></span><a class="link" href="bytes_readable.html#asio.reference.basic_socket_acceptor.bytes_readable.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::bytes_readable command(true);
|
||||
socket.io_control(command);
|
||||
std::size_t bytes_readable = command.get();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.bytes_readable.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.bytes_readable.requirements"></a></span><a class="link" href="bytes_readable.html#asio.reference.basic_socket_acceptor.bytes_readable.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="broadcast.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="cancel.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::cancel</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="bytes_readable.html" title="basic_socket_acceptor::bytes_readable">
|
||||
<link rel="next" href="cancel/overload1.html" title="basic_socket_acceptor::cancel (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="cancel/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.cancel"></a><a class="link" href="cancel.html" title="basic_socket_acceptor::cancel">basic_socket_acceptor::cancel</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.cancel"></a>
|
||||
Cancel
|
||||
all asynchronous operations associated with the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="cancel/overload1.html" title="basic_socket_acceptor::cancel (1 of 2 overloads)">cancel</a>();
|
||||
<span class="emphasis"><em>» <a class="link" href="cancel/overload1.html" title="basic_socket_acceptor::cancel (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="cancel/overload2.html" title="basic_socket_acceptor::cancel (2 of 2 overloads)">cancel</a>(
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="cancel/overload2.html" title="basic_socket_acceptor::cancel (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="cancel/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,61 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::cancel (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../cancel.html" title="basic_socket_acceptor::cancel">
|
||||
<link rel="prev" href="../cancel.html" title="basic_socket_acceptor::cancel">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::cancel (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../cancel.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../cancel.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.cancel.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::cancel (1 of 2 overloads)">basic_socket_acceptor::cancel
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Cancel all asynchronous operations associated with the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void cancel();
|
||||
</pre>
|
||||
<p>
|
||||
This function causes all outstanding asynchronous connect, send and receive
|
||||
operations to finish immediately, and the handlers for cancelled operations
|
||||
will be passed the <code class="computeroutput">asio::error::operation_aborted</code> error.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.cancel.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.cancel.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.cancel.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../cancel.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../cancel.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::cancel (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../cancel.html" title="basic_socket_acceptor::cancel">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::cancel (1 of 2 overloads)">
|
||||
<link rel="next" href="../close.html" title="basic_socket_acceptor::close">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../cancel.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../close.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.cancel.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::cancel (2 of 2 overloads)">basic_socket_acceptor::cancel
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Cancel all asynchronous operations associated with the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void cancel(
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function causes all outstanding asynchronous connect, send and receive
|
||||
operations to finish immediately, and the handlers for cancelled operations
|
||||
will be passed the <code class="computeroutput">asio::error::operation_aborted</code> error.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.cancel.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.cancel.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.cancel.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../cancel.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../close.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::close</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="cancel/overload2.html" title="basic_socket_acceptor::cancel (2 of 2 overloads)">
|
||||
<link rel="next" href="close/overload1.html" title="basic_socket_acceptor::close (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="cancel/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="close/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.close"></a><a class="link" href="close.html" title="basic_socket_acceptor::close">basic_socket_acceptor::close</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.close"></a>
|
||||
Close
|
||||
the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="close/overload1.html" title="basic_socket_acceptor::close (1 of 2 overloads)">close</a>();
|
||||
<span class="emphasis"><em>» <a class="link" href="close/overload1.html" title="basic_socket_acceptor::close (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="close/overload2.html" title="basic_socket_acceptor::close (2 of 2 overloads)">close</a>(
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="close/overload2.html" title="basic_socket_acceptor::close (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="cancel/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="close/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,64 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::close (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../close.html" title="basic_socket_acceptor::close">
|
||||
<link rel="prev" href="../close.html" title="basic_socket_acceptor::close">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::close (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../close.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../close.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.close.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::close (1 of 2 overloads)">basic_socket_acceptor::close
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Close the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void close();
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to close the acceptor. Any asynchronous accept
|
||||
operations will be cancelled immediately.
|
||||
</p>
|
||||
<p>
|
||||
A subsequent call to <code class="computeroutput">open()</code> is required before the acceptor
|
||||
can again be used to again perform socket accept operations.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.close.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.close.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.close.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../close.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../close.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,78 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::close (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../close.html" title="basic_socket_acceptor::close">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::close (1 of 2 overloads)">
|
||||
<link rel="next" href="../debug.html" title="basic_socket_acceptor::debug">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../close.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../debug.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.close.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::close (2 of 2 overloads)">basic_socket_acceptor::close
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Close the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void close(
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to close the acceptor. Any asynchronous accept
|
||||
operations will be cancelled immediately.
|
||||
</p>
|
||||
<p>
|
||||
A subsequent call to <code class="computeroutput">open()</code> is required before the acceptor
|
||||
can again be used to again perform socket accept operations.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.close.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.close.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.close.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.close.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.close.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.close.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::error_code ec;
|
||||
acceptor.close(ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../close.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../debug.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::debug</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="close/overload2.html" title="basic_socket_acceptor::close (2 of 2 overloads)">
|
||||
<link rel="next" href="do_not_route.html" title="basic_socket_acceptor::do_not_route">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="close/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="do_not_route.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.debug"></a><a class="link" href="debug.html" title="basic_socket_acceptor::debug">basic_socket_acceptor::debug</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.debug"></a>
|
||||
Socket
|
||||
option to enable socket-level debugging.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined debug;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_DEBUG socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.debug.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.debug.examples"></a></span><a class="link" href="debug.html#asio.reference.basic_socket_acceptor.debug.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::debug option(true);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::debug option;
|
||||
socket.get_option(option);
|
||||
bool is_set = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.debug.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.debug.requirements"></a></span><a class="link" href="debug.html#asio.reference.basic_socket_acceptor.debug.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="close/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="do_not_route.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::do_not_route</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="debug.html" title="basic_socket_acceptor::debug">
|
||||
<link rel="next" href="enable_connection_aborted.html" title="basic_socket_acceptor::enable_connection_aborted">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="debug.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="enable_connection_aborted.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.do_not_route"></a><a class="link" href="do_not_route.html" title="basic_socket_acceptor::do_not_route">basic_socket_acceptor::do_not_route</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.do_not_route"></a>
|
||||
Socket
|
||||
option to prevent routing, use local interfaces only.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined do_not_route;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_DONTROUTE socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.do_not_route.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.do_not_route.examples"></a></span><a class="link" href="do_not_route.html#asio.reference.basic_socket_acceptor.do_not_route.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::udp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::do_not_route option(true);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::udp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::do_not_route option;
|
||||
socket.get_option(option);
|
||||
bool is_set = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.do_not_route.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.do_not_route.requirements"></a></span><a class="link" href="do_not_route.html#asio.reference.basic_socket_acceptor.do_not_route.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="debug.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="enable_connection_aborted.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::enable_connection_aborted</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="do_not_route.html" title="basic_socket_acceptor::do_not_route">
|
||||
<link rel="next" href="endpoint_type.html" title="basic_socket_acceptor::endpoint_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="do_not_route.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="endpoint_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.enable_connection_aborted"></a><a class="link" href="enable_connection_aborted.html" title="basic_socket_acceptor::enable_connection_aborted">basic_socket_acceptor::enable_connection_aborted</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.enable_connection_aborted"></a>
|
||||
Socket
|
||||
option to report aborted connections on accept.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined enable_connection_aborted;
|
||||
</pre>
|
||||
<p>
|
||||
Implements a custom socket option that determines whether or not an accept
|
||||
operation is permitted to fail with <code class="computeroutput">asio::error::connection_aborted</code>.
|
||||
By default the option is false.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.enable_connection_aborted.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.enable_connection_aborted.examples"></a></span><a class="link" href="enable_connection_aborted.html#asio.reference.basic_socket_acceptor.enable_connection_aborted.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::socket_base::enable_connection_aborted option(true);
|
||||
acceptor.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::socket_base::enable_connection_aborted option;
|
||||
acceptor.get_option(option);
|
||||
bool is_set = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.enable_connection_aborted.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.enable_connection_aborted.requirements"></a></span><a class="link" href="enable_connection_aborted.html#asio.reference.basic_socket_acceptor.enable_connection_aborted.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="do_not_route.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="endpoint_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::endpoint_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="enable_connection_aborted.html" title="basic_socket_acceptor::enable_connection_aborted">
|
||||
<link rel="next" href="executor_type.html" title="basic_socket_acceptor::executor_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="enable_connection_aborted.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.endpoint_type"></a><a class="link" href="endpoint_type.html" title="basic_socket_acceptor::endpoint_type">basic_socket_acceptor::endpoint_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.endpoint_type"></a>
|
||||
The
|
||||
endpoint type.
|
||||
</p>
|
||||
<pre class="programlisting">typedef Protocol::endpoint endpoint_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.endpoint_type.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.endpoint_type.requirements"></a></span><a class="link" href="endpoint_type.html#asio.reference.basic_socket_acceptor.endpoint_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="enable_connection_aborted.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="executor_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::executor_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="endpoint_type.html" title="basic_socket_acceptor::endpoint_type">
|
||||
<link rel="next" href="get_executor.html" title="basic_socket_acceptor::get_executor">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="endpoint_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.executor_type"></a><a class="link" href="executor_type.html" title="basic_socket_acceptor::executor_type">basic_socket_acceptor::executor_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.executor_type"></a>
|
||||
The
|
||||
type of the executor associated with the object.
|
||||
</p>
|
||||
<pre class="programlisting">typedef Executor executor_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.executor_type.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.executor_type.requirements"></a></span><a class="link" href="executor_type.html#asio.reference.basic_socket_acceptor.executor_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="endpoint_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_executor.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::get_executor</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="executor_type.html" title="basic_socket_acceptor::executor_type">
|
||||
<link rel="next" href="get_option.html" title="basic_socket_acceptor::get_option">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_option.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.get_executor"></a><a class="link" href="get_executor.html" title="basic_socket_acceptor::get_executor">basic_socket_acceptor::get_executor</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.get_executor"></a>
|
||||
Get
|
||||
the executor associated with the object.
|
||||
</p>
|
||||
<pre class="programlisting">executor_type get_executor();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="executor_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_option.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::get_option</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="get_executor.html" title="basic_socket_acceptor::get_executor">
|
||||
<link rel="next" href="get_option/overload1.html" title="basic_socket_acceptor::get_option (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_option/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option"></a><a class="link" href="get_option.html" title="basic_socket_acceptor::get_option">basic_socket_acceptor::get_option</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.get_option"></a>
|
||||
Get
|
||||
an option from the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../GettableSocketOption.html" title="Gettable socket option requirements">GettableSocketOption</a>>
|
||||
void <a class="link" href="get_option/overload1.html" title="basic_socket_acceptor::get_option (1 of 2 overloads)">get_option</a>(
|
||||
GettableSocketOption & option) const;
|
||||
<span class="emphasis"><em>» <a class="link" href="get_option/overload1.html" title="basic_socket_acceptor::get_option (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../GettableSocketOption.html" title="Gettable socket option requirements">GettableSocketOption</a>>
|
||||
void <a class="link" href="get_option/overload2.html" title="basic_socket_acceptor::get_option (2 of 2 overloads)">get_option</a>(
|
||||
GettableSocketOption & option,
|
||||
asio::error_code & ec) const;
|
||||
<span class="emphasis"><em>» <a class="link" href="get_option/overload2.html" title="basic_socket_acceptor::get_option (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_executor.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="get_option/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::get_option (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../get_option.html" title="basic_socket_acceptor::get_option">
|
||||
<link rel="prev" href="../get_option.html" title="basic_socket_acceptor::get_option">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::get_option (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../get_option.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../get_option.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::get_option (1 of 2 overloads)">basic_socket_acceptor::get_option
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Get an option from the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../GettableSocketOption.html" title="Gettable socket option requirements">GettableSocketOption</a>>
|
||||
void get_option(
|
||||
GettableSocketOption & option) const;
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to get the current value of an option on the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.get_option.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.get_option.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">option</span></dt>
|
||||
<dd><p>
|
||||
The option value to be obtained from the acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.get_option.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.get_option.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.get_option.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.get_option.overload1.example">Example</a>
|
||||
</h6>
|
||||
<p>
|
||||
Getting the value of the SOL_SOCKET/SO_REUSEADDR option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::acceptor::reuse_address option;
|
||||
acceptor.get_option(option);
|
||||
bool is_set = option.get();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../get_option.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../get_option.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,85 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::get_option (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../get_option.html" title="basic_socket_acceptor::get_option">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::get_option (1 of 2 overloads)">
|
||||
<link rel="next" href="../io_control.html" title="basic_socket_acceptor::io_control">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../get_option.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../io_control.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::get_option (2 of 2 overloads)">basic_socket_acceptor::get_option
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Get an option from the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../GettableSocketOption.html" title="Gettable socket option requirements">GettableSocketOption</a>>
|
||||
void get_option(
|
||||
GettableSocketOption & option,
|
||||
asio::error_code & ec) const;
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to get the current value of an option on the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.get_option.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.get_option.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">option</span></dt>
|
||||
<dd><p>
|
||||
The option value to be obtained from the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.get_option.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.get_option.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.get_option.overload2.example">Example</a>
|
||||
</h6>
|
||||
<p>
|
||||
Getting the value of the SOL_SOCKET/SO_REUSEADDR option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::acceptor::reuse_address option;
|
||||
asio::error_code ec;
|
||||
acceptor.get_option(option, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
bool is_set = option.get();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../get_option.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../io_control.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,55 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::io_control</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="get_option/overload2.html" title="basic_socket_acceptor::get_option (2 of 2 overloads)">
|
||||
<link rel="next" href="io_control/overload1.html" title="basic_socket_acceptor::io_control (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_option/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="io_control/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control"></a><a class="link" href="io_control.html" title="basic_socket_acceptor::io_control">basic_socket_acceptor::io_control</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.io_control"></a>
|
||||
Perform
|
||||
an IO control command on the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../IoControlCommand.html" title="I/O control command requirements">IoControlCommand</a>>
|
||||
void <a class="link" href="io_control/overload1.html" title="basic_socket_acceptor::io_control (1 of 2 overloads)">io_control</a>(
|
||||
IoControlCommand & command);
|
||||
<span class="emphasis"><em>» <a class="link" href="io_control/overload1.html" title="basic_socket_acceptor::io_control (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
template<
|
||||
typename <a class="link" href="../IoControlCommand.html" title="I/O control command requirements">IoControlCommand</a>>
|
||||
void <a class="link" href="io_control/overload2.html" title="basic_socket_acceptor::io_control (2 of 2 overloads)">io_control</a>(
|
||||
IoControlCommand & command,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="io_control/overload2.html" title="basic_socket_acceptor::io_control (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="get_option/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="io_control/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,87 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::io_control (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../io_control.html" title="basic_socket_acceptor::io_control">
|
||||
<link rel="prev" href="../io_control.html" title="basic_socket_acceptor::io_control">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::io_control (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../io_control.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../io_control.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::io_control (1 of 2 overloads)">basic_socket_acceptor::io_control
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Perform an IO control command on the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../IoControlCommand.html" title="I/O control command requirements">IoControlCommand</a>>
|
||||
void io_control(
|
||||
IoControlCommand & command);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to execute an IO control command on the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.io_control.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.io_control.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">command</span></dt>
|
||||
<dd><p>
|
||||
The IO control command to be performed on the acceptor.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.io_control.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.io_control.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.io_control.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.io_control.overload1.example">Example</a>
|
||||
</h6>
|
||||
<p>
|
||||
Getting the number of bytes ready to read:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::acceptor::non_blocking_io command(true);
|
||||
socket.io_control(command);
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../io_control.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../io_control.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,84 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::io_control (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../io_control.html" title="basic_socket_acceptor::io_control">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::io_control (1 of 2 overloads)">
|
||||
<link rel="next" href="../is_open.html" title="basic_socket_acceptor::is_open">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../io_control.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../is_open.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::io_control (2 of 2 overloads)">basic_socket_acceptor::io_control
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Perform an IO control command on the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../IoControlCommand.html" title="I/O control command requirements">IoControlCommand</a>>
|
||||
void io_control(
|
||||
IoControlCommand & command,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to execute an IO control command on the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.io_control.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.io_control.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">command</span></dt>
|
||||
<dd><p>
|
||||
The IO control command to be performed on the acceptor.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.io_control.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.io_control.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.io_control.overload2.example">Example</a>
|
||||
</h6>
|
||||
<p>
|
||||
Getting the number of bytes ready to read:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::acceptor::non_blocking_io command(true);
|
||||
asio::error_code ec;
|
||||
socket.io_control(command, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../io_control.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../is_open.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::is_open</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="io_control/overload2.html" title="basic_socket_acceptor::io_control (2 of 2 overloads)">
|
||||
<link rel="next" href="keep_alive.html" title="basic_socket_acceptor::keep_alive">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="io_control/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="keep_alive.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.is_open"></a><a class="link" href="is_open.html" title="basic_socket_acceptor::is_open">basic_socket_acceptor::is_open</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.is_open"></a>
|
||||
Determine
|
||||
whether the acceptor is open.
|
||||
</p>
|
||||
<pre class="programlisting">bool is_open() const;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="io_control/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="keep_alive.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::keep_alive</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="is_open.html" title="basic_socket_acceptor::is_open">
|
||||
<link rel="next" href="linger.html" title="basic_socket_acceptor::linger">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_open.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="linger.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.keep_alive"></a><a class="link" href="keep_alive.html" title="basic_socket_acceptor::keep_alive">basic_socket_acceptor::keep_alive</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.keep_alive"></a>
|
||||
Socket
|
||||
option to send keep-alives.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined keep_alive;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_KEEPALIVE socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.keep_alive.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.keep_alive.examples"></a></span><a class="link" href="keep_alive.html#asio.reference.basic_socket_acceptor.keep_alive.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::keep_alive option(true);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::keep_alive option;
|
||||
socket.get_option(option);
|
||||
bool is_set = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.keep_alive.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.keep_alive.requirements"></a></span><a class="link" href="keep_alive.html#asio.reference.basic_socket_acceptor.keep_alive.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="is_open.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="linger.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,83 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::linger</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="keep_alive.html" title="basic_socket_acceptor::keep_alive">
|
||||
<link rel="next" href="listen.html" title="basic_socket_acceptor::listen">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="keep_alive.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="listen.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.linger"></a><a class="link" href="linger.html" title="basic_socket_acceptor::linger">basic_socket_acceptor::linger</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.linger"></a>
|
||||
Socket
|
||||
option to specify whether the socket lingers on close if unsent data is
|
||||
present.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined linger;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_LINGER socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.linger.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.linger.examples"></a></span><a class="link" href="linger.html#asio.reference.basic_socket_acceptor.linger.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::linger option(true, 30);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::linger option;
|
||||
socket.get_option(option);
|
||||
bool is_set = option.enabled();
|
||||
unsigned short timeout = option.timeout();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.linger.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.linger.requirements"></a></span><a class="link" href="linger.html#asio.reference.basic_socket_acceptor.linger.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="keep_alive.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="listen.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,51 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::listen</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="linger.html" title="basic_socket_acceptor::linger">
|
||||
<link rel="next" href="listen/overload1.html" title="basic_socket_acceptor::listen (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="linger.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="listen/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.listen"></a><a class="link" href="listen.html" title="basic_socket_acceptor::listen">basic_socket_acceptor::listen</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.listen"></a>
|
||||
Place
|
||||
the acceptor into the state where it will listen for new connections.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="listen/overload1.html" title="basic_socket_acceptor::listen (1 of 2 overloads)">listen</a>(
|
||||
int backlog = socket_base::max_listen_connections);
|
||||
<span class="emphasis"><em>» <a class="link" href="listen/overload1.html" title="basic_socket_acceptor::listen (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="listen/overload2.html" title="basic_socket_acceptor::listen (2 of 2 overloads)">listen</a>(
|
||||
int backlog,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="listen/overload2.html" title="basic_socket_acceptor::listen (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="linger.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="listen/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,74 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::listen (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../listen.html" title="basic_socket_acceptor::listen">
|
||||
<link rel="prev" href="../listen.html" title="basic_socket_acceptor::listen">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::listen (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../listen.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../listen.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::listen (1 of 2 overloads)">basic_socket_acceptor::listen
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Place the acceptor into the state where it will listen for new connections.
|
||||
</p>
|
||||
<pre class="programlisting">void listen(
|
||||
int backlog = socket_base::max_listen_connections);
|
||||
</pre>
|
||||
<p>
|
||||
This function puts the socket acceptor into the state where it may accept
|
||||
new connections.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.listen.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.listen.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">backlog</span></dt>
|
||||
<dd><p>
|
||||
The maximum length of the queue of pending connections.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.listen.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.listen.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../listen.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../listen.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,79 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::listen (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../listen.html" title="basic_socket_acceptor::listen">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::listen (1 of 2 overloads)">
|
||||
<link rel="next" href="../local_endpoint.html" title="basic_socket_acceptor::local_endpoint">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../listen.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../local_endpoint.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::listen (2 of 2 overloads)">basic_socket_acceptor::listen
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Place the acceptor into the state where it will listen for new connections.
|
||||
</p>
|
||||
<pre class="programlisting">void listen(
|
||||
int backlog,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function puts the socket acceptor into the state where it may accept
|
||||
new connections.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.listen.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.listen.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">backlog</span></dt>
|
||||
<dd><p>
|
||||
The maximum length of the queue of pending connections.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.listen.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.listen.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.listen.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::error_code ec;
|
||||
acceptor.listen(asio::socket_base::max_listen_connections, ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../listen.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../local_endpoint.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::local_endpoint</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="listen/overload2.html" title="basic_socket_acceptor::listen (2 of 2 overloads)">
|
||||
<link rel="next" href="local_endpoint/overload1.html" title="basic_socket_acceptor::local_endpoint (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="listen/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="local_endpoint/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint"></a><a class="link" href="local_endpoint.html" title="basic_socket_acceptor::local_endpoint">basic_socket_acceptor::local_endpoint</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.local_endpoint"></a>
|
||||
Get
|
||||
the local endpoint of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">endpoint_type <a class="link" href="local_endpoint/overload1.html" title="basic_socket_acceptor::local_endpoint (1 of 2 overloads)">local_endpoint</a>() const;
|
||||
<span class="emphasis"><em>» <a class="link" href="local_endpoint/overload1.html" title="basic_socket_acceptor::local_endpoint (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
endpoint_type <a class="link" href="local_endpoint/overload2.html" title="basic_socket_acceptor::local_endpoint (2 of 2 overloads)">local_endpoint</a>(
|
||||
asio::error_code & ec) const;
|
||||
<span class="emphasis"><em>» <a class="link" href="local_endpoint/overload2.html" title="basic_socket_acceptor::local_endpoint (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="listen/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="local_endpoint/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::local_endpoint (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../local_endpoint.html" title="basic_socket_acceptor::local_endpoint">
|
||||
<link rel="prev" href="../local_endpoint.html" title="basic_socket_acceptor::local_endpoint">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::local_endpoint (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../local_endpoint.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../local_endpoint.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::local_endpoint (1 of 2 overloads)">basic_socket_acceptor::local_endpoint
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Get the local endpoint of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">endpoint_type local_endpoint() const;
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to obtain the locally bound endpoint of the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.return_value"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.local_endpoint.overload1.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
An object that represents the local endpoint of the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.local_endpoint.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.local_endpoint.overload1.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::ip::tcp::endpoint endpoint = acceptor.local_endpoint();
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../local_endpoint.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../local_endpoint.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::local_endpoint (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../local_endpoint.html" title="basic_socket_acceptor::local_endpoint">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::local_endpoint (1 of 2 overloads)">
|
||||
<link rel="next" href="../max_connections.html" title="basic_socket_acceptor::max_connections">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../local_endpoint.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../max_connections.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::local_endpoint (2 of 2 overloads)">basic_socket_acceptor::local_endpoint
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Get the local endpoint of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">endpoint_type local_endpoint(
|
||||
asio::error_code & ec) const;
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to obtain the locally bound endpoint of the acceptor.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.local_endpoint.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.return_value"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.local_endpoint.overload2.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
An object that represents the local endpoint of the acceptor. Returns
|
||||
a default-constructed endpoint object if an error occurred and the error
|
||||
handler did not throw an exception.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.local_endpoint.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.local_endpoint.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
...
|
||||
asio::error_code ec;
|
||||
asio::ip::tcp::endpoint endpoint = acceptor.local_endpoint(ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../local_endpoint.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../max_connections.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::max_connections</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="local_endpoint/overload2.html" title="basic_socket_acceptor::local_endpoint (2 of 2 overloads)">
|
||||
<link rel="next" href="max_listen_connections.html" title="basic_socket_acceptor::max_listen_connections">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="local_endpoint/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="max_listen_connections.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.max_connections"></a><a class="link" href="max_connections.html" title="basic_socket_acceptor::max_connections">basic_socket_acceptor::max_connections</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.max_connections"></a>
|
||||
(Deprecated:
|
||||
Use max_listen_connections.) The maximum length of the queue of pending
|
||||
incoming connections.
|
||||
</p>
|
||||
<pre class="programlisting">static const int max_connections = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="local_endpoint/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="max_listen_connections.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::max_listen_connections</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="max_connections.html" title="basic_socket_acceptor::max_connections">
|
||||
<link rel="next" href="message_do_not_route.html" title="basic_socket_acceptor::message_do_not_route">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="max_connections.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_do_not_route.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.max_listen_connections"></a><a class="link" href="max_listen_connections.html" title="basic_socket_acceptor::max_listen_connections">basic_socket_acceptor::max_listen_connections</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.max_listen_connections"></a>
|
||||
The
|
||||
maximum length of the queue of pending incoming connections.
|
||||
</p>
|
||||
<pre class="programlisting">static const int max_listen_connections = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="max_connections.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_do_not_route.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::message_do_not_route</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="max_listen_connections.html" title="basic_socket_acceptor::max_listen_connections">
|
||||
<link rel="next" href="message_end_of_record.html" title="basic_socket_acceptor::message_end_of_record">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="max_listen_connections.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_end_of_record.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.message_do_not_route"></a><a class="link" href="message_do_not_route.html" title="basic_socket_acceptor::message_do_not_route">basic_socket_acceptor::message_do_not_route</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.message_do_not_route"></a>
|
||||
Specify
|
||||
that the data should not be subject to routing.
|
||||
</p>
|
||||
<pre class="programlisting">static const int message_do_not_route = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="max_listen_connections.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_end_of_record.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::message_end_of_record</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="message_do_not_route.html" title="basic_socket_acceptor::message_do_not_route">
|
||||
<link rel="next" href="message_flags.html" title="basic_socket_acceptor::message_flags">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_do_not_route.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_flags.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.message_end_of_record"></a><a class="link" href="message_end_of_record.html" title="basic_socket_acceptor::message_end_of_record">basic_socket_acceptor::message_end_of_record</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.message_end_of_record"></a>
|
||||
Specifies
|
||||
that the data marks the end of a record.
|
||||
</p>
|
||||
<pre class="programlisting">static const int message_end_of_record = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_do_not_route.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_flags.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::message_flags</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="message_end_of_record.html" title="basic_socket_acceptor::message_end_of_record">
|
||||
<link rel="next" href="message_out_of_band.html" title="basic_socket_acceptor::message_out_of_band">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_end_of_record.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_out_of_band.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.message_flags"></a><a class="link" href="message_flags.html" title="basic_socket_acceptor::message_flags">basic_socket_acceptor::message_flags</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.message_flags"></a>
|
||||
Bitmask
|
||||
type for flags that can be passed to send and receive operations.
|
||||
</p>
|
||||
<pre class="programlisting">typedef int message_flags;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.message_flags.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.message_flags.requirements"></a></span><a class="link" href="message_flags.html#asio.reference.basic_socket_acceptor.message_flags.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_end_of_record.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_out_of_band.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::message_out_of_band</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="message_flags.html" title="basic_socket_acceptor::message_flags">
|
||||
<link rel="next" href="message_peek.html" title="basic_socket_acceptor::message_peek">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_flags.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_peek.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.message_out_of_band"></a><a class="link" href="message_out_of_band.html" title="basic_socket_acceptor::message_out_of_band">basic_socket_acceptor::message_out_of_band</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.message_out_of_band"></a>
|
||||
Process
|
||||
out-of-band data.
|
||||
</p>
|
||||
<pre class="programlisting">static const int message_out_of_band = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_flags.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="message_peek.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,47 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::message_peek</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="message_out_of_band.html" title="basic_socket_acceptor::message_out_of_band">
|
||||
<link rel="next" href="native_handle.html" title="basic_socket_acceptor::native_handle">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_out_of_band.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_handle.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.message_peek"></a><a class="link" href="message_peek.html" title="basic_socket_acceptor::message_peek">basic_socket_acceptor::message_peek</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.message_peek"></a>
|
||||
Peek
|
||||
at incoming data without removing it from the input queue.
|
||||
</p>
|
||||
<pre class="programlisting">static const int message_peek = implementation_defined;
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_out_of_band.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_handle.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,49 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_handle</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="message_peek.html" title="basic_socket_acceptor::message_peek">
|
||||
<link rel="next" href="native_handle_type.html" title="basic_socket_acceptor::native_handle_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_peek.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_handle_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_handle"></a><a class="link" href="native_handle.html" title="basic_socket_acceptor::native_handle">basic_socket_acceptor::native_handle</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.native_handle"></a>
|
||||
Get
|
||||
the native acceptor representation.
|
||||
</p>
|
||||
<pre class="programlisting">native_handle_type native_handle();
|
||||
</pre>
|
||||
<p>
|
||||
This function may be used to obtain the underlying representation of the
|
||||
acceptor. This is intended to allow access to native acceptor functionality
|
||||
that is not otherwise provided.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="message_peek.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_handle_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_handle_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="native_handle.html" title="basic_socket_acceptor::native_handle">
|
||||
<link rel="next" href="native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_handle.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_non_blocking.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_handle_type"></a><a class="link" href="native_handle_type.html" title="basic_socket_acceptor::native_handle_type">basic_socket_acceptor::native_handle_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.native_handle_type"></a>
|
||||
The
|
||||
native representation of an acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined native_handle_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_handle_type.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_handle_type.requirements"></a></span><a class="link" href="native_handle_type.html#asio.reference.basic_socket_acceptor.native_handle_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_handle.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_non_blocking.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_non_blocking</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="native_handle_type.html" title="basic_socket_acceptor::native_handle_type">
|
||||
<link rel="next" href="native_non_blocking/overload1.html" title="basic_socket_acceptor::native_non_blocking (1 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_handle_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_non_blocking/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking"></a><a class="link" href="native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">basic_socket_acceptor::native_non_blocking</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.native_non_blocking"></a>
|
||||
Gets
|
||||
the non-blocking mode of the native acceptor implementation.
|
||||
</p>
|
||||
<pre class="programlisting">bool <a class="link" href="native_non_blocking/overload1.html" title="basic_socket_acceptor::native_non_blocking (1 of 3 overloads)">native_non_blocking</a>() const;
|
||||
<span class="emphasis"><em>» <a class="link" href="native_non_blocking/overload1.html" title="basic_socket_acceptor::native_non_blocking (1 of 3 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Sets the non-blocking mode of the native acceptor implementation.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="native_non_blocking/overload2.html" title="basic_socket_acceptor::native_non_blocking (2 of 3 overloads)">native_non_blocking</a>(
|
||||
bool mode);
|
||||
<span class="emphasis"><em>» <a class="link" href="native_non_blocking/overload2.html" title="basic_socket_acceptor::native_non_blocking (2 of 3 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="native_non_blocking/overload3.html" title="basic_socket_acceptor::native_non_blocking (3 of 3 overloads)">native_non_blocking</a>(
|
||||
bool mode,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="native_non_blocking/overload3.html" title="basic_socket_acceptor::native_non_blocking (3 of 3 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_handle_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="native_non_blocking/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_non_blocking (1 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">
|
||||
<link rel="prev" href="../native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::native_non_blocking (2 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../native_non_blocking.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::native_non_blocking (1 of 3 overloads)">basic_socket_acceptor::native_non_blocking
|
||||
(1 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Gets the non-blocking mode of the native acceptor implementation.
|
||||
</p>
|
||||
<pre class="programlisting">bool native_non_blocking() const;
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to retrieve the non-blocking mode of the underlying
|
||||
native acceptor. This mode has no effect on the behaviour of the acceptor
|
||||
object's synchronous operations.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload1.return_value"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.native_non_blocking.overload1.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
<code class="computeroutput">true</code> if the underlying acceptor is in non-blocking mode
|
||||
and direct system calls may fail with <code class="computeroutput">asio::error::would_block</code>
|
||||
(or the equivalent system error).
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload1.remarks"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.native_non_blocking.overload1.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
The current non-blocking mode is cached by the acceptor object. Consequently,
|
||||
the return value may be incorrect if the non-blocking mode was set directly
|
||||
on the native acceptor.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../native_non_blocking.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_non_blocking (2 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::native_non_blocking (1 of 3 overloads)">
|
||||
<link rel="next" href="overload3.html" title="basic_socket_acceptor::native_non_blocking (3 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::native_non_blocking (2 of 3 overloads)">basic_socket_acceptor::native_non_blocking
|
||||
(2 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Sets the non-blocking mode of the native acceptor implementation.
|
||||
</p>
|
||||
<pre class="programlisting">void native_non_blocking(
|
||||
bool mode);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to modify the non-blocking mode of the underlying
|
||||
native acceptor. It has no effect on the behaviour of the acceptor object's
|
||||
synchronous operations.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.native_non_blocking.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">mode</span></dt>
|
||||
<dd><p>
|
||||
If <code class="computeroutput">true</code>, the underlying acceptor is put into non-blocking
|
||||
mode and direct system calls may fail with <code class="computeroutput">asio::error::would_block</code>
|
||||
(or the equivalent system error).
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload2.exceptions"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.native_non_blocking.overload2.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure. If the <code class="computeroutput">mode</code> is <code class="computeroutput">false</code>,
|
||||
but the current value of <code class="computeroutput">non_blocking()</code> is <code class="computeroutput">true</code>,
|
||||
this function fails with <code class="computeroutput">asio::error::invalid_argument</code>,
|
||||
as the combination does not make sense.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
+72
@@ -0,0 +1,72 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::native_non_blocking (3 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../native_non_blocking.html" title="basic_socket_acceptor::native_non_blocking">
|
||||
<link rel="prev" href="overload2.html" title="basic_socket_acceptor::native_non_blocking (2 of 3 overloads)">
|
||||
<link rel="next" href="../non_blocking.html" title="basic_socket_acceptor::non_blocking">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../non_blocking.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload3"></a><a class="link" href="overload3.html" title="basic_socket_acceptor::native_non_blocking (3 of 3 overloads)">basic_socket_acceptor::native_non_blocking
|
||||
(3 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Sets the non-blocking mode of the native acceptor implementation.
|
||||
</p>
|
||||
<pre class="programlisting">void native_non_blocking(
|
||||
bool mode,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function is used to modify the non-blocking mode of the underlying
|
||||
native acceptor. It has no effect on the behaviour of the acceptor object's
|
||||
synchronous operations.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload3.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.native_non_blocking.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.native_non_blocking.overload3.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">mode</span></dt>
|
||||
<dd><p>
|
||||
If <code class="computeroutput">true</code>, the underlying acceptor is put into non-blocking
|
||||
mode and direct system calls may fail with <code class="computeroutput">asio::error::would_block</code>
|
||||
(or the equivalent system error).
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any. If the <code class="computeroutput">mode</code>
|
||||
is <code class="computeroutput">false</code>, but the current value of <code class="computeroutput">non_blocking()</code>
|
||||
is <code class="computeroutput">true</code>, this function fails with <code class="computeroutput">asio::error::invalid_argument</code>,
|
||||
as the combination does not make sense.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../native_non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../non_blocking.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,57 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::non_blocking</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="native_non_blocking/overload3.html" title="basic_socket_acceptor::native_non_blocking (3 of 3 overloads)">
|
||||
<link rel="next" href="non_blocking/overload1.html" title="basic_socket_acceptor::non_blocking (1 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="non_blocking/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking"></a><a class="link" href="non_blocking.html" title="basic_socket_acceptor::non_blocking">basic_socket_acceptor::non_blocking</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.non_blocking"></a>
|
||||
Gets
|
||||
the non-blocking mode of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">bool <a class="link" href="non_blocking/overload1.html" title="basic_socket_acceptor::non_blocking (1 of 3 overloads)">non_blocking</a>() const;
|
||||
<span class="emphasis"><em>» <a class="link" href="non_blocking/overload1.html" title="basic_socket_acceptor::non_blocking (1 of 3 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Sets the non-blocking mode of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="non_blocking/overload2.html" title="basic_socket_acceptor::non_blocking (2 of 3 overloads)">non_blocking</a>(
|
||||
bool mode);
|
||||
<span class="emphasis"><em>» <a class="link" href="non_blocking/overload2.html" title="basic_socket_acceptor::non_blocking (2 of 3 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="non_blocking/overload3.html" title="basic_socket_acceptor::non_blocking (3 of 3 overloads)">non_blocking</a>(
|
||||
bool mode,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="non_blocking/overload3.html" title="basic_socket_acceptor::non_blocking (3 of 3 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="native_non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="non_blocking/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,62 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::non_blocking (1 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../non_blocking.html" title="basic_socket_acceptor::non_blocking">
|
||||
<link rel="prev" href="../non_blocking.html" title="basic_socket_acceptor::non_blocking">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::non_blocking (2 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../non_blocking.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::non_blocking (1 of 3 overloads)">basic_socket_acceptor::non_blocking
|
||||
(1 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Gets the non-blocking mode of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">bool non_blocking() const;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload1.return_value"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.non_blocking.overload1.return_value">Return
|
||||
Value</a>
|
||||
</h6>
|
||||
<p>
|
||||
<code class="computeroutput">true</code> if the acceptor's synchronous operations will fail
|
||||
with <code class="computeroutput">asio::error::would_block</code> if they are unable to perform
|
||||
the requested operation immediately. If <code class="computeroutput">false</code>, synchronous
|
||||
operations will block until complete.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload1.remarks"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.non_blocking.overload1.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
The non-blocking mode has no effect on the behaviour of asynchronous
|
||||
operations. Asynchronous operations will never fail with the error <code class="computeroutput">asio::error::would_block</code>.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../non_blocking.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::non_blocking (2 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../non_blocking.html" title="basic_socket_acceptor::non_blocking">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::non_blocking (1 of 3 overloads)">
|
||||
<link rel="next" href="overload3.html" title="basic_socket_acceptor::non_blocking (3 of 3 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::non_blocking (2 of 3 overloads)">basic_socket_acceptor::non_blocking
|
||||
(2 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Sets the non-blocking mode of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void non_blocking(
|
||||
bool mode);
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.non_blocking.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">mode</span></dt>
|
||||
<dd><p>
|
||||
If <code class="computeroutput">true</code>, the acceptor's synchronous operations will
|
||||
fail with <code class="computeroutput">asio::error::would_block</code> if they are unable
|
||||
to perform the requested operation immediately. If <code class="computeroutput">false</code>,
|
||||
synchronous operations will block until complete.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.exceptions"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.non_blocking.overload2.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload2.remarks"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.non_blocking.overload2.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
The non-blocking mode has no effect on the behaviour of asynchronous
|
||||
operations. Asynchronous operations will never fail with the error <code class="computeroutput">asio::error::would_block</code>.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload3.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,73 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::non_blocking (3 of 3 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../non_blocking.html" title="basic_socket_acceptor::non_blocking">
|
||||
<link rel="prev" href="overload2.html" title="basic_socket_acceptor::non_blocking (2 of 3 overloads)">
|
||||
<link rel="next" href="../open.html" title="basic_socket_acceptor::open">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../open.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload3"></a><a class="link" href="overload3.html" title="basic_socket_acceptor::non_blocking (3 of 3 overloads)">basic_socket_acceptor::non_blocking
|
||||
(3 of 3 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Sets the non-blocking mode of the acceptor.
|
||||
</p>
|
||||
<pre class="programlisting">void non_blocking(
|
||||
bool mode,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload3.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload3.parameters"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.non_blocking.overload3.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">mode</span></dt>
|
||||
<dd><p>
|
||||
If <code class="computeroutput">true</code>, the acceptor's synchronous operations will
|
||||
fail with <code class="computeroutput">asio::error::would_block</code> if they are unable
|
||||
to perform the requested operation immediately. If <code class="computeroutput">false</code>,
|
||||
synchronous operations will block until complete.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.non_blocking.overload3.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.non_blocking.overload3.remarks"></a></span><a class="link" href="overload3.html#asio.reference.basic_socket_acceptor.non_blocking.overload3.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
The non-blocking mode has no effect on the behaviour of asynchronous
|
||||
operations. Asynchronous operations will never fail with the error <code class="computeroutput">asio::error::would_block</code>.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload2.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../non_blocking.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../open.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,51 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::open</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="non_blocking/overload3.html" title="basic_socket_acceptor::non_blocking (3 of 3 overloads)">
|
||||
<link rel="next" href="open/overload1.html" title="basic_socket_acceptor::open (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="open/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.open"></a><a class="link" href="open.html" title="basic_socket_acceptor::open">basic_socket_acceptor::open</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.open"></a>
|
||||
Open
|
||||
the acceptor using the specified protocol.
|
||||
</p>
|
||||
<pre class="programlisting">void <a class="link" href="open/overload1.html" title="basic_socket_acceptor::open (1 of 2 overloads)">open</a>(
|
||||
const protocol_type & protocol = protocol_type());
|
||||
<span class="emphasis"><em>» <a class="link" href="open/overload1.html" title="basic_socket_acceptor::open (1 of 2 overloads)">more...</a></em></span>
|
||||
|
||||
void <a class="link" href="open/overload2.html" title="basic_socket_acceptor::open (2 of 2 overloads)">open</a>(
|
||||
const protocol_type & protocol,
|
||||
asio::error_code & ec);
|
||||
<span class="emphasis"><em>» <a class="link" href="open/overload2.html" title="basic_socket_acceptor::open (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="non_blocking/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="open/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::open (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../open.html" title="basic_socket_acceptor::open">
|
||||
<link rel="prev" href="../open.html" title="basic_socket_acceptor::open">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::open (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../open.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../open.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::open (1 of 2 overloads)">basic_socket_acceptor::open
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Open the acceptor using the specified protocol.
|
||||
</p>
|
||||
<pre class="programlisting">void open(
|
||||
const protocol_type & protocol = protocol_type());
|
||||
</pre>
|
||||
<p>
|
||||
This function opens the socket acceptor so that it will use the specified
|
||||
protocol.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.open.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.open.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying which protocol is to be used.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.open.overload1.exceptions"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.open.overload1.exceptions">Exceptions</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">asio::system_error</span></dt>
|
||||
<dd><p>
|
||||
Thrown on failure.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload1.h2"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.open.overload1.example"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.open.overload1.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
acceptor.open(asio::ip::tcp::v4());
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../open.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../open.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,78 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::open (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../open.html" title="basic_socket_acceptor::open">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::open (1 of 2 overloads)">
|
||||
<link rel="next" href="../operator_eq_.html" title="basic_socket_acceptor::operator=">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../open.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../operator_eq_.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::open (2 of 2 overloads)">basic_socket_acceptor::open
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Open the acceptor using the specified protocol.
|
||||
</p>
|
||||
<pre class="programlisting">void open(
|
||||
const protocol_type & protocol,
|
||||
asio::error_code & ec);
|
||||
</pre>
|
||||
<p>
|
||||
This function opens the socket acceptor so that it will use the specified
|
||||
protocol.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.open.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.open.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">protocol</span></dt>
|
||||
<dd><p>
|
||||
An object specifying which protocol is to be used.
|
||||
</p></dd>
|
||||
<dt><span class="term">ec</span></dt>
|
||||
<dd><p>
|
||||
Set to indicate what error occurred, if any.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.open.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.open.overload2.example"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.open.overload2.example">Example</a>
|
||||
</h6>
|
||||
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
|
||||
asio::error_code ec;
|
||||
acceptor.open(asio::ip::tcp::v4(), ec);
|
||||
if (ec)
|
||||
{
|
||||
// An error occurred.
|
||||
}
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../open.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../operator_eq_.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,58 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::operator=</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="open/overload2.html" title="basic_socket_acceptor::open (2 of 2 overloads)">
|
||||
<link rel="next" href="operator_eq_/overload1.html" title="basic_socket_acceptor::operator= (1 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="open/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="operator_eq_/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_"></a><a class="link" href="operator_eq_.html" title="basic_socket_acceptor::operator=">basic_socket_acceptor::operator=</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.operator_eq_"></a>
|
||||
Move-assign
|
||||
a <a class="link" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from another.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor & <a class="link" href="operator_eq_/overload1.html" title="basic_socket_acceptor::operator= (1 of 2 overloads)">operator=</a>(
|
||||
basic_socket_acceptor && other);
|
||||
<span class="emphasis"><em>» <a class="link" href="operator_eq_/overload1.html" title="basic_socket_acceptor::operator= (1 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
<p>
|
||||
Move-assign a <a class="link" href="../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from an acceptor of another protocol type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
enable_if< is_convertible< Protocol1, Protocol >::value &&is_convertible< Executor1, Executor >::value, basic_socket_acceptor & >::type <a class="link" href="operator_eq_/overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">operator=</a>(
|
||||
basic_socket_acceptor< Protocol1, Executor1 > && other);
|
||||
<span class="emphasis"><em>» <a class="link" href="operator_eq_/overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">more...</a></em></span>
|
||||
</pre>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="open/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="operator_eq_/overload1.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,71 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::operator= (1 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../operator_eq_.html" title="basic_socket_acceptor::operator=">
|
||||
<link rel="prev" href="../operator_eq_.html" title="basic_socket_acceptor::operator=">
|
||||
<link rel="next" href="overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../operator_eq_.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../operator_eq_.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload1"></a><a class="link" href="overload1.html" title="basic_socket_acceptor::operator= (1 of 2 overloads)">basic_socket_acceptor::operator=
|
||||
(1 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Move-assign a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from another.
|
||||
</p>
|
||||
<pre class="programlisting">basic_socket_acceptor & operator=(
|
||||
basic_socket_acceptor && other);
|
||||
</pre>
|
||||
<p>
|
||||
This assignment operator moves an acceptor from one object to another.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload1.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.operator_eq_.overload1.parameters"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.operator_eq_.overload1.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">other</span></dt>
|
||||
<dd><p>
|
||||
The other <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
object from which the move will occur.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload1.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.operator_eq_.overload1.remarks"></a></span><a class="link" href="overload1.html#asio.reference.basic_socket_acceptor.operator_eq_.overload1.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
Following the move, the moved-from object is in the same state as if
|
||||
constructed using the <code class="computeroutput">basic_socket_acceptor(const executor_type&)</code>
|
||||
constructor.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="../operator_eq_.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../operator_eq_.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="overload2.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,74 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::operator= (2 of 2 overloads)</title>
|
||||
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../../index.html" title="Asio">
|
||||
<link rel="up" href="../operator_eq_.html" title="basic_socket_acceptor::operator=">
|
||||
<link rel="prev" href="overload1.html" title="basic_socket_acceptor::operator= (1 of 2 overloads)">
|
||||
<link rel="next" href="../out_of_band_inline.html" title="basic_socket_acceptor::out_of_band_inline">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../operator_eq_.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../out_of_band_inline.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h5 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload2"></a><a class="link" href="overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">basic_socket_acceptor::operator=
|
||||
(2 of 2 overloads)</a>
|
||||
</h5></div></div></div>
|
||||
<p>
|
||||
Move-assign a <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
from an acceptor of another protocol type.
|
||||
</p>
|
||||
<pre class="programlisting">template<
|
||||
typename <a class="link" href="../../Protocol.html" title="Protocol requirements">Protocol1</a>,
|
||||
typename <a class="link" href="../../Executor1.html" title="Executor requirements">Executor1</a>>
|
||||
enable_if< is_convertible< Protocol1, Protocol >::value &&is_convertible< Executor1, Executor >::value, basic_socket_acceptor & >::type operator=(
|
||||
basic_socket_acceptor< Protocol1, Executor1 > && other);
|
||||
</pre>
|
||||
<p>
|
||||
This assignment operator moves an acceptor from one object to another.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload2.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.operator_eq_.overload2.parameters"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.operator_eq_.overload2.parameters">Parameters</a>
|
||||
</h6>
|
||||
<div class="variablelist">
|
||||
<p class="title"><b></b></p>
|
||||
<dl>
|
||||
<dt><span class="term">other</span></dt>
|
||||
<dd><p>
|
||||
The other <a class="link" href="../../basic_socket_acceptor.html" title="basic_socket_acceptor"><code class="computeroutput">basic_socket_acceptor</code></a>
|
||||
object from which the move will occur.
|
||||
</p></dd>
|
||||
</dl>
|
||||
</div>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.operator_eq_.overload2.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.operator_eq_.overload2.remarks"></a></span><a class="link" href="overload2.html#asio.reference.basic_socket_acceptor.operator_eq_.overload2.remarks">Remarks</a>
|
||||
</h6>
|
||||
<p>
|
||||
Following the move, the moved-from object is in the same state as if
|
||||
constructed using the <code class="computeroutput">basic_socket_acceptor(const executor_type&)</code>
|
||||
constructor.
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="overload1.html"><img src="../../../../prev.png" alt="Prev"></a><a accesskey="u" href="../operator_eq_.html"><img src="../../../../up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../home.png" alt="Home"></a><a accesskey="n" href="../out_of_band_inline.html"><img src="../../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::out_of_band_inline</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="operator_eq_/overload2.html" title="basic_socket_acceptor::operator= (2 of 2 overloads)">
|
||||
<link rel="next" href="protocol_type.html" title="basic_socket_acceptor::protocol_type">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="operator_eq_/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="protocol_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.out_of_band_inline"></a><a class="link" href="out_of_band_inline.html" title="basic_socket_acceptor::out_of_band_inline">basic_socket_acceptor::out_of_band_inline</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.out_of_band_inline"></a>
|
||||
Socket
|
||||
option for putting received out-of-band data inline.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined out_of_band_inline;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_OOBINLINE socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.out_of_band_inline.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.out_of_band_inline.examples"></a></span><a class="link" href="out_of_band_inline.html#asio.reference.basic_socket_acceptor.out_of_band_inline.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::out_of_band_inline option(true);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::out_of_band_inline option;
|
||||
socket.get_option(option);
|
||||
bool value = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.out_of_band_inline.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.out_of_band_inline.requirements"></a></span><a class="link" href="out_of_band_inline.html#asio.reference.basic_socket_acceptor.out_of_band_inline.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="operator_eq_/overload2.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="protocol_type.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,54 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::protocol_type</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="out_of_band_inline.html" title="basic_socket_acceptor::out_of_band_inline">
|
||||
<link rel="next" href="receive_buffer_size.html" title="basic_socket_acceptor::receive_buffer_size">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="out_of_band_inline.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="receive_buffer_size.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.protocol_type"></a><a class="link" href="protocol_type.html" title="basic_socket_acceptor::protocol_type">basic_socket_acceptor::protocol_type</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.protocol_type"></a>
|
||||
The
|
||||
protocol type.
|
||||
</p>
|
||||
<pre class="programlisting">typedef Protocol protocol_type;
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.protocol_type.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.protocol_type.requirements"></a></span><a class="link" href="protocol_type.html#asio.reference.basic_socket_acceptor.protocol_type.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="out_of_band_inline.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="receive_buffer_size.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,81 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>basic_socket_acceptor::receive_buffer_size</title>
|
||||
<link rel="stylesheet" href="../../../boostbook.css" type="text/css">
|
||||
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
||||
<link rel="home" href="../../../index.html" title="Asio">
|
||||
<link rel="up" href="../basic_socket_acceptor.html" title="basic_socket_acceptor">
|
||||
<link rel="prev" href="protocol_type.html" title="basic_socket_acceptor::protocol_type">
|
||||
<link rel="next" href="receive_low_watermark.html" title="basic_socket_acceptor::receive_low_watermark">
|
||||
</head>
|
||||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||||
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td></tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="protocol_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="receive_low_watermark.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="asio.reference.basic_socket_acceptor.receive_buffer_size"></a><a class="link" href="receive_buffer_size.html" title="basic_socket_acceptor::receive_buffer_size">basic_socket_acceptor::receive_buffer_size</a>
|
||||
</h4></div></div></div>
|
||||
<p>
|
||||
<span class="emphasis"><em>Inherited from socket_base.</em></span>
|
||||
</p>
|
||||
<p>
|
||||
<a class="indexterm" name="asio.indexterm.basic_socket_acceptor.receive_buffer_size"></a>
|
||||
Socket
|
||||
option for the receive buffer size of a socket.
|
||||
</p>
|
||||
<pre class="programlisting">typedef implementation_defined receive_buffer_size;
|
||||
</pre>
|
||||
<p>
|
||||
Implements the SOL_SOCKET/SO_RCVBUF socket option.
|
||||
</p>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.receive_buffer_size.h0"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.receive_buffer_size.examples"></a></span><a class="link" href="receive_buffer_size.html#asio.reference.basic_socket_acceptor.receive_buffer_size.examples">Examples</a>
|
||||
</h6>
|
||||
<p>
|
||||
Setting the option:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::receive_buffer_size option(8192);
|
||||
socket.set_option(option);
|
||||
</pre>
|
||||
<p>
|
||||
Getting the current option value:
|
||||
</p>
|
||||
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
|
||||
...
|
||||
asio::socket_base::receive_buffer_size option;
|
||||
socket.get_option(option);
|
||||
int size = option.value();
|
||||
</pre>
|
||||
<h6>
|
||||
<a name="asio.reference.basic_socket_acceptor.receive_buffer_size.h1"></a>
|
||||
<span><a name="asio.reference.basic_socket_acceptor.receive_buffer_size.requirements"></a></span><a class="link" href="receive_buffer_size.html#asio.reference.basic_socket_acceptor.receive_buffer_size.requirements">Requirements</a>
|
||||
</h6>
|
||||
<p>
|
||||
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/basic_socket_acceptor.hpp</code>
|
||||
</p>
|
||||
<p>
|
||||
<span class="emphasis"><em>Convenience header: </em></span><code class="literal">asio.hpp</code>
|
||||
</p>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"></td>
|
||||
<td align="right"><div class="copyright-footer">Copyright © 2003-2020 Christopher M.
|
||||
Kohlhoff<p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
</div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
<div class="spirit-nav">
|
||||
<a accesskey="p" href="protocol_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../basic_socket_acceptor.html"><img src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png" alt="Home"></a><a accesskey="n" href="receive_low_watermark.html"><img src="../../../next.png" alt="Next"></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Loaded 100 of 4869 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user