Lines Matching +full:response +full:- +full:timeout
5 * SPDX-License-Identifier: Apache-2.0
75 * @param timeout Timeout of waiting for sntp response (in milliseconds).
79 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
81 int sntp_query(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
84 * @brief Attempt to receive an SNTP response after issuing a query
87 * @param timeout Timeout of waiting for sntp response (in milliseconds).
91 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
93 int sntp_recv_response(struct sntp_ctx *ctx, uint32_t timeout, struct sntp_time *ts);
103 * @brief Convenience function to query SNTP in one-shot fashion
109 * @param timeout Query timeout
113 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
115 int sntp_simple(const char *server, uint32_t timeout,
119 * @brief Convenience function to query SNTP in one-shot fashion
120 * using a pre-initialized address struct
127 * @param timeout Query timeout
131 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
133 int sntp_simple_addr(struct sockaddr *addr, socklen_t addr_len, uint32_t timeout,