3#ifndef _TIME_SHIELD_UDP_TRANSPORT_HPP_INCLUDED
4#define _TIME_SHIELD_UDP_TRANSPORT_HPP_INCLUDED
Abstract UDP transport interface for NTP queries.
virtual ~IUdpTransport()
Virtual destructor.
virtual bool transact(const UdpRequest &req, int &out_error_code) noexcept=0
Send request and receive response over UDP.
Main namespace for the Time Shield library.
UDP request parameters for NTP transactions.
std::size_t send_size
Outgoing payload size in bytes.
int timeout_ms
Receive timeout in milliseconds.
std::string host
Target host name or IP address.
std::size_t recv_size
Receive buffer size in bytes.
const void * send_data
Pointer to outgoing payload.
void * recv_data
Pointer to receive buffer.