Description | Hierarchy | Fields | Methods | Properties |
type TSNTPSend = class(TSynaClient)
, include time synchronisation. It can send NTP or SNTP time queries, or it can receive NTP broadcasts too.
Note: Are you missing properties for specify server address and port? Look to parent TSynaClient too!
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function DecodeTs(Nsec, Nfrac: Longint): TDateTime; |
![]() |
procedure EncodeTs(dt: TDateTime; var Nsec, Nfrac: Longint); |
![]() |
function GetBroadcastNTP: Boolean; |
![]() |
function GetNTP: Boolean; |
![]() |
function GetSNTP: Boolean; |
![]() |
constructor Create; |
![]() |
function DecodeTs(Nsec, Nfrac: Longint): TDateTime; |
Decode 128 bit timestamp used in NTP packet to TDateTime type.
![]() |
destructor Destroy; override; |
![]() |
procedure EncodeTs(dt: TDateTime; var Nsec, Nfrac: Longint); |
Decode TDateTime type to 128 bit timestamp used in NTP packet.
![]() |
function GetBroadcastNTP: Boolean; |
Wait for broadcast NTP packet. If all OK, result is True
and
NTPReply and NTPTime are valid.
![]() |
function GetNTP: Boolean; |
Send request to TargetHost and wait for reply. If all
is OK, then result is True
and NTPReply and NTPTime are
valid. Result time is after all needed corrections.
![]() |
function GetSNTP: Boolean; |
Send request to TargetHost and wait for reply. If all
is OK, then result is True
and NTPReply and NTPTime are
valid.
![]() |
property MaxSyncDiff: double; |
![]() |
property NTPDelay: Double; |
![]() |
property NTPOffset: Double; |
![]() |
property NTPReply: TNtp; |
![]() |
property NTPTime: TDateTime; |
![]() |
property Sock: TUDPBlockSocket; |
![]() |
property SyncTime: Boolean; |
![]() |
property MaxSyncDiff: double; |
Define allowed maximum difference between your time and remote time for synchronising time. If difference is bigger, your system time is not changed!
![]() |
property NTPDelay: Double; |
Delay between your computer and remote NTP or SNTP server.
![]() |
property NTPOffset: Double; |
Offset between your computer and remote NTP or SNTP server.
![]() |
property NTPReply: TNtp; |
Holds last received NTP packet.
![]() |
property NTPTime: TDateTime; |
Date and time of remote NTP or SNTP server. (UTC time!!!)
![]() |
property Sock: TUDPBlockSocket; |
Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc.
![]() |
property SyncTime: Boolean; |
If True
, after successfull getting time is local computer clock
synchronised to given time.
For synchronising time you must have proper rights! (Usually Administrator)