Network Services API
1.40.00.04
|
#include <ti/net/socket.h>
Go to the source code of this file.
Macros | |
SNTP Error Codes | |
#define | SNTP_EINVALIDARGS (-101) |
Input arguments are invalid. More... | |
#define | SNTP_ESOCKETFAIL (-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_ESOCKETOPTFAIL (-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... | |
Functions | |
int | SNTP_getTime (struct sockaddr *server, uint32_t(*get)(void), void(*set)(uint32_t newtime)) |
Get time from NTP server. More... | |