<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iwadon</author_name>
  <author_url>https://blog.hatena.ne.jp/iwadon/</author_url>
  <blog_title>A mere hateblo</blog_title>
  <blog_url>https://iwadon.hateblo.jp/</blog_url>
  <categories>
    <anon>c</anon>
    <anon>programming</anon>
    <anon>network</anon>
    <anon>ruby</anon>
  </categories>
  <description>ソケットを使ったサーバー・クライアントを実装するとして、サーバーに複数のクライアントから接続を求められた場合、selectがどのような動作をするのか確かめたくなった。まずはサーバーから: #include &lt;fcntl.h&gt; #include &lt;netinet/in.h&gt; #include &lt;signal.h&gt; #include &lt;stdio.h&gt; #include &lt;sys/select.h&gt; #include &lt;sys/socket.h&gt; #include &lt;unistd.h&gt; static volatile sig_atomic_t loop_flag = !0; void sigint…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiwadon.hateblo.jp%2Fentry%2F2014%2F03%2F20%2F010642&quot; title=&quot;複数のクライアントから接続を受ける際のselect(2)の動作を確認した - A mere hateblo&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>2014-03-20 01:06:42</published>
  <title>複数のクライアントから接続を受ける際のselect(2)の動作を確認した</title>
  <type>rich</type>
  <url>https://iwadon.hateblo.jp/entry/2014/03/20/010642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
