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@112:f8694d0b8858, 2019-01-21 (annotated)
- Committer:
- andrewboyson
- Date:
- Mon Jan 21 16:58:28 2019 +0000
- Revision:
- 112:f8694d0b8858
- Parent:
- udp/ntp.h@104:871e65deaa5e
- Child:
- 113:904b40231907
Added NTP client into library. Added NTP multicast to client.
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 bool NtpServerEnable; |
andrewboyson | 104:871e65deaa5e | 4 | extern uint64_t (*NtpFunctionGetClockRef) (); |
andrewboyson | 104:871e65deaa5e | 5 | extern int (*NtpFunctionGetClockStratum) (); |
andrewboyson | 104:871e65deaa5e | 6 | extern char* (*NtpFunctionGetClockIdent) (); |
andrewboyson | 104:871e65deaa5e | 7 | extern int (*NtpFunctionGetClockLi) (); |
andrewboyson | 104:871e65deaa5e | 8 | extern int (*NtpFunctionGetClockPrecision)(); |
andrewboyson | 17:e475ab861365 | 9 | |
andrewboyson | 112:f8694d0b8858 | 10 | extern void NtpHdrWriteRequest(void* pPacket, int* pSize); |
andrewboyson | 22:914b970356f0 | 11 | |
andrewboyson | 59:e0e556c8bd46 | 12 | extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); |
andrewboyson | 22:914b970356f0 | 13 | extern int NtpPollForPacketToSend(int type, void* pPacket, int* pSize); |
andrewboyson | 22:914b970356f0 | 14 | |
andrewboyson | 22:914b970356f0 | 15 | |
andrewboyson | 14:e75a59c1123d | 16 | #define NTP_PORT 123 |