Doxygen Book
ntputil.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
13 #ifndef __NNS_NTP_UTIL_H__
14 #define __NNS_NTP_UTIL_H__
15 
16 #include <stdint.h>
17 #include <time.h>
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
21 
30 int64_t
31 ntputil_get_epoch (uint32_t hnums, char **hnames, uint16_t * ports);
32 
37 uint32_t
38 _convert_to_host_byte_order (uint32_t in);
39 
40 #ifdef __cplusplus
41 }
42 #endif /* __cplusplus */
43 #endif /* __NNS_NTP_UTIL_H__ */
ntputil_get_epoch
int64_t ntputil_get_epoch(uint32_t hnums, char **hnames, uint16_t *ports)
Get NTP timestamps from the given or public NTP servers.
Definition: ntputil.c:140
_convert_to_host_byte_order
uint32_t _convert_to_host_byte_order(uint32_t in)
Converting network byte order to host byte order.
Definition: ntputil.c:125