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.h
00001 #include <stdbool.h> 00002 #include <stdint.h> 00003 00004 extern bool UdpTrace; 00005 00006 extern int UdpHandleReceivedPacket(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx); 00007 extern int UdpPollForPacketToSend(int type, int* pSize, char* pPacket); 00008 00009 extern void UdpLogHeader(uint16_t calculatedChecksum); 00010 00011 extern void UdpMakeHeader(int size, char* pPacket); 00012 extern void UdpHdrSetChecksum(void*pPacket, uint16_t checksum);
Generated on Tue Jul 12 2022 18:53:40 by 1.7.2