<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ebi216</author_name>
  <author_url>https://blog.hatena.ne.jp/ebi216/</author_url>
  <blog_title>車輪の再発明</blog_title>
  <blog_url>https://ebi216.hateblo.jp/</blog_url>
  <categories>
    <anon>Powershell</anon>
    <anon>NTP</anon>
  </categories>
  <description>NTPの通信をテストしたいのにWindows PCしかない残念な現場があったので、PowershellでNTPサーバを書いてみました。 前提 今どきのWindowsなら必ず動くであろうPowershell V2.0で実装。 NTPサーバが待ち受けするUDP/123ポートはWindows Timeというサービスが使用しているので、スクリプトを実行するときはこいつを止める必要があります。 通信の待ち受けは無限ループになっているので終了は×でウインドウを閉じて強制終了。 ctrl+cでもいいんですが、リスニングしていたポートを解放する処理$client.close()がうまく実装できなかったので、次…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Febi216.hateblo.jp%2Fentry%2F2018%2F03%2F18%2F011725&quot; title=&quot;PowershellでNTPサーバを書く - 車輪の再発明&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>https://qiita-image-store.s3.amazonaws.com/0/142321/b8dfb53c-121f-bc7e-5a29-827446049b22.jpeg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-03-18 01:17:25</published>
  <title>PowershellでNTPサーバを書く</title>
  <type>rich</type>
  <url>https://ebi216.hateblo.jp/entry/2018/03/18/011725</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
