8#ifndef ZEPHYR_INCLUDE_NET_SNTP_H_
9#define ZEPHYR_INCLUDE_NET_SNTP_H_
11#ifdef CONFIG_NET_SOCKETS_POSIX_NAMES
ZTEST_BMEM int timeout
Definition: main.c:31
size_t socklen_t
Definition: net_ip.h:161
void sntp_close(struct sntp_ctx *ctx)
Release SNTP context.
int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *time)
Perform SNTP query.
int sntp_init(struct sntp_ctx *ctx, struct sockaddr *addr, socklen_t addr_len)
Initialize SNTP context.
int sntp_simple(const char *server, uint32_t timeout, struct sntp_time *time)
Convenience function to query SNTP in one-shot fashion.
time_t time(time_t *tloc)
BSD Sockets compatible API definitions.
#define pollfd
Definition: poll.h:15
__UINT32_TYPE__ uint32_t
Definition: stdint.h:60
__UINT64_TYPE__ uint64_t
Definition: stdint.h:61
int nfds
Definition: sntp.h:34
struct pollfd fds[1]
Definition: sntp.h:33
int fd
Definition: sntp.h:35
struct sntp_ctx::@188 sock
uint32_t expected_orig_ts
Definition: sntp.h:42
uint64_t seconds
Definition: sntp.h:47
uint32_t fraction
Definition: sntp.h:48