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:
2021-05-20
Revision:
200:5acbc41bf469
Parent:
138:5ff0c7069300

File content as of revision 200:5acbc41bf469:

#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