![]() |
![]() |
|
Network Services API
2.50.00.07
|

Go to the source code of this file.
Macros | |
SNTP Error Codes | |
| #define | SNTP_EGETHOSTBYNAMEFAIL (-100) |
| Failed to resolve Host address. More... | |
| #define | SNTP_EINVALIDARGS (-101) |
| Input arguments are invalid. More... | |
| #define | SNTP_ESOCKCREATEFAIL (-102) |
| Failed to create a socket. More... | |
| #define | SNTP_EINVALIDFAMILY (-103) |
| The input socket address is not of AF_INET (IPv4) or AF_INET6 (IPv6) family type. More... | |
| #define | SNTP_ESOCKOPTFAIL (-104) |
| Failed to set receive timeout on socket. More... | |
| #define | SNTP_ECONNECTFAIL (-105) |
| Failed to connect to the NTP server. More... | |
| #define | SNTP_ESENDFAIL (-106) |
| Failed to send a time request to the NTP server. More... | |
| #define | SNTP_ERECVFAIL (-107) |
| Failed to recieve the new time from the NTP server. More... | |
| #define | SNTP_ERATEBACKOFF (-108) |
| NTP Server requests to reduce the update rate (RFC 5905 kiss code RATE) More... | |
| #define | SNTP_EFATALNORETRY (-109) |
| NTP Server invalid or server requests to end all communications (RFC 5905 kiss code DENY or RSTR) More... | |
| #define | SNTP_EINVALIDRESP (-110) |
| Server response with stratum == 0, with no kiss code. More... | |
Functions | |
| 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. More... | |
| int32_t | SNTP_getTimeByAddr (SlNetSock_Addr_t *server, SlNetSock_Timeval_t *timeout, uint64_t *ntpTimeStamp) |
| Obtain the UTC time from NTP server address. More... | |