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

Revision:
195:bd5b123143ca
Parent:
138:5ff0c7069300
diff -r f35c6e218de1 -r bd5b123143ca udp/udp.h
--- a/udp/udp.h	Thu Mar 04 12:08:14 2021 +0000
+++ b/udp/udp.h	Sun Apr 18 19:04:48 2021 +0000
@@ -1,3 +1,6 @@
+#include <stdbool.h>
+#include <stdint.h>
+
 extern bool UdpTrace;
 
 extern int  UdpHandleReceivedPacket(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx);
@@ -6,4 +9,4 @@
 extern void UdpLogHeader(uint16_t calculatedChecksum);
 
 extern void UdpMakeHeader(int size, char* pPacket);
-extern void UdpHdrSetChecksum(void*pPacket, uint16_t checksum);
\ No newline at end of file
+extern void UdpHdrSetChecksum(void*pPacket, uint16_t checksum);