Indy 9 | Content | Index | Reference

TIdTimeServer
Hierarchy, Properties, Methods, Events, See Also, Unit: IdTimeServer
Implements a Time protocol server.

    TIdTimeServer = class(TIdTCPServer)

Unit
IdTimeServer
Description
TIdTimeServer is a TIdTCPServer descendant that provides a server implementation of the Time Protocol as described in the Internet Standard document:

- RFC 868 - Time Protocol (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.

TIdTimeServer.BaseDate
TIdTimeServer
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.

TIdTimeServer.DefaultPort
TIdTimeServer, 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 TIdTimeServer to establish the default port number for the protocol (IdPORT_TIME).

TIdTimeServer.Create
TIdTimeServer, See Also
Constructor for the object instance.

    constructor Create(AOwner: TComponent); override;

Parameters
AOwner: TComponent
Owner of the object instance.
Description
Create is the constructor for the object instance., and initializes a new TIdTimeServer 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.