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.h@37:793b39683406, 2017-10-04 (annotated)
- Committer:
- andrewboyson
- Date:
- Wed Oct 04 07:51:02 2017 +0000
- Revision:
- 37:793b39683406
- Parent:
- 36:900e24b27bfb
- Child:
- 59:e0e556c8bd46
Added trace back and trace forward to log messages
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 37:793b39683406 | 1 | extern bool NtpTrace; |
andrewboyson | 37:793b39683406 | 2 | |
andrewboyson | 22:914b970356f0 | 3 | extern uint64_t (*NtpGetClockNowFunction) (); |
andrewboyson | 22:914b970356f0 | 4 | |
andrewboyson | 22:914b970356f0 | 5 | extern bool NtpServerEnable; |
andrewboyson | 20:23f2b29b48ea | 6 | extern uint64_t (*NtpGetClockRefFunction) (); |
andrewboyson | 20:23f2b29b48ea | 7 | extern int (*NtpGetClockStratumFunction)(); |
andrewboyson | 20:23f2b29b48ea | 8 | extern char* (*NtpGetClockIdentFunction) (); |
andrewboyson | 17:e475ab861365 | 9 | |
andrewboyson | 35:93c39d260a83 | 10 | extern char NtpServerName[]; |
andrewboyson | 22:914b970356f0 | 11 | extern bool NtpClientRequest; |
andrewboyson | 22:914b970356f0 | 12 | extern void (*NtpSetClockFunction) (uint64_t ori, uint64_t rec); |
andrewboyson | 35:93c39d260a83 | 13 | |
andrewboyson | 37:793b39683406 | 14 | extern uint32_t NtpServerIp4; |
andrewboyson | 37:793b39683406 | 15 | extern char NtpServerIp6[]; |
andrewboyson | 22:914b970356f0 | 16 | |
andrewboyson | 37:793b39683406 | 17 | extern int NtpHandlePacketReceived(void (*traceback)(void), int* pSize, void * pPacket); |
andrewboyson | 22:914b970356f0 | 18 | extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize); |
andrewboyson | 22:914b970356f0 | 19 | |
andrewboyson | 22:914b970356f0 | 20 | |
andrewboyson | 14:e75a59c1123d | 21 | #define NTP_PORT 123 |