Add libhttpd.c

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1978 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-07-12 16:45:27 +00:00
parent 49a834785b
commit 93e34db926
6 changed files with 4564 additions and 101 deletions
+4 -22
View File
@@ -54,36 +54,17 @@
#include <nuttx/compiler.h>
#include "version.h"
#include "config.h"
#include "fdwatch.h"
#include "libhttpd.h"
#include "timers.h"
#ifdef CONFIG_THTTPD
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_THTTPD_IPADDR
# warning "CONFIG_THTTPD_IPADDR not defined"
# define CONFIG_THTTPD_IPADDR (10<<24|0<<16|0<<8|2)
#endif
#ifndef CONFIG_THTTPD_LINGER_MSEC
# define CONFIG_THTTPD_LINGER_MSEC 5000
#endif
#ifndef CONFIG_THTTPD_OCCASIONAL_MSEC
# define CONFIG_THTTPD_OCCASIONAL_MSEC 2000
#endif
#ifndef CONFIG_THTTPD_IDLE_READ_LIMIT_SEC
# define CONFIG_THTTPD_IDLE_READ_LIMIT_SEC 5
#endif
#ifndef CONFIG_THTTPD_IDLE_SEND_LIMIT_SEC
# define CONFIG_THTTPD_IDLE_SEND_LIMIT_SEC 5
#endif
#ifndef MAXPATHLEN
# define MAXPATHLEN 64
#endif
@@ -944,4 +925,5 @@ int thttpd_main(int argc, char **argv)
exit(0);
}
#endif /* CONFIG_THTTPD */