<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>またまたTCPネタ。 www.amazon.co.jp を読んでいたら出てきた、shutdown(2)が色々と気になったので実験してみた。manを引くとこんな感じ。ざっくり言うとsocketに対して送信を行わない通知をしたら受信をしない通知をしたりするという機能となっています。SHUT_RDとSHUT_WRとSHUT_RDWRでそれぞれどう言うことが起きてるのかをtcpdumpを使って観測してみます。 書式 #include &lt;sys/socket.h&gt; int shutdown(int sockfd, int how); 説明 shutdown() は、 sockfd に関連づけられているソ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F12%2F19%2F204814&quot; title=&quot;tcp shutdown(2)の動きを見たりする - 地方エンジニアの学習日記&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>2021-12-19 20:48:14</published>
  <title>tcp shutdown(2)の動きを見たりする</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/12/19/204814</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
