Zephyr Project API  3.2.0
A Scalable Open Source RTOS
sntp.h File Reference

Go to the source code of this file.

Data Structures

struct  sntp_ctx
 
struct  sntp_time
 

Functions

int sntp_init (struct sntp_ctx *ctx, struct sockaddr *addr, socklen_t addr_len)
 Initialize SNTP context. More...
 
int sntp_query (struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *time)
 Perform SNTP query. More...
 
void sntp_close (struct sntp_ctx *ctx)
 Release SNTP context. More...
 
int sntp_simple (const char *server, uint32_t timeout, struct sntp_time *time)
 Convenience function to query SNTP in one-shot fashion. More...