Lines Matching +full:ip +full:- +full:addr
5 * SPDX-License-Identifier: Apache-2.0
63 * @param addr IP address of NTP/SNTP server.
64 * @param addr_len IP address length of NTP/SNTP server.
68 int sntp_init(struct sntp_ctx *ctx, struct sockaddr *addr,
79 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
91 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
103 * @brief Convenience function to query SNTP in one-shot fashion
108 * @param server Address of server in format addr[:port]
113 * @return 0 if ok, <0 if error (-ETIMEDOUT if timeout).
119 * @brief Convenience function to query SNTP in one-shot fashion
120 * using a pre-initialized address struct
125 * @param addr IP address of NTP/SNTP server.
126 * @param addr_len IP address length of NTP/SNTP server.
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,