Indy 9
TIdTimeUDPServer
Hierarchy, Properties, Methods, Events, See Also, Unit: IdTimeUDPServer
Implements a UDP version of the Time protocol server.
TIdTimeUDPServer = class(TIdUDPServer)
Unit
IdTimeUDPServer
Description
TIdTimeServerUDP is a TIdTCPServer descendant that provides a server implementation of the UDP version of the Time Protocol as described in the Internet Standard document:

  • Time Protocol, RFC 868 (http://www.rfc-editor.org/rfc/rfc868.txt)

Time is a simple protocol for synchronizing time on a local network. If you need the time and day only in a human readable form, we recommend that you use the TIdDayTimeServer component.

Note: The Time protocol in its current form cannot handle most dates after the year 2035. This limitation is stated in RFC 868.


TIdTimeUDPServer.BaseDate
TIdTimeUDPServer
Base date used for Time calculations.
property BaseDate: TDateTime;
Description
BaseDate is a TDateTime property used to establish the initial Date for Time server calculations. If both the server and client are based from the same date which is higher than the original date, you can extend its use beyond the year 2035. You should change this property only when sure that the time client uses the same value for calculating the date and time.

TIdTimeUDPServer.DefaultPort
TIdTimeUDPServer, See Also
Port number for the Time protocol.
property DefaultPort: integer;
Description
DefaultPort is an Integer property that represents the port number used by the Time protocol. DefaultPort is redefined in TIdTimeUDPServer to establish the default port number for the protocol (IdPORT_TIME).

TIdTimeUDPServer.Create
TIdTimeUDPServer
Constructor for the object instance.
constructor Create(axOwner: TComponent); override;
Parameters
AOwner
Owner of the object instance.
Description
Create is the constructor for the object instance., and initializes a new TIdTimeServerUDP component. Create sets the default port to the standard port number used for the Time protocol (IdPORT_TIME). Create also sets the BaseTime property to Jan 1, 1900 which is specified by the Time protocol.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.