![]() |
Defines | |
#define | NUT_THREAD_SNTPSTACK 256 |
#define | NTP_PORT 123 |
#define | SNTP_PORT NTP_PORT |
Typedefs | |
typedef struct _sntpframe | sntpframe |
Functions | |
void | SNTP_resync (void *arg) |
int | NutSNTPGetTime (u_long *server_adr, time_t *t) |
int | NutSNTPStartThread (u_long server_addr, u_long interval) |
#define NUT_THREAD_SNTPSTACK 256 |
#define SNTP_PORT NTP_PORT |
void SNTP_resync | ( | void * | arg | ) |
Definition at line 121 of file sntp.c.
References NutHeapFree(), NutSleep(), NutSNTPGetTime(), NutThreadSetPriority(), and stime().
Referenced by NutSNTPStartThread().
Definition at line 152 of file sntp.c.
References _DAY_SEC, _LEAP_YEAR_ADJUST, ntohl, NutHeapAllocClear(), NutHeapFree(), NutUdpCreateSocket(), NutUdpDestroySocket(), NutUdpReceiveFrom(), NutUdpSendTo(), NutUdpSetSockOpt(), SNTP_PORT, and SO_RCVBUF.
Referenced by main(), and SNTP_resync().
Definition at line 208 of file sntp.c.
References NUT_THREAD_SNTPSTACK, NutHeapAlloc(), NutHeapFree(), NutThreadCreate(), and SNTP_resync().