Home
last modified time | relevance | path

Searched refs:sntp_ctx (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/include/zephyr/net/
Dsntp.h42 struct sntp_ctx { struct
68 int sntp_init(struct sntp_ctx *ctx, struct sockaddr *addr, argument
81 int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
93 int sntp_recv_response(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
100 void sntp_close(struct sntp_ctx *ctx);
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c16 struct sntp_ctx sntp_ctx; in sntp_simple_helper() local
21 res = sntp_init(&sntp_ctx, addr, addr_len); in sntp_simple_helper()
37 res = sntp_query(&sntp_ctx, iter_timeout, ts); in sntp_simple_helper()
48 res = sntp_recv_response(&sntp_ctx, iter_timeout, ts); in sntp_simple_helper()
69 sntp_close(&sntp_ctx); in sntp_simple_helper()
Dsntp.c154 int sntp_init(struct sntp_ctx *ctx, struct sockaddr *addr, socklen_t addr_len) in sntp_init()
162 memset(ctx, 0, sizeof(struct sntp_ctx)); in sntp_init()
184 int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts) in sntp_query()
213 int sntp_recv_response(struct sntp_ctx *ctx, uint32_t timeout, in sntp_recv_response()
245 void sntp_close(struct sntp_ctx *ctx) in sntp_close()
/Zephyr-latest/samples/net/sockets/sntp_client/src/
Dmain.c21 struct sntp_ctx ctx; in main()