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: net.cpp
- Revision:
- 44:83ce5ace337b
- Parent:
- 43:bc028d5a6424
- Child:
- 46:40d33e9037e4
--- a/net.cpp Thu Oct 19 20:56:58 2017 +0000 +++ b/net.cpp Sun Oct 22 17:19:17 2017 +0000 @@ -17,7 +17,8 @@ bool NetTraceVerbose = false; bool NetPreferIp4Polled = false; -char* NetName; +char* NetName4; +char* NetName6; int16_t NetToHost16(int16_t n) { @@ -88,9 +89,10 @@ return ~onesComplement(0, count, pData); } -int NetInit(char* name) +int NetInit(char* name4, char* name6) { - NetName = name; + NetName4 = name4; + NetName6 = name6; PhyInit(); TcpInit(); ArInit();