<?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>ゲームループと書いていますが、要はタイマーによる定期実行プログラムです。 io_service::run()の使いどころで嵌りました。async系関数を次々記述していき、最後にio_service::run()を使用することで、非同期処理が終わるまで待機することになるので、ゲームループでフレームごとに通信を行う場合には、フレームの最初でio_service::reset()を呼んで非同期処理をリセットし、フレームの最後でio_service::run()を呼び、非同期処理が終わるまで待機することになります。 void update() { io_service.reset(); async_p…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20110325%2F1301036991&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-03-25 16:09:51</published>
  <title> Boost.Asio ゲームループで非同期操作を行う</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20110325/1301036991</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
