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
Diff: udp/ntp/ntpclient.h
- Revision:
- 112:f8694d0b8858
- Child:
- 113:904b40231907
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udp/ntp/ntpclient.h Mon Jan 21 16:58:28 2019 +0000 @@ -0,0 +1,18 @@ +#include <stdbool.h> + +extern char NtpClientServerName[]; +extern int NtpClientInitialInterval; +extern int NtpClientNormalInterval; +extern int NtpClientRetryInterval; +extern int NtpClientOffsetMs; +extern int NtpClientMaxDelayMs; + +extern bool NtpClientSendRequestsViaIp4; +extern bool NtpClientTrace; +extern uint32_t NtpClientServerIp4; +extern char NtpClientServerIp6[]; + +extern int NtpClientInit(void); + +extern void NtpClientSetClockTime(uint64_t ori, uint64_t rec, int li); +extern int NtpClientPollForPacketToSend(int type, void* pPacket, int* pSize); \ No newline at end of file