<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>octech</author_name>
  <author_url>https://blog.hatena.ne.jp/octech/</author_url>
  <blog_title>octech</blog_title>
  <blog_url>https://octech.hatenadiary.org/</blog_url>
  <categories>
    <anon>WinSock</anon>
  </categories>
  <description>以前に勉強したのですが、WinSockのブロック処理のうちacceptやrecvの非同期化は割と直感的に実装が可能です。 今回ちょっと頭を悩ましたというか、どういう風に使えばいいのか分からなかったのが、sendの非同期処理化です。 FD_WRITEイベントが発生するのはどういうときなのか？ということなのですが、これは「send可能になった」という瞬間に発生するイベントです。では、send不可能、というのはどういうときか。それがWSAEWOULDBLOCKというエラーが発生しているときなのです。 つまり、擬似コードで書くと以下のようになります。 // 非同期初期化. WSAAsyncSelect…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foctech.hatenadiary.org%2Fentry%2F20070710%2F1184054931&quot; title=&quot;非同期sendの処理の流れメモ - octech&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>2007-07-10 17:08:51</published>
  <title>非同期sendの処理の流れメモ</title>
  <type>rich</type>
  <url>https://octech.hatenadiary.org/entry/20070710/1184054931</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
