Initial NTP protocol functionality

This commit is contained in:
Dan Paulat 2025-08-09 01:19:51 -05:00
parent 5a8ebfa7ae
commit 94d81c0c6b
7 changed files with 318 additions and 5 deletions

View file

@ -0,0 +1,21 @@
#include <scwx/network/ntp_client.hpp>
#include <gtest/gtest.h>
namespace scwx
{
namespace network
{
TEST(NtpClient, Poll)
{
NtpClient client {};
client.Open("time.nist.gov", "123");
//client.Open("pool.ntp.org", "123");
//client.Open("time.windows.com", "123");
client.Poll();
}
} // namespace network
} // namespace scwx

View file

@ -17,7 +17,8 @@ set(SRC_AWIPS_TESTS source/scwx/awips/coded_location.test.cpp
set(SRC_COMMON_TESTS source/scwx/common/color_table.test.cpp
source/scwx/common/products.test.cpp)
set(SRC_GR_TESTS source/scwx/gr/placefile.test.cpp)
set(SRC_NETWORK_TESTS source/scwx/network/dir_list.test.cpp)
set(SRC_NETWORK_TESTS source/scwx/network/dir_list.test.cpp
source/scwx/network/ntp_client.test.cpp)
set(SRC_PROVIDER_TESTS source/scwx/provider/aws_level2_data_provider.test.cpp
source/scwx/provider/aws_level3_data_provider.test.cpp
source/scwx/provider/iem_api_provider.test.cpp