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
udp/ntp/ntp.h
- Committer:
- andrewboyson
- Date:
- 2019-01-21
- Revision:
- 112:f8694d0b8858
- Parent:
- udp/ntp.h@ 104:871e65deaa5e
- Child:
- 113:904b40231907
File content as of revision 112:f8694d0b8858:
extern bool NtpTrace; extern bool NtpServerEnable; extern uint64_t (*NtpFunctionGetClockRef) (); extern int (*NtpFunctionGetClockStratum) (); extern char* (*NtpFunctionGetClockIdent) (); extern int (*NtpFunctionGetClockLi) (); extern int (*NtpFunctionGetClockPrecision)(); extern void NtpHdrWriteRequest(void* pPacket, int* pSize); extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize); #define NTP_PORT 123