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

Committer:
andrewboyson
Date:
2019-04-07
Revision:
138:5ff0c7069300
Parent:
113:904b40231907

File content as of revision 138:5ff0c7069300:

#pragma once

extern bool       NtpTrace;

extern int  NtpHandlePacketReceived(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx);
extern int  NtpPollForPacketToSend(int type, char* pPacket, int* pSize);
extern void NtpLogHeader(char* pPacket);
extern void NtpInit(void);

#define NTP_PORT 123

#define NTP_CLIENT 3
#define NTP_SERVER 4