Library for querying NTP servers.
#include "ntp.h"
struct ntp_packet packet;
// Use default server and port
ntp_query(&packet, NULL, NULL);
// Use specified server and port
ntp_query(&packet, "pool.ntp.org", "123");
See main.c for an example.
Library for querying NTP servers.
#include "ntp.h"
struct ntp_packet packet;
// Use default server and port
ntp_query(&packet, NULL, NULL);
// Use specified server and port
ntp_query(&packet, "pool.ntp.org", "123");
See main.c for an example.