* * $Log: sntp.c,v $ * Revision 1.8 2005/08/03 11:46:59 olereinhardt * Removed unneeded comment line to fix compile bug * * Revision 1.7 2005/08/02 17:47:04 haraldkipp * Major API documentation update. * * Revision 1.6 2005/04/08 15:20:51 olereinhardt * added <sys/types.h> (__APPLE__) and <netinet/in.h> (__linux__) * for htons and simmilar. * * Revision 1.5 2005/04/05 17:44:57 haraldkipp * Made stack space configurable. * * Revision 1.4 2003/11/26 12:55:35 drsung * Portability issues ... again * * Revision 1.3 2003/11/26 11:16:44 haraldkipp * Portability issues * * Revision 1.2 2003/11/24 21:01:42 drsung * Now using UDP packet queue. * * Revision 1.1 2003/11/24 18:13:22 drsung * first release * *
#include <cfg/sntp.h>
#include <pro/sntp.h>
#include <sys/socket.h>
#include <sys/heap.h>
#include <string.h>
#include "../crt/ctime.h"
#include <stdio.h>
#include <sys/thread.h>
#include <sys/timer.h>
#include <sys/types.h>
#include <netinet/in.h>
Data Structures | |
struct | _sntpframe |
struct | SNTP_resync_args |
Defines | |
#define | NTP_PORT 123 |
#define | NUT_THREAD_SNTPSTACK 256 |
#define | SNTP_PORT NTP_PORT |
Typedefs | |
typedef _sntpframe | sntpframe |
Functions | |
int | NutSNTPGetTime (u_long *server_adr, time_t *t) |
int | NutSNTPStartThread (u_long server_addr, u_long interval) |
THREAD (SNTP_resync, arg) |