From bb1a036f097602a70ce219915db28dea616b76a8 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 31 Jan 2010 14:18:03 +0000 Subject: Clean up HTTP webserver code in the Webserver project, so that it follows the uIP application structure guidelines and uses cleaner state machine based code. --- Projects/Webserver/Lib/uip/conf/apps-conf.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Projects/Webserver/Lib/uip') diff --git a/Projects/Webserver/Lib/uip/conf/apps-conf.h b/Projects/Webserver/Lib/uip/conf/apps-conf.h index 540fc33a8..0060f1f4c 100644 --- a/Projects/Webserver/Lib/uip/conf/apps-conf.h +++ b/Projects/Webserver/Lib/uip/conf/apps-conf.h @@ -5,13 +5,14 @@ typedef struct { - uint8_t PrevState; - uint8_t CurrentState; + uint8_t CurrentState; + uint8_t NextState; - FIL FileHandle; - char FileName[50]; - bool FileOpen; - uint32_t CurrentFilePos; + char FileName[30]; + FIL FileHandle; + bool FileOpen; + uint32_t ACKedFilePos; + uint16_t SentChunkSize; } uip_tcp_appstate_t; typedef struct -- cgit v1.2.3