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