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@138:5ff0c7069300, 2019-04-07 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Apr 07 18:36:42 2019 +0000
- Revision:
- 138:5ff0c7069300
- Parent:
- 113:904b40231907
Removed all __packed structs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 113:904b40231907 | 1 | #pragma once |
andrewboyson | 37:793b39683406 | 2 | |
andrewboyson | 113:904b40231907 | 3 | extern bool NtpTrace; |
andrewboyson | 22:914b970356f0 | 4 | |
andrewboyson | 138:5ff0c7069300 | 5 | extern int NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx); |
andrewboyson | 138:5ff0c7069300 | 6 | extern int NtpPollForPacketToSend(int type, char* pPacket, int* pSize); |
andrewboyson | 138:5ff0c7069300 | 7 | extern void NtpLogHeader(char* pPacket); |
andrewboyson | 113:904b40231907 | 8 | extern void NtpInit(void); |
andrewboyson | 22:914b970356f0 | 9 | |
andrewboyson | 113:904b40231907 | 10 | #define NTP_PORT 123 |
andrewboyson | 113:904b40231907 | 11 | |
andrewboyson | 113:904b40231907 | 12 | #define NTP_CLIENT 3 |
andrewboyson | 113:904b40231907 | 13 | #define NTP_SERVER 4 |