メインコンテンツまでスキップ

TCP 経由での使用

TCP 経由で使用する場合、タイム・サービスは次のように動作する。

S: Listen on port 37 (45 octal).

U: Connect to port 37.

S: Send the time as a 32 bit binary number.

U: Receive the time.

U: Close the connection.

S: Close the connection.

サーバはポート 37 で接続を待ち受ける。接続が確立されると、サーバは 32 ビットの時刻値を返して接続を閉じる。サーバが自サイトの時刻を判定できない場合は、接続を拒否するか、何も送らずに接続を閉じるべきである。