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:
- 2021-05-20
- Revision:
- 200:5acbc41bf469
- Parent:
- 195:bd5b123143ca
File content as of revision 200:5acbc41bf469:
#include <stdbool.h> #include <stdint.h> 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);