A header file of NTP utility functions. More...
#include <stdint.h>
#include <time.h>
Go to the source code of this file.
Functions | |
int64_t | ntputil_get_epoch (uint32_t hnums, char **hnames, uint16_t *ports) |
Get NTP timestamps from the given or public NTP servers. More... | |
uint32_t | _convert_to_host_byte_order (uint32_t in) |
Converting network byte order to host byte order. More... | |
A header file of NTP utility functions.
Copyright (C) 2021 Wook Song wook1 6.so ng@sa msun g.com
Definition in file ntputil.h.
uint32_t _convert_to_host_byte_order | ( | uint32_t | in | ) |
int64_t ntputil_get_epoch | ( | uint32_t | hnums, |
char ** | hnames, | ||
uint16_t * | ports | ||
) |
Get NTP timestamps from the given or public NTP servers.
[in] | hnums | A number of hostname and port pairs. If 0 is given, the NTP server pool will be used. |
[in] | hnames | A list of hostname |
[in] | ports | A list of port |
Definition at line 140 of file ntputil.c.