From baa26cd045be80620924ce41ea506bc8b043f8c7 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 13 Jun 2007 01:12:50 +0000 Subject: fixing compile errors --- src/daemon/session.h | 97 ---------------------------------------------------- 1 file changed, 97 deletions(-) (limited to 'src/daemon/session.h') diff --git a/src/daemon/session.h b/src/daemon/session.h index 24ddd641..0097a398 100644 --- a/src/daemon/session.h +++ b/src/daemon/session.h @@ -30,103 +30,6 @@ #define SESSION_H -struct MHD_Session { - struct MHD_Session * next; - - struct MHD_Daemon * daemon; - - struct MHD_HTTP_Header * headers_received; - - struct MHD_Response * response; - - char * method; - - char * url; - - /** - * Buffer for reading requests. - */ - void * read_buffer; - - /** - * Buffer for writing response. - */ - void * write_buffer; - - /** - * Foreign address (of length addr_len). - */ - struct sockaddr_in * addr; - - /** - * Thread for this session (if we are using - * one thread per connection). - */ - pthread_t pid; - - size_t read_buffer_size; - - size_t readLoc; - - size_t write_buffer_size; - - size_t writeLoc; - - /** - * Current write position in the actual response - * (excluding headers, content only; should be 0 - * while sending headers). - */ - size_t messagePos; - - /** - * Remaining (!) number of bytes in the upload. - * Set to -1 for unknown (connection will close - * to indicate end of upload). - */ - size_t uploadSize; - - /** - * Length of the foreign address. - */ - socklen_t addr_len; - - /** - * Socket for this connection. Set to -1 if - * this connection has died (daemon should clean - * up in that case). - */ - int socket_fd; - - /** - * Have we finished receiving all of the headers yet? - * Set to 1 once we are done processing all of the - * headers. Note that due to pipelining, it is - * possible that the NEXT request is already - * (partially) waiting in the read buffer. - */ - int headersReceived; - - /** - * Have we finished receiving the data from a - * potential file-upload? - */ - int bodyReceived; - - /** - * Have we finished sending all of the headers yet? - */ - int headersSent; - - /** - * HTTP response code. Only valid if response object - * is already set. - */ - unsigned int responseCode; - -}; - - /** * Obtain the select sets for this session. * -- cgit v1.2.3