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/udp.h

Committer:
andrewboyson
Date:
2020-04-02
Revision:
167:3ba4e3c49631
Parent:
138:5ff0c7069300
Child:
195:bd5b123143ca

File content as of revision 167:3ba4e3c49631:

extern bool UdpTrace;

extern int  UdpHandleReceivedPacket(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx);
extern int  UdpPollForPacketToSend(int type, int* pSize, char* pPacket);

extern void UdpLogHeader(uint16_t calculatedChecksum);

extern void UdpMakeHeader(int size, char* pPacket);
extern void UdpHdrSetChecksum(void*pPacket, uint16_t checksum);