<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>C++</anon>
  </categories>
  <description>Boost.Asioで送受信／読み書き、とくに受信／読み込みを行う場合には、「バッファの消費」という考え方に気をつける必要があります。 以下のようなケースを考えてみます。 これは延々と受信を繰り返すだけの単純なプログラムです。 #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;boost/asio.hpp&gt; #include &lt;boost/bind.hpp&gt; namespace asio = boost::asio; using asio::ip::tcp; class Client { asio::io_service&amp; io_service_;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20110830%2F1314716828&quot; title=&quot; Boost.Asio バッファの消費 - Faith and Brave - C++で遊ぼう&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-30 00:07:08</published>
  <title> Boost.Asio バッファの消費</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20110830/1314716828</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
