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
user.c@195:bd5b123143ca, 2021-04-18 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Apr 18 19:04:48 2021 +0000
- Revision:
- 195:bd5b123143ca
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 <stdint.h> |
andrewboyson | 195:bd5b123143ca | 2 | |
andrewboyson | 195:bd5b123143ca | 3 | uint16_t UserUdpPort1 = 0; |
andrewboyson | 195:bd5b123143ca | 4 | uint16_t UserUdpPort2 = 0; |
andrewboyson | 195:bd5b123143ca | 5 | int (*UserHandleReceivedUdpPacket)(uint16_t port, void (*traceback)(void), int dataLengthRx, char* pDataRx, int* pPataLengthTx, char* pDataTx) = 0; |
andrewboyson | 195:bd5b123143ca | 6 | |
andrewboyson | 195:bd5b123143ca | 7 | |
andrewboyson | 195:bd5b123143ca | 8 | uint16_t UserUdpDstPort = 0; |
andrewboyson | 195:bd5b123143ca | 9 | uint16_t UserUdpSrcPort = 0; |
andrewboyson | 195:bd5b123143ca | 10 | uint32_t UserIp4; |
andrewboyson | 195:bd5b123143ca | 11 | char UserMac[6]; |
andrewboyson | 195:bd5b123143ca | 12 | |
andrewboyson | 195:bd5b123143ca | 13 | int (*UserPollForUdpPacketToSend)(int type, int* pDataLength, char* pData); |