A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ntp.h Source File

ntp.h

00001 #pragma once
00002 
00003 extern bool       NtpTrace;
00004 
00005 extern int  NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx);
00006 extern int  NtpPollForPacketToSend(int type, char* pPacket, int* pSize);
00007 extern void NtpLogHeader(char* pPacket);
00008 extern void NtpInit(void);
00009 
00010 #define NTP_PORT 123
00011 
00012 #define NTP_CLIENT 3
00013 #define NTP_SERVER 4