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

Revision:
166:89e3ce39b31b
Parent:
165:29a9e5f2eaef
--- a/tcp/tcpsend.c	Wed Apr 01 13:36:27 2020 +0000
+++ b/tcp/tcpsend.c	Thu Apr 02 11:58:33 2020 +0000
@@ -10,7 +10,7 @@
 #include     "tcb.h"
 #include     "ip4.h"
 #include    "dhcp.h"
-#include    "http.h"
+#include   "httpv.h"
 #include   "https.h"
 #include     "led.h"
 #include "tcpsend.h"
@@ -38,7 +38,7 @@
 {
     switch (port)
     {
-        case  80: return HttpGetTrace();
+        case  80: return HttpvGetTrace();
         case 443: return HttpsGetTrace();
         default:  return false;
     }    
@@ -51,8 +51,8 @@
     *pDataLength = windowSize;
     switch (port)
     {
-        case  80: finished =  HttpResponse(connection, clientFinished, pDataLength, (char*)pWindow, windowPositionInStream); break;
-        case 443: finished = HttpsResponse(connection, clientFinished, pDataLength,        pWindow, windowPositionInStream); break;
+        case  80: finished = HttpvResponse(connection, clientFinished, pDataLength, pWindow, windowPositionInStream); break;
+        case 443: finished = HttpsResponse(connection, clientFinished, pDataLength, pWindow, windowPositionInStream); break;
     }
     return finished;
 }