4#ifndef WATERLINKEDSONAR_NTP_SNTP_HPP
5#define WATERLINKEDSONAR_NTP_SNTP_HPP
12namespace waterlinked::sonar {
24std::optional<std::chrono::system_clock::time_point>
sntp_query(
25 const std::string& server, std::chrono::milliseconds timeout,
26 std::uint16_t port = 123);
std::optional< std::chrono::system_clock::time_point > sntp_query(const std::string &server, std::chrono::milliseconds timeout, std::uint16_t port=123)
Asks an NTP server for its time with one SNTP (RFC 4330) request, e.g.