/ntp

Library for querying NTP servers

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ntp

Library for querying NTP servers.

Usage

#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");

Example

See main.c for an example.