diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-22 20:36:36 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-22 20:36:36 +0000 |
commit | 14041d4dc7b60500de8ab760ca9e6cc55ccc524c (patch) | |
tree | a40c14f9154674eb752351c0b6f11bad74786306 /apps/include/netutils/httpd.h | |
parent | 8f88f77957feaf87be4b7571a420a13682a357b9 (diff) | |
download | nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.tar.gz nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.tar.bz2 nuttx-14041d4dc7b60500de8ab760ca9e6cc55ccc524c.zip |
Adds support for keep-alive connections to webserver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5178 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include/netutils/httpd.h')
-rw-r--r-- | apps/include/netutils/httpd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/include/netutils/httpd.h b/apps/include/netutils/httpd.h index 031840802..20ddff278 100644 --- a/apps/include/netutils/httpd.h +++ b/apps/include/netutils/httpd.h @@ -109,6 +109,9 @@ struct httpd_state { char ht_buffer[HTTPD_IOBUFFER_SIZE]; /* recv() buffer */ char ht_filename[HTTPD_MAX_FILENAME]; /* filename from GET command */ +#ifndef CONFIG_NETUTILS_HTTPD_KEEPALIVE_DISABLE + bool ht_keepalive; /* Connection: keep-alive */ +#endif struct httpd_fs_file ht_file; /* Fake file data to send */ int ht_sockfd; /* The socket descriptor from accept() */ char *ht_scriptptr; |