<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>matsumoto_r</author_name>
  <author_url>https://blog.hatena.ne.jp/matsumoto_r/</author_url>
  <blog_title>人間とウェブの未来</blog_title>
  <blog_url>https://hb.matsumoto-r.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>hb.matsumoto-r.jp 以下のエントリは一部誤認が含まれていたので、上記エントリにその旨をまとめましたので御覧ください。 とある事情でミドルウェア上から高速にリモートホストのポートのListenチェックをしたくなりました。ローカルホストのポートであれば、/procやnetlinkなどを使って素早くチェックする方法がありますが、今回は対象がリモートホストなのでソケットでなんとかする必要があります。 そこで、誰もがまず思いつくのは、connect()システムコールによってリモートホストのポートに接続しにいって、connectできればOK、できなければNGと判定する方法があり得るでしょう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhb.matsumoto-r.jp%2Fentry%2F2017%2F02%2F13%2F165646&quot; title=&quot;高速にリモートホストのポートがListenしているかを調べる - 人間とウェブの未来&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>2017-02-13 16:56:46</published>
  <title>高速にリモートホストのポートがListenしているかを調べる</title>
  <type>rich</type>
  <url>https://hb.matsumoto-r.jp/entry/2017/02/13/165646</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
