SYNAPSE - Synchronous TCP/IP Library for Delphi
Other related information can be found at http://www.ararat.cz/synapse/
Class: TSNTPSend
- Properties:
- Timeout:integer
Define timeout in millisecond for all SNTP operations. Default value is 5 seconds.
- SNTPhost:String
Address of SNTP or NTP server (IP address or domain name) where you want to connect. If use broadcast client, accepts only broadcast packet from this address (in this case, use only IP address!). For accepting any broadcast packets, use value '0.0.0.0'.
- NTPReply:TNtp
Hold last received NTP packet.
- NTPTime:TDateTime
Date and time of remote NTP or SNTP server. (UTC time!!!)
- Methods:
- Function DecodeTs(nsec,nfrac:Longint):tdatetime
Decode 128 bit timestamp used in NTP packet to TDatetime type.
- Function GetNTP:Boolean
Send request to Sntphost and wait for reply. If all OK, result is true and NTPReply and NTPTime are valid.
- Function GetBroadcastNTP:Boolean
Wait for broadcast NTP packet. If all OK, result is true and NTPReply and NTPTime are valid.