Home Units Hierarchy Routines All identifiers

Class unaSNTP

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaSNTP = class(unaThread)

Description

SNTP implementation class.

Hierarchy

Overview

Methods

Public function getRefCodeAsString(): string;
Public function nowNTP(out ntp: unaNTP_timestamp; adjustOffest: bool = true): bool;
Public function synch(const server: string = 'pool.ntp.org'): int;
Protected function execute(threadID: unsigned): int; override;
Public procedure AfterConstruction(); override;
Public procedure BeforeDestruction(); override;

Properties

Public property clockOffset: int64 read f_co;
Public property refCode: unsigned read f_refCode;
Public property roundtripDelay: int64 read f_rtd;
Public property stratum: unsigned read f_stratum;

Description

Methods

Public function getRefCodeAsString(): string;
 
Public function nowNTP(out ntp: unaNTP_timestamp; adjustOffest: bool = true): bool;
 
Public function synch(const server: string = 'pool.ntp.org'): int;

Posts unicast NTP request to specified NTP server.

Parameters
server
NTP server to use. Default is 'pool.ntp.org'
Returns

Number of IPs the host resolves to.

Protected function execute(threadID: unsigned): int; override;
 
Public procedure AfterConstruction(); override;
 
Public procedure BeforeDestruction(); override;
 

Properties

Public property clockOffset: int64 read f_co;

ms

Public property refCode: unsigned read f_refCode;

0 - kiss-o'-death 1 - primary source 2-15 - synchronized by NTP/SNTP 16-254 - reserved 255 - query in progress, please wait

Public property roundtripDelay: int64 read f_rtd;
 
Public property stratum: unsigned read f_stratum;

ms

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09