Classe TSNTPSend
Unit
Declaração
type TSNTPSend = class(TSynaClient)
Descrição
Implementation of NTP and SNTP client protocol
, 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!
Hierarquia
- TObject
- TSynaClient
- TSNTPSend
Visão Geral
Métodos
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function DecodeTs(Nsec, Nfrac: Longint): TDateTime; |
![]() |
procedure EncodeTs(dt: TDateTime; var Nsec, Nfrac: Longint); |
![]() |
function GetSNTP: Boolean; |
![]() |
function GetNTP: Boolean; |
![]() |
function GetBroadcastNTP: Boolean; |
Propriedades
![]() |
property NTPReply: TNtp read FNTPReply; |
![]() |
property NTPTime: TDateTime read FNTPTime; |
![]() |
property NTPOffset: Double read FNTPOffset; |
![]() |
property NTPDelay: Double read FNTPDelay; |
![]() |
property MaxSyncDiff: double read FMaxSyncDiff write FMaxSyncDiff; |
![]() |
property SyncTime: Boolean read FSyncTime write FSyncTime; |
![]() |
property Sock: TUDPBlockSocket read FSock; |
Descrição
Métodos
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function DecodeTs(Nsec, Nfrac: Longint): TDateTime; |
Decode 128 bit timestamp used in NTP packet to TDateTime type. |
![]() |
procedure EncodeTs(dt: TDateTime; var Nsec, Nfrac: Longint); |
Decode TDateTime type to 128 bit timestamp used in NTP packet. |
![]() |
function GetSNTP: Boolean; |
Send request to TSynaClient.TargetHost and wait for reply. If all is OK, then result is |
![]() |
function GetNTP: Boolean; |
Send request to TSynaClient.TargetHost and wait for reply. If all is OK, then result is |
![]() |
function GetBroadcastNTP: Boolean; |
Wait for broadcast NTP packet. If all OK, result is |
Propriedades
![]() |
property NTPReply: TNtp read FNTPReply; |
Holds last received NTP packet. |
![]() |
property NTPTime: TDateTime read FNTPTime; |
Date and time of remote NTP or SNTP server. (UTC time!!!) |
![]() |
property NTPOffset: Double read FNTPOffset; |
Offset between your computer and remote NTP or SNTP server. |
![]() |
property NTPDelay: Double read FNTPDelay; |
Delay between your computer and remote NTP or SNTP server. |
![]() |
property Sock: TUDPBlockSocket read FSock; |
Socket object used for TCP/IP operation. Good for seting OnStatus hook, etc. |
Gerado por PasDoc 0.16.0.