CPJNSNTPClient Changelog

What's new in CPJNSNTPClient 1.25

Apr 28, 2022
  • Updated copyright details.
  • Updated the code to use C++ uniform initialization for all variable declarations.

New in CPJNSNTPClient 1.24 (May 3, 2020)

  • Fixed various Clang-Tidy static code analysis warnings in the code.

New in CPJNSNTPClient 1.23 (Mar 12, 2020)

  • Fixed various Clang-Tidy static code analysis warnings in the code.

New in CPJNSNTPClient 1.22 (Dec 20, 2019)

  • Fixed various Clang-Tidy static code analysis warnings in the code.
  • Updated initialization of various structs to use C++ 11 list initialization.

New in CPJNSNTPClient 1.21 (Oct 30, 2019)

  • Fixed a compiler warning in the EnableSetTimePrivilege method. Thanks to Mai Duc Hung for reporting this issue.
  • Changed macro references of "CWSOCKET_MFC_EXTENSTIONS" to "CWSOCKET_MFC_EXTENSIONS". Thanks to Mai Duc Hung for reporting this issue.

New in CPJNSNTPClient 1.20 (Oct 29, 2019)

  • Updated the code to correctly handle SNTP timestamps greater than the first SNTP epoch date of 6:28:16AM on 7 February 2036. Thanks to Mai Duc Hung for reporting this issue.
  • Replaced BOOL with bool throughout the code.

New in CPJNSNTPClient 1.19 (Sep 17, 2019)

  • Fixed a number of compiler warnings when the code is compiled with VS 2019 Preview

New in CPJNSNTPClient 1.18 (Jun 3, 2019)

  • Updated copyright details.
  • Updated the code to clean compile on VC 2019

New in CPJNSNTPClient 1.17 (Aug 23, 2018)

  • Updated copyright details.
  • Fixed a number of C++ core guidelines compiler warnings. These changes mean that the code will now only compile on VC 2017 or later.
  • Removed PJNSNTP_NO_PRIVILEGE_CODE preprocessor from codebase

New in CPJNSNTPClient 1.16 (Aug 23, 2018)

  • Updated copyright details.
  • Verified the code compiles cleanly in VC 2015
  • Added SAL annotations to all the code

New in CPJNSNTPClient 1.15 (May 11, 2015)

  • Updated the code to clean compile on VC 2010 and later
  • Updated the code to compile with the latest version of the CWSocket class
  • Removed all the code which refers to a proxy connection
  • Updated the code to operate optionally independent of MFC. If the preprocessor value "CWSOCKET_MFC_EXTENSTIONS" is not defined then the SNTP code will not use MFC, while if it is defined then the code will use MFC. This preprocessor value is used to control the MFC mode of the CWSocket class.
  • CPJNSNTPClient::SetClientTime now preserves the last error value and the sample app now reports this value.
  • Optimized the implementation of CPJNNTPTime::MsToNtpFraction, NtpFractionToMs & NtpFractionToSecond methods. These optimizations have got rid of the the need for the previous m_MsToNTP lookup table.
  • Reworked the CPJNNTPTime::CPJNNTPTime(const SYSTEMTIME& st) constructor to use SystemTimeToFileTime Windows API
  • Reworked the CPJNNTPTime::operator SYSTEMTIME() method to use FileTimeToSystemTime Windows API
  • The sample app now displays the stratum and leap indicator values from the received SNTP response.

New in CPJNSNTPClient 1.14 (May 11, 2015)

  • Updated copyright details.
  • Included missing VC 2005 solution and project files in the download.

New in CPJNSNTPClient 1.13 (Mar 10, 2009)

  • Updated copyright details.
  • Updated sample app to clean compile on VC 2008
  • Removed VC 6 style classwizard comments from the code.
  • The code has now been updated to support VC 2005 or later only.
  • Code now compiles cleanly using Code Analysis (/analyze)