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/ntpclient.h
- Committer:
- andrewboyson
- Date:
- 2019-04-07
- Revision:
- 138:5ff0c7069300
- Parent:
- 124:6e558721ec1c
- Child:
- 139:1f3641abc07f
File content as of revision 138:5ff0c7069300:
#include <stdbool.h> #include <stdint.h> #include "ntp.h" extern bool NtpClientTrace; extern void NtpClientInit(void); extern void NtpClientTimeUpdateSuccessful(void); extern int32_t NtpClientReplyOffsetMs; extern int32_t NtpClientReplyMaxDelayMs; extern void NtpClientReply(void (*traceback)(void), char* pPacket); extern char NtpClientQueryServerName[]; extern int NtpClientQueryInitialInterval; extern int NtpClientQueryNormalInterval; extern int NtpClientQueryRetryInterval; extern bool NtpClientQuerySendRequestsViaIp4; extern uint32_t NtpClientQueryServerIp4; extern char NtpClientQueryServerIp6[]; extern void NtpClientQueryStartInterval(int type); extern int NtpClientQueryPoll(int type, char* pPacket, int* pSize); enum { NTP_QUERY_INTERVAL_INITIAL, NTP_QUERY_INTERVAL_NORMAL, NTP_QUERY_INTERVAL_RETRY };