output buffer unused at present, save some RAM

This commit is contained in:
David Kopf 2011-08-31 11:52:55 -04:00
parent 470887eddd
commit 407c76c5df

View file

@ -26,7 +26,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: httpd-simple.h,v 1.1 2010/05/09 12:52:05 nifi Exp $
*/ */
/** /**
@ -43,8 +42,10 @@
#include "contiki-net.h" #include "contiki-net.h"
/* The current internal border router webserver ignores the requested file name */
/* and needs no per-connection output buffer, so save some RAM */
#ifndef WEBSERVER_CONF_CFS_PATHLEN #ifndef WEBSERVER_CONF_CFS_PATHLEN
#define HTTPD_PATHLEN 80 #define HTTPD_PATHLEN 2
#else /* WEBSERVER_CONF_CFS_CONNS */ #else /* WEBSERVER_CONF_CFS_CONNS */
#define HTTPD_PATHLEN WEBSERVER_CONF_CFS_PATHLEN #define HTTPD_PATHLEN WEBSERVER_CONF_CFS_PATHLEN
#endif /* WEBSERVER_CONF_CFS_CONNS */ #endif /* WEBSERVER_CONF_CFS_CONNS */
@ -56,8 +57,8 @@ struct httpd_state {
struct timer timer; struct timer timer;
struct psock sin, sout; struct psock sin, sout;
struct pt outputpt; struct pt outputpt;
char inputbuf[HTTPD_PATHLEN + 30]; char inputbuf[HTTPD_PATHLEN + 24];
char outputbuf[UIP_TCP_MSS]; /*char outputbuf[UIP_TCP_MSS]; */
char filename[HTTPD_PATHLEN]; char filename[HTTPD_PATHLEN];
httpd_simple_script_t script; httpd_simple_script_t script;
char state; char state;