Lines Matching full:timeout
12 static int sntp_simple_helper(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_helper() argument
26 if (timeout == SYS_FOREVER_MS) { in sntp_simple_helper()
27 deadline = (uint64_t)timeout; in sntp_simple_helper()
29 deadline = k_uptime_get() + (uint64_t)timeout; in sntp_simple_helper()
32 /* Timeout for current iteration */ in sntp_simple_helper()
43 * Retry recv with current iteration timeout in sntp_simple_helper()
44 * until an error or timeout (flushing the socket in sntp_simple_helper()
45 * of old iteration responses until we timeout or in sntp_simple_helper()
74 int sntp_simple_addr(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout, in sntp_simple_addr() argument
84 return sntp_simple_helper(addr, addr_len, timeout, ts); in sntp_simple_addr()
87 int sntp_simple(const char *server, uint32_t timeout, struct sntp_time *ts) in sntp_simple() argument
105 res = sntp_simple_helper(addr->ai_addr, addr->ai_addrlen, timeout, ts); in sntp_simple()