Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Files at this revision

API Documentation at this revision

Comitter:
andrewboyson
Date:
Sat Sep 07 18:57:57 2019 +0000
Parent:
157:b0bdb77e27f3
Child:
159:3ebef2d02f7f
Commit message:
Added main routine for use, ultimately, by TLS and asynchronous decryption.

Changed in this revision

net.c Show annotated file Show diff for this revision Revisions of this file
tcp/http/httpshim/httpshim.c Show annotated file Show diff for this revision Revisions of this file
tcp/tcp.c Show annotated file Show diff for this revision Revisions of this file
tcp/tcp.h Show annotated file Show diff for this revision Revisions of this file
--- a/net.c	Sun Sep 01 18:14:13 2019 +0000
+++ b/net.c	Sat Sep 07 18:57:57 2019 +0000
@@ -174,6 +174,7 @@
     int lastRestartPoint = RestartPoint;
     RestartPoint = FAULT_POINT_NetMain;
      LinkMain();
+      TcpMain();
       Ar4Main();
       Ar6Main();
       Nr4Main();
--- a/tcp/http/httpshim/httpshim.c	Sun Sep 01 18:14:13 2019 +0000
+++ b/tcp/http/httpshim/httpshim.c	Sat Sep 07 18:57:57 2019 +0000
@@ -4,6 +4,7 @@
 #include "tcp.h"
 #include "tcpbuf.h"
 #include "tls.h"
+#include "led.h"
 
 /*
 The shim acts as the switch between TCP, TLS and HTTP.
--- a/tcp/tcp.c	Sun Sep 01 18:14:13 2019 +0000
+++ b/tcp/tcp.c	Sat Sep 07 18:57:57 2019 +0000
@@ -6,6 +6,10 @@
 
 bool TcpTrace = false;
 
+void TcpMain()
+{
+    TlsMain();
+}
 void TcpInit()
 {
     TcbInit();
--- a/tcp/tcp.h	Sun Sep 01 18:14:13 2019 +0000
+++ b/tcp/tcp.h	Sat Sep 07 18:57:57 2019 +0000
@@ -3,4 +3,5 @@
 
 extern bool TcpTrace;
 
-extern void TcpInit(void);
\ No newline at end of file
+extern void TcpInit(void);
+extern void TcpMain(void);
\ No newline at end of file