Author | Topic: NTP | |
---|---|---|
Rafaele Tammeo | NTP on Fri, 15 Feb 2013 13:54:36 +0100 Hi, I need to contact a network time server via the NTP to synchronize the time. Are there any Xbase++ classes / examples available to do this? Thank you Regards Raffaele | |
Steven Scheffer | Re: NTP on Mon, 18 Feb 2013 16:25:32 +0100 Have you tried using the NTP client in Windows? Regards, Steven --> Start --> [Regedit .... ] uitvoeren [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type] Set value to NTP. (default: NTP, type: REG_SZ) [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config] "AnnounceFlags"=dword: dec,4 Set the value to 4 for reliable time source (default: hex,a, dec,10) 0 Not a time server • 1 Always a time server • 2 Automatic time server, meaning the role is decided by Windows Time Service • 4 Always a reliable time server • 8 Automatic reliable time server, meaning the role is decided by Windows Time Service The default is 10, meaning that Windows Time Service decides the role. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPClient] "SpecialPollInterval"=dword: dec,604800 Set this to the period in seconds that the Windows machine should poll the NTP server. A recommended value is 3600 seconds which equates to every hour. Specifies the special poll interval in seconds for peers that have been configured manually. When a special poll is enabled, Windows Time Service will use this poll interval instead of a dynamic one that is determined by synchronization algorithms built into Windows Time Service. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPServer] "Enabled"=dword: dec,1 Change this value to 1. (default: 1, type: REG_DWORD) HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer Enter IP address or domainname. (default: time.windows.com,0x9 ) --> [ntp.xs4all.nl,0x1] This registry entry specifies a space-delimited list of stratum 1 time servers from which the local computer can obtain reliable time stamps. The list may consist of one or more DNS names or IP addresses (if DNS names are used then you must append,0x1 to the end of each DNS name). Establishes a space-delimited list of peers from which a computer obtains time stamps, consisting of one or more DNS names or IP addresses per line. Computers connected to a domain must synchronize with a more reliable time source, such as the official U.S. time clock. This setting is used only when Type is set to NTP or AllSync. 0x01 SpecialInterval 0x02 UseAsFallbackOnly 0x04 SymmetricActive 0x08 NTP request in Client mode Stop en start de service --> Start --> Configuration --> Systemmanagement --> Services --> naam: Windows Time (stop, start) Tab: Common Opstarttype: Automatic --> Start Rafaele Tammeo wrote in message news:513f3230$19e49f25$b2d@news.alaska-software.com... >Hi, > >I need to contact a network time server via the NTP to synchronize the time. >Are there any Xbase++ classes / examples available to do this? > >Thank you > >Regards >Raffaele | |
Rafaele Tammeo | Re: NTP on Wed, 20 Feb 2013 09:17:35 +0100 On 18/02/2013 16.25, Steven Scheffer wrote: > Have you tried using the NTP client in Windows? > > Regards, > Steven > Hi Steven, thank you for your answer but I just need to know the time of a NTP Server so I can't use your tip because it changes the local machine time. Regards Raffaele |