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:
21:02c82594c8c0
Parent:
10:f0854784e960
Child:
22:914b970356f0
--- a/tcp/tcp.cpp	Mon Jun 26 21:37:14 2017 +0000
+++ b/tcp/tcp.cpp	Thu Jun 29 19:42:28 2017 +0000
@@ -3,9 +3,10 @@
 #include  "net.h"
 #include  "tcp.h"
 #include  "tcb.h"
-#include "http.h"
 #include  "ip4.h"
 #include "dhcp.h"
+#include "http-request.h"
+#include "http-reply.h"
 
 #define MAX_MSS 536 //This is 576 - 20 - 20
 
@@ -245,7 +246,7 @@
     pData = pOptions;
    
     //Handle sending of any data
-    dataLength = HttpResponse(pTcb->locSeq - pTcb->locIsn - 1, mss, (char*)pData, pTcb->tag);
+    dataLength = HttpReply(pTcb->locSeq - pTcb->locIsn - 1, mss, (char*)pData, pTcb->tag);
     
     seqnum = pTcb->locSeq;      //Set the sequence number to the first byte of this message