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@195:bd5b123143ca, 2021-04-18 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Apr 18 19:04:48 2021 +0000
- Revision:
- 195:bd5b123143ca
- Parent:
- 138:5ff0c7069300
Added a user module to allow user defined UDPs port to be used - in this case for a WIZ module.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 195:bd5b123143ca | 1 | #include <stdbool.h> |
andrewboyson | 195:bd5b123143ca | 2 | #include <stdint.h> |
andrewboyson | 195:bd5b123143ca | 3 | |
andrewboyson | 52:fbc5a46b5e16 | 4 | extern bool UdpTrace; |
andrewboyson | 52:fbc5a46b5e16 | 5 | |
andrewboyson | 138:5ff0c7069300 | 6 | extern int UdpHandleReceivedPacket(void (*traceback)(void), int sizeRx, char* pPacketRx, int* pSizeTx, char* pPacketTx); |
andrewboyson | 138:5ff0c7069300 | 7 | extern int UdpPollForPacketToSend(int type, int* pSize, char* pPacket); |
andrewboyson | 10:f0854784e960 | 8 | |
andrewboyson | 37:793b39683406 | 9 | extern void UdpLogHeader(uint16_t calculatedChecksum); |
andrewboyson | 10:f0854784e960 | 10 | |
andrewboyson | 138:5ff0c7069300 | 11 | extern void UdpMakeHeader(int size, char* pPacket); |
andrewboyson | 195:bd5b123143ca | 12 | extern void UdpHdrSetChecksum(void*pPacket, uint16_t checksum); |