Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

sntp.c File Reference


Detailed Description

Simple Network Time Protocol Client.

 *
 * $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
 *
 * 


Defines

#define NUT_THREAD_SNTPSTACK   256
#define NTP_PORT   123
#define SNTP_PORT   NTP_PORT

Typedefs

typedef _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)


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/