]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/http/httpd.c
First pass of 410watch UI code.
[netwatch.git] / net / http / httpd.c
index e8cdd53a0675c82b8a24f978021c154e9034e00a..81d4a3f457c397ba0c657a3b184fdd2bc441f92e 100644 (file)
@@ -32,6 +32,7 @@
 
 #include <minilib.h>
 #include <output.h>
+#include <tables.h>
 #include "lwip/debug.h"
 
 #include "lwip/stats.h"
@@ -44,7 +45,7 @@
 
 struct http_state {
   u32_t left;
-  const unsigned char *file;
+  const char *file;
   u8_t retries;
 };
 
@@ -84,6 +85,8 @@ send_data(struct tcp_pcb *pcb, struct http_state *hs)
     len = hs->left;
     LWIP_ASSERT((len == hs->left), "hs->left did not fit into u16_t!");
   }
+  
+  outputf("send_data trying %d bytes", len);
 
   do {
     err = tcp_write(pcb, hs->file, len, 0);
@@ -256,3 +259,4 @@ httpd_init(void)
 }
 /*-----------------------------------------------------------------------------------*/
 
+PROTOCOL(httpd_init);
This page took 0.025523 seconds and 4 git commands to generate.