Simple Network Time Protocol Client. More...
#include <cfg/sntp.h>
#include <pro/sntp.h>
#include <sys/socket.h>
#include <sys/heap.h>
#include <stdlib.h>
#include <string.h>
#include "../crt/ctime.h"
#include <stdio.h>
#include <memdebug.h>
#include <sys/thread.h>
#include <sys/timer.h>
#include <sys/types.h>
#include <netinet/in.h>
Go to the source code of this file.
Data Structures | |
struct | _sntpframe |
struct | SNTP_resync_args |
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 (uint32_t *server_adr, time_t *t) |
int | NutSNTPStartThread (uint32_t server_addr, uint32_t interval) |
Simple Network Time Protocol Client.
* * $Log$ * Revision 1.11 2009/02/13 14:52:05 haraldkipp * Include memdebug.h for heap management debugging support. * * Revision 1.10 2009/02/06 15:40:29 haraldkipp * Using newly available strdup() and calloc(). * Replaced NutHeap routines by standard malloc/free. * Replaced pointer value 0 by NULL. * * Revision 1.9 2008/08/11 07:00:36 haraldkipp * BSD types replaced by stdint types (feature request #1282721). * * 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 * *
Definition in file sntp.c.