class="link" href="bytes_readable.html#boost_asio.reference.basic_socket.bytes_readable.example">Example</a>
        </h6>
<pre class="programlisting">boost::asio::ip::tcp::socket socket(io_context);
...
boost::asio::socket_base::bytes_readable command(true);
socket.io_control(command);
std::size_t bytes_readable = command.get();
</pre>
<h6>
<a name="boost_asio.reference.basic_socket.bytes_readable.h1"></a>
          <span class="phrase"><a name="boost_asio.reference.basic_socket.bytes_readable.requirements