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:
2017-10-04
Revision:
37:793b39683406
Parent:
14:e75a59c1123d
Child:
52:fbc5a46b5e16

File content as of revision 37:793b39683406:

extern int  UdpHandleReceivedPacket(void (*traceback)(void), int* pSize, void* pPacket);
extern int  UdpPollForPacketToSend(int type, int* pSize, void* pPacket);

extern void UdpLogHeader(uint16_t calculatedChecksum);

extern void UdpReadHeader(void* pPacket, uint16_t size);
extern void UdpMakeHeader(int size, void* pPacket);
extern void UdpAddChecksum(void*pPacket, uint16_t checksum);