DAYTIME協定(英語:Daytime protocol)是一個1983年在RFC 867內定義的通訊協定

主機可以用傳輸控制協定(TCP)或使用者資料報協定(UDP)的 13連接支援DAYTIME協定的伺服器。

伺服器會以ASCII字元傳回當時日期及時間,格式未要求,可能類似:星期, 月 日, 年 時區。例如:Tuesday, February 22, 1982 18:45:59-PST

它也用作測試電腦網路的聯通性,現在測試網路的方法已經轉為用pingtraceroute

Inetd實現

類UNIX作業系統中,DAYTIME時間伺服器通常內建在inetd英語inetd(或xinetd守護行程中。該服務通常非預設啟用的。在/etc/inetd.conf檔案中添加下列行並告知inetd重新載入設定檔後可以開啟此服務:

daytime   stream  tcp     nowait  root    internal
daytime   stream  tcp6    nowait  root    internal
daytime   dgram   udp     wait    root    internal
daytime   dgram   udp6    wait    root    internal

參看

外部連結

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.