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
Diff: udp/udp.h
- Revision:
- 195:bd5b123143ca
- Parent:
- 138:5ff0c7069300
--- 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);