RFC867 - Daytime Protocol

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Network Working Group J. Postel

Request for Comments: 867 ISI

May 1983

Daytime Protocol

This RFCspecifies a standard for the ARPA Internet community. Hosts on

the ARPA Internet that choose to implement a Daytime Protocol are

eXPected to adopt and implement this standard.

A useful debugging and measurement tool is a daytime service. A daytime

service simply sends a the current date and time as a character string

without regard to the input.

TCP Based Daytime Service

One daytime service is defined as a connection based application on

TCP. A server listens for TCP connections on TCP port 13. Once a

connection is established the current date and time is sent out the

connection as a ascii character string (and any data received is

thrown away). The service closes the connection after sending the

quote.

UDP Based Daytime Service

Another daytime service service is defined as a datagram based

application on UDP. A server listens for UDP datagrams on UDP port

13. When a datagram is received, an answering datagram is sent

containing the current date and time as a ASCII character string (the

data in the received datagram is ignored).

Daytime Syntax

There is no specific syntax for the daytime. It is recommended that

it be limited to the ASCII printing characters, space, carriage

return, and line feed. The daytime should be just one line.

One popular syntax is:

Weekday, Month Day, Year Time-Zone

Example:

Tuesday, February 22, 1982 17:37:43-PST

RFC867 May 1983

Daytime Protocol

Another popular syntax is that used in SMTP:

dd mmm yy hh:mm:ss zzz

Example:

02 FEB 82 07:59:01 PST

NOTE: For machine useful time use the Time Protocol (RFC-868).

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航