Adds asio library and Storage Module

This commit is contained in:
Suraxius committed 2020-12-01 22:41:04 +01:00
1 parent 79a6ee5779
commit 30439acd43
4869 files changed
+618801 -903

No files matched your search

@@ -0,0 +1,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::~socket_base</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="../socket_base.html" title="socket_base">
<link rel="prev" href="wait_type.html" title="socket_base::wait_type">
<link rel="next" href="../spawn.html" title="spawn">
</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="../socket_base.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="../spawn.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.socket_base._socket_base"></a><a class="link" href="_socket_base.html" title="socket_base::~socket_base">socket_base::~socket_base</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base._socket_base"></a>
Protected
destructor to prevent deletion through this type.
</p>
<pre class="programlisting">~socket_base();
</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="wait_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="../spawn.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>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="../socket_base.html" title="socket_base">
<link rel="next" href="bytes_readable.html" title="socket_base::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="../socket_base.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.broadcast"></a><a class="link" href="broadcast.html" title="socket_base::broadcast">socket_base::broadcast</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.broadcast.h0"></a>
<span><a name="asio.reference.socket_base.broadcast.examples"></a></span><a class="link" href="broadcast.html#asio.reference.socket_base.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.socket_base.broadcast.h1"></a>
<span><a name="asio.reference.socket_base.broadcast.requirements"></a></span><a class="link" href="broadcast.html#asio.reference.socket_base.broadcast.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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,67 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="broadcast.html" title="socket_base::broadcast">
<link rel="next" href="debug.html" title="socket_base::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="broadcast.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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><h4 class="title">
<a name="asio.reference.socket_base.bytes_readable"></a><a class="link" href="bytes_readable.html" title="socket_base::bytes_readable">socket_base::bytes_readable</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.bytes_readable.h0"></a>
<span><a name="asio.reference.socket_base.bytes_readable.example"></a></span><a class="link" href="bytes_readable.html#asio.reference.socket_base.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.socket_base.bytes_readable.h1"></a>
<span><a name="asio.reference.socket_base.bytes_readable.requirements"></a></span><a class="link" href="bytes_readable.html#asio.reference.socket_base.bytes_readable.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="bytes_readable.html" title="socket_base::bytes_readable">
<link rel="next" href="do_not_route.html" title="socket_base::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="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.debug"></a><a class="link" href="debug.html" title="socket_base::debug">socket_base::debug</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.debug.h0"></a>
<span><a name="asio.reference.socket_base.debug.examples"></a></span><a class="link" href="debug.html#asio.reference.socket_base.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.socket_base.debug.h1"></a>
<span><a name="asio.reference.socket_base.debug.requirements"></a></span><a class="link" href="debug.html#asio.reference.socket_base.debug.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="bytes_readable.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="debug.html" title="socket_base::debug">
<link rel="next" href="enable_connection_aborted.html" title="socket_base::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="../socket_base.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.socket_base.do_not_route"></a><a class="link" href="do_not_route.html" title="socket_base::do_not_route">socket_base::do_not_route</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.do_not_route.h0"></a>
<span><a name="asio.reference.socket_base.do_not_route.examples"></a></span><a class="link" href="do_not_route.html#asio.reference.socket_base.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.socket_base.do_not_route.h1"></a>
<span><a name="asio.reference.socket_base.do_not_route.requirements"></a></span><a class="link" href="do_not_route.html#asio.reference.socket_base.do_not_route.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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>
@@ -0,0 +1,80 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="do_not_route.html" title="socket_base::do_not_route">
<link rel="next" href="keep_alive.html" title="socket_base::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="do_not_route.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.enable_connection_aborted"></a><a class="link" href="enable_connection_aborted.html" title="socket_base::enable_connection_aborted">socket_base::enable_connection_aborted</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.enable_connection_aborted.h0"></a>
<span><a name="asio.reference.socket_base.enable_connection_aborted.examples"></a></span><a class="link" href="enable_connection_aborted.html#asio.reference.socket_base.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.socket_base.enable_connection_aborted.h1"></a>
<span><a name="asio.reference.socket_base.enable_connection_aborted.requirements"></a></span><a class="link" href="enable_connection_aborted.html#asio.reference.socket_base.enable_connection_aborted.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="enable_connection_aborted.html" title="socket_base::enable_connection_aborted">
<link rel="next" href="linger.html" title="socket_base::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="enable_connection_aborted.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.keep_alive"></a><a class="link" href="keep_alive.html" title="socket_base::keep_alive">socket_base::keep_alive</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.keep_alive.h0"></a>
<span><a name="asio.reference.socket_base.keep_alive.examples"></a></span><a class="link" href="keep_alive.html#asio.reference.socket_base.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.socket_base.keep_alive.h1"></a>
<span><a name="asio.reference.socket_base.keep_alive.requirements"></a></span><a class="link" href="keep_alive.html#asio.reference.socket_base.keep_alive.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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,79 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="keep_alive.html" title="socket_base::keep_alive">
<link rel="next" href="max_connections.html" title="socket_base::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="keep_alive.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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><h4 class="title">
<a name="asio.reference.socket_base.linger"></a><a class="link" href="linger.html" title="socket_base::linger">socket_base::linger</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.linger.h0"></a>
<span><a name="asio.reference.socket_base.linger.examples"></a></span><a class="link" href="linger.html#asio.reference.socket_base.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.socket_base.linger.h1"></a>
<span><a name="asio.reference.socket_base.linger.requirements"></a></span><a class="link" href="linger.html#asio.reference.socket_base.linger.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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,45 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="linger.html" title="socket_base::linger">
<link rel="next" href="max_listen_connections.html" title="socket_base::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="linger.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.max_connections"></a><a class="link" href="max_connections.html" title="socket_base::max_connections">socket_base::max_connections</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="linger.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="max_connections.html" title="socket_base::max_connections">
<link rel="next" href="message_do_not_route.html" title="socket_base::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="../socket_base.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.socket_base.max_listen_connections"></a><a class="link" href="max_listen_connections.html" title="socket_base::max_listen_connections">socket_base::max_listen_connections</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="../socket_base.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,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="max_listen_connections.html" title="socket_base::max_listen_connections">
<link rel="next" href="message_end_of_record.html" title="socket_base::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="../socket_base.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.socket_base.message_do_not_route"></a><a class="link" href="message_do_not_route.html" title="socket_base::message_do_not_route">socket_base::message_do_not_route</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="../socket_base.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,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="message_do_not_route.html" title="socket_base::message_do_not_route">
<link rel="next" href="message_flags.html" title="socket_base::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="../socket_base.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.socket_base.message_end_of_record"></a><a class="link" href="message_end_of_record.html" title="socket_base::message_end_of_record">socket_base::message_end_of_record</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="../socket_base.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,54 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="message_end_of_record.html" title="socket_base::message_end_of_record">
<link rel="next" href="message_out_of_band.html" title="socket_base::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="../socket_base.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.socket_base.message_flags"></a><a class="link" href="message_flags.html" title="socket_base::message_flags">socket_base::message_flags</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.message_flags.h0"></a>
<span><a name="asio.reference.socket_base.message_flags.requirements"></a></span><a class="link" href="message_flags.html#asio.reference.socket_base.message_flags.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="message_flags.html" title="socket_base::message_flags">
<link rel="next" href="message_peek.html" title="socket_base::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="../socket_base.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.socket_base.message_out_of_band"></a><a class="link" href="message_out_of_band.html" title="socket_base::message_out_of_band">socket_base::message_out_of_band</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="../socket_base.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,44 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="message_out_of_band.html" title="socket_base::message_out_of_band">
<link rel="next" href="out_of_band_inline.html" title="socket_base::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="message_out_of_band.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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><h4 class="title">
<a name="asio.reference.socket_base.message_peek"></a><a class="link" href="message_peek.html" title="socket_base::message_peek">socket_base::message_peek</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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="../socket_base.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,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="message_peek.html" title="socket_base::message_peek">
<link rel="next" href="receive_buffer_size.html" title="socket_base::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="message_peek.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.out_of_band_inline"></a><a class="link" href="out_of_band_inline.html" title="socket_base::out_of_band_inline">socket_base::out_of_band_inline</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.out_of_band_inline.h0"></a>
<span><a name="asio.reference.socket_base.out_of_band_inline.examples"></a></span><a class="link" href="out_of_band_inline.html#asio.reference.socket_base.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.socket_base.out_of_band_inline.h1"></a>
<span><a name="asio.reference.socket_base.out_of_band_inline.requirements"></a></span><a class="link" href="out_of_band_inline.html#asio.reference.socket_base.out_of_band_inline.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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_peek.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::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="../socket_base.html" title="socket_base">
<link rel="prev" href="out_of_band_inline.html" title="socket_base::out_of_band_inline">
<link rel="next" href="receive_low_watermark.html" title="socket_base::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="out_of_band_inline.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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.socket_base.receive_buffer_size"></a><a class="link" href="receive_buffer_size.html" title="socket_base::receive_buffer_size">socket_base::receive_buffer_size</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.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.socket_base.receive_buffer_size.h0"></a>
<span><a name="asio.reference.socket_base.receive_buffer_size.examples"></a></span><a class="link" href="receive_buffer_size.html#asio.reference.socket_base.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.socket_base.receive_buffer_size.h1"></a>
<span><a name="asio.reference.socket_base.receive_buffer_size.requirements"></a></span><a class="link" href="receive_buffer_size.html#asio.reference.socket_base.receive_buffer_size.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="../socket_base.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>
@@ -0,0 +1,78 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::receive_low_watermark</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="../socket_base.html" title="socket_base">
<link rel="prev" href="receive_buffer_size.html" title="socket_base::receive_buffer_size">
<link rel="next" href="reuse_address.html" title="socket_base::reuse_address">
</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="receive_buffer_size.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="reuse_address.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.socket_base.receive_low_watermark"></a><a class="link" href="receive_low_watermark.html" title="socket_base::receive_low_watermark">socket_base::receive_low_watermark</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.receive_low_watermark"></a>
Socket
option for the receive low watermark.
</p>
<pre class="programlisting">typedef implementation_defined receive_low_watermark;
</pre>
<p>
Implements the SOL_SOCKET/SO_RCVLOWAT socket option.
</p>
<h6>
<a name="asio.reference.socket_base.receive_low_watermark.h0"></a>
<span><a name="asio.reference.socket_base.receive_low_watermark.examples"></a></span><a class="link" href="receive_low_watermark.html#asio.reference.socket_base.receive_low_watermark.examples">Examples</a>
</h6>
<p>
Setting the option:
</p>
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
...
asio::socket_base::receive_low_watermark option(1024);
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_low_watermark option;
socket.get_option(option);
int size = option.value();
</pre>
<h6>
<a name="asio.reference.socket_base.receive_low_watermark.h1"></a>
<span><a name="asio.reference.socket_base.receive_low_watermark.requirements"></a></span><a class="link" href="receive_low_watermark.html#asio.reference.socket_base.receive_low_watermark.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="receive_buffer_size.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="reuse_address.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>socket_base::reuse_address</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="../socket_base.html" title="socket_base">
<link rel="prev" href="receive_low_watermark.html" title="socket_base::receive_low_watermark">
<link rel="next" href="send_buffer_size.html" title="socket_base::send_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="receive_low_watermark.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="send_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.socket_base.reuse_address"></a><a class="link" href="reuse_address.html" title="socket_base::reuse_address">socket_base::reuse_address</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.reuse_address"></a>
Socket
option to allow the socket to be bound to an address that is already in
use.
</p>
<pre class="programlisting">typedef implementation_defined reuse_address;
</pre>
<p>
Implements the SOL_SOCKET/SO_REUSEADDR socket option.
</p>
<h6>
<a name="asio.reference.socket_base.reuse_address.h0"></a>
<span><a name="asio.reference.socket_base.reuse_address.examples"></a></span><a class="link" href="reuse_address.html#asio.reference.socket_base.reuse_address.examples">Examples</a>
</h6>
<p>
Setting the option:
</p>
<pre class="programlisting">asio::ip::tcp::acceptor acceptor(my_context);
...
asio::socket_base::reuse_address 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::reuse_address option;
acceptor.get_option(option);
bool is_set = option.value();
</pre>
<h6>
<a name="asio.reference.socket_base.reuse_address.h1"></a>
<span><a name="asio.reference.socket_base.reuse_address.requirements"></a></span><a class="link" href="reuse_address.html#asio.reference.socket_base.reuse_address.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="receive_low_watermark.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="send_buffer_size.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>socket_base::send_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="../socket_base.html" title="socket_base">
<link rel="prev" href="reuse_address.html" title="socket_base::reuse_address">
<link rel="next" href="send_low_watermark.html" title="socket_base::send_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="reuse_address.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="send_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.socket_base.send_buffer_size"></a><a class="link" href="send_buffer_size.html" title="socket_base::send_buffer_size">socket_base::send_buffer_size</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.send_buffer_size"></a>
Socket
option for the send buffer size of a socket.
</p>
<pre class="programlisting">typedef implementation_defined send_buffer_size;
</pre>
<p>
Implements the SOL_SOCKET/SO_SNDBUF socket option.
</p>
<h6>
<a name="asio.reference.socket_base.send_buffer_size.h0"></a>
<span><a name="asio.reference.socket_base.send_buffer_size.examples"></a></span><a class="link" href="send_buffer_size.html#asio.reference.socket_base.send_buffer_size.examples">Examples</a>
</h6>
<p>
Setting the option:
</p>
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
...
asio::socket_base::send_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::send_buffer_size option;
socket.get_option(option);
int size = option.value();
</pre>
<h6>
<a name="asio.reference.socket_base.send_buffer_size.h1"></a>
<span><a name="asio.reference.socket_base.send_buffer_size.requirements"></a></span><a class="link" href="send_buffer_size.html#asio.reference.socket_base.send_buffer_size.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="reuse_address.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="send_low_watermark.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>socket_base::send_low_watermark</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="../socket_base.html" title="socket_base">
<link rel="prev" href="send_buffer_size.html" title="socket_base::send_buffer_size">
<link rel="next" href="shutdown_type.html" title="socket_base::shutdown_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="send_buffer_size.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="shutdown_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.socket_base.send_low_watermark"></a><a class="link" href="send_low_watermark.html" title="socket_base::send_low_watermark">socket_base::send_low_watermark</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.send_low_watermark"></a>
Socket
option for the send low watermark.
</p>
<pre class="programlisting">typedef implementation_defined send_low_watermark;
</pre>
<p>
Implements the SOL_SOCKET/SO_SNDLOWAT socket option.
</p>
<h6>
<a name="asio.reference.socket_base.send_low_watermark.h0"></a>
<span><a name="asio.reference.socket_base.send_low_watermark.examples"></a></span><a class="link" href="send_low_watermark.html#asio.reference.socket_base.send_low_watermark.examples">Examples</a>
</h6>
<p>
Setting the option:
</p>
<pre class="programlisting">asio::ip::tcp::socket socket(my_context);
...
asio::socket_base::send_low_watermark option(1024);
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::send_low_watermark option;
socket.get_option(option);
int size = option.value();
</pre>
<h6>
<a name="asio.reference.socket_base.send_low_watermark.h1"></a>
<span><a name="asio.reference.socket_base.send_low_watermark.requirements"></a></span><a class="link" href="send_low_watermark.html#asio.reference.socket_base.send_low_watermark.requirements">Requirements</a>
</h6>
<p>
<span class="emphasis"><em>Header: </em></span><code class="literal">asio/socket_base.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="send_buffer_size.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="shutdown_type.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>socket_base::shutdown_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="../socket_base.html" title="socket_base">
<link rel="prev" href="send_low_watermark.html" title="socket_base::send_low_watermark">
<link rel="next" href="wait_type.html" title="socket_base::wait_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="send_low_watermark.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="wait_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.socket_base.shutdown_type"></a><a class="link" href="shutdown_type.html" title="socket_base::shutdown_type">socket_base::shutdown_type</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.shutdown_type"></a>
Different
ways a socket may be shutdown.
</p>
<pre class="programlisting">enum shutdown_type
</pre>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.shutdown_type.shutdown_receive"></a>
<a class="indexterm" name="asio.indexterm.socket_base.shutdown_type.shutdown_send"></a>
<a class="indexterm" name="asio.indexterm.socket_base.shutdown_type.shutdown_both"></a>
</p>
<h6>
<a name="asio.reference.socket_base.shutdown_type.h0"></a>
<span><a name="asio.reference.socket_base.shutdown_type.values"></a></span><a class="link" href="shutdown_type.html#asio.reference.socket_base.shutdown_type.values">Values</a>
</h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">shutdown_receive</span></dt>
<dd><p>
Shutdown the receive side of the socket.
</p></dd>
<dt><span class="term">shutdown_send</span></dt>
<dd><p>
Shutdown the send side of the socket.
</p></dd>
<dt><span class="term">shutdown_both</span></dt>
<dd><p>
Shutdown both send and receive on the socket.
</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="send_low_watermark.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="wait_type.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
@@ -0,0 +1,72 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>socket_base::wait_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="../socket_base.html" title="socket_base">
<link rel="prev" href="shutdown_type.html" title="socket_base::shutdown_type">
<link rel="next" href="_socket_base.html" title="socket_base::~socket_base">
</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="shutdown_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="_socket_base.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="asio.reference.socket_base.wait_type"></a><a class="link" href="wait_type.html" title="socket_base::wait_type">socket_base::wait_type</a>
</h4></div></div></div>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.wait_type"></a>
Wait types.
</p>
<pre class="programlisting">enum wait_type
</pre>
<p>
<a class="indexterm" name="asio.indexterm.socket_base.wait_type.wait_read"></a>
<a class="indexterm" name="asio.indexterm.socket_base.wait_type.wait_write"></a>
<a class="indexterm" name="asio.indexterm.socket_base.wait_type.wait_error"></a>
</p>
<h6>
<a name="asio.reference.socket_base.wait_type.h0"></a>
<span><a name="asio.reference.socket_base.wait_type.values"></a></span><a class="link" href="wait_type.html#asio.reference.socket_base.wait_type.values">Values</a>
</h6>
<div class="variablelist">
<p class="title"><b></b></p>
<dl>
<dt><span class="term">wait_read</span></dt>
<dd><p>
Wait for a socket to become ready to read.
</p></dd>
<dt><span class="term">wait_write</span></dt>
<dd><p>
Wait for a socket to become ready to write.
</p></dd>
<dt><span class="term">wait_error</span></dt>
<dd><p>
Wait for a socket to have error conditions pending.
</p></dd>
</dl>
</div>
<p>
For use with <code class="computeroutput">basic_socket::wait()</code> and <code class="computeroutput">basic_socket::async_wait()</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="shutdown_type.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u" href="../socket_base.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="_socket_base.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>