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: tcp/tcprecv.c
- Revision:
- 145:206bf0d073c7
- Parent:
- 144:6bd5c54efc7d
- Child:
- 146:0fc66d610fd6
--- a/tcp/tcprecv.c Sun May 12 17:17:49 2019 +0000 +++ b/tcp/tcprecv.c Tue May 14 15:09:39 2019 +0000 @@ -12,7 +12,6 @@ #include "ip4.h" #include "dhcp.h" #include "http.h" -#include "https.h" #include "led.h" #include "mstimer.h" #include "restart.h" @@ -58,14 +57,9 @@ char* pData = (char*)pPacket + TcpHdrSizeGet(); switch (pTcb->locPort) { - case 80: - HttpHandleRequest (dataLength, pData, position, pTcb->appData); - break; - case 443: - HttpsHandleRequest(dataLength, pData, position, pTcb->appData); - break; - default: - break; + case 80: HttpRequest (dataLength, pData, position, pTcb->appData); break; + case 443: HttpsRequest(dataLength, pData, position, pTcb->appData); break; + default: break; } } static int sendResetFromPacket(int* pSizeTx, void* pPacketTx, int ipType, int remArIndex, int locIpScope, int seqLengthRcvd)