80 #ifndef ti_net_sntp_SNTP__include 81 #define ti_net_sntp_SNTP__include 100 #define SNTP_EGETHOSTBYNAMEFAIL (-100) 105 #define SNTP_EINVALIDARGS (-101) 110 #define SNTP_ESOCKCREATEFAIL (-102) 116 #define SNTP_EINVALIDFAMILY (-103) 121 #define SNTP_ESOCKOPTFAIL (-104) 126 #define SNTP_ECONNECTFAIL (-105) 131 #define SNTP_ESENDFAIL (-106) 136 #define SNTP_ERECVFAIL (-107) 142 #define SNTP_ERATEBACKOFF (-108) 148 #define SNTP_EFATALNORETRY (-109) 153 #define SNTP_EINVALIDRESP (-110) 210 int32_t
SNTP_getTime(
const char *srvList[],
const uint32_t srvCount,
int32_t SNTP_getTimeByAddr(SlNetSock_Addr_t *server, SlNetSock_Timeval_t *timeout, uint64_t *ntpTimeStamp)
Obtain the UTC time from NTP server address.
IpV4 socket address.
Definition: slnetsock.h:652
int32_t SNTP_getTime(const char *srvList[], const uint32_t srvCount, SlNetSock_Timeval_t *timeout, uint64_t *ntpTimeStamp)
Obtain the UTC time from NTP servers list.
struct timeval SlNetSock_Timeval_t
The SlNetSock_Timeval_t structure is used in the SLNETSOCK_OPSOCK_RCV_TIMEO and SLNETSOCK_OPSOCK_SND_...
Definition: slnetsock.h:642