diff --git a/ChangeLog b/ChangeLog index 03a8b6d..cc95381 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,14 @@ +2012-02-09 22:39:08 +0100 Georg Hopp + + * updated docs (HEAD, master) + 2012-02-09 22:34:32 +0100 Georg Hopp - * start split of request parser (HEAD, master) + * start split of request parser (origin/master, origin/HEAD) 2012-02-09 11:44:17 +0100 Georg Hopp - * no more request body debig output (origin/master, origin/HEAD) + * no more request body debig output 2012-02-09 11:32:28 +0100 Georg Hopp diff --git a/docs/html/accept_8c.html b/docs/html/accept_8c.html index be6c2a1..67473dc 100644 --- a/docs/html/accept_8c.html +++ b/docs/html/accept_8c.html @@ -84,6 +84,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
#include <errno.h>
+#include <unistd.h>
#include "socket.h"
#include "interface/class.h"
#include "interface/logger.h"
@@ -91,6 +92,8 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); Include dependency graph for accept.c:
+ +

Go to the source code of this file.

@@ -129,7 +132,7 @@ Functions

: change port to remote port on success

-

Definition at line 8 of file accept.c.

+

Definition at line 9 of file accept.c.

{
     Sock         sock;   /* Socket for client */
     unsigned int len;    /* Length of client address data structure */
@@ -168,7 +171,7 @@ Here is the call graph for this function:
Go to the documentation of this file.
00001 #include <errno.h>      /* for errno */
-00002 
-00003 #include "socket.h"
-00004 #include "interface/class.h"
-00005 #include "interface/logger.h"
-00006 
-00007 Sock
-00008 socketAccept(Sock this, char remoteAddr[16])
-00009 {
-00010     Sock         sock;   /* Socket for client */
-00011     unsigned int len;    /* Length of client address data structure */
-00012 
-00013     /* Set the size of the in-out parameter */
-00014     len = sizeof(this->addr);
-00015 
-00023         sock = new(Sock, this->log, this->port);
-00024         close(sock->handle);
-00029     /* Wait for a client to connect */
-00030     sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len);
-00031     if (-1 == sock->handle) {
-00032         loggerLog(this->log, LOGGER_WARNING,
-00033                 "error accepting connection: %s", strerror(errno));
-00034     } else {
-00035         loggerLog(this->log, LOGGER_INFO,
-00036                                 "handling client %s\n", inet_ntoa((sock->addr).sin_addr));
-00037     }
-00038 
-00039     return sock;
-00040 }
-00041 
-00042 // vim: set ts=4 sw=4:
+00002 #include <unistd.h>
+00003 
+00004 #include "socket.h"
+00005 #include "interface/class.h"
+00006 #include "interface/logger.h"
+00007 
+00008 Sock
+00009 socketAccept(Sock this, char remoteAddr[16])
+00010 {
+00011     Sock         sock;   /* Socket for client */
+00012     unsigned int len;    /* Length of client address data structure */
+00013 
+00014     /* Set the size of the in-out parameter */
+00015     len = sizeof(this->addr);
+00016 
+00024         sock = new(Sock, this->log, this->port);
+00025         close(sock->handle);
+00030     /* Wait for a client to connect */
+00031     sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len);
+00032     if (-1 == sock->handle) {
+00033         loggerLog(this->log, LOGGER_WARNING,
+00034                 "error accepting connection: %s", strerror(errno));
+00035     } else {
+00036         loggerLog(this->log, LOGGER_INFO,
+00037                                 "handling client %s\n", inet_ntoa((sock->addr).sin_addr));
+00038     }
+00039 
+00040     return sock;
+00041 }
+00042 
+00043 // vim: set ts=4 sw=4:
 
@@ -161,15 +162,16 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : class.h
  • CREATE_CLASS() -: request_parser.c +: stderr.c +, queue.c , socket.c , logger.c -, class.h +, header.c , syslog.c , server.c +, parser.c , request.c -, request_queue.c -, stderr.c +, class.h
  • CREATE_IMPL : interface.h @@ -227,6 +229,60 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • HAS_PARENT : class.h
  • +
  • HAVE__BOOL +: config.h +
  • +
  • HAVE_DLFCN_H +: config.h +
  • +
  • HAVE_INTTYPES_H +: config.h +
  • +
  • HAVE_JSON_JSON_H +: config.h +
  • +
  • HAVE_LIBJSON +: config.h +
  • +
  • HAVE_MEMORY_H +: config.h +
  • +
  • HAVE_MEMSET +: config.h +
  • +
  • HAVE_STDARG_H +: config.h +
  • +
  • HAVE_STDBOOL_H +: config.h +
  • +
  • HAVE_STDINT_H +: config.h +
  • +
  • HAVE_STDIO_H +: config.h +
  • +
  • HAVE_STDLIB_H +: config.h +
  • +
  • HAVE_STRING_H +: config.h +
  • +
  • HAVE_STRINGS_H +: config.h +
  • +
  • HAVE_SYS_STAT_H +: config.h +
  • +
  • HAVE_SYS_TYPES_H +: config.h +
  • +
  • HAVE_SYSLOG_H +: config.h +
  • +
  • HAVE_UNISTD_H +: config.h +
  • HTTP_REQUEST_DONE : request_parser.h
  • @@ -248,6 +304,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • HTTP_REQUEST_START : request_parser.h
  • +
  • httpHeaderGet() +: header.h +, get.c +
  • +
  • httpHeaderParse() +: header.h +
  • +
  • httpHeaderSort() +: sort.c +, header.h +
  • +
  • httpRequestHeaderGet() +: request.h +, response.h +, header_get.c +
  • +
  • httpRequestParserGetHeader() +: get_header.c +
  • +
  • httpRequestParserGetRequestLine() +: get_request_line.c +, parse.c +
  • +
  • httpRequestParserParse() +: parser.c +, parse.c +
  • HttpRequestState : request_parser.h
  • @@ -271,16 +354,17 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : interface.h
  • INIT_IFACE() -: request_parser.c +: parser.c , socket.c , server.c , logger.c -, request_parser.c -, request_queue.c -, stderr.c -, interface.h , syslog.c +, parser.c +, queue.c , request.c +, interface.h +, stderr.c +, header.c
  • INIT_IMPL : interface.h @@ -329,8 +413,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); : logger.h
  • loggerLog() -: logger.c -, logger.h +: logger.h +, logger.c +
  • +
  • LT_OBJDIR +: config.h
  • @@ -365,6 +452,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');

    - p -

    + + +

    - v -

    @@ -161,6 +164,60 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • HAS_PARENT : class.h
  • +
  • HAVE__BOOL +: config.h +
  • +
  • HAVE_DLFCN_H +: config.h +
  • +
  • HAVE_INTTYPES_H +: config.h +
  • +
  • HAVE_JSON_JSON_H +: config.h +
  • +
  • HAVE_LIBJSON +: config.h +
  • +
  • HAVE_MEMORY_H +: config.h +
  • +
  • HAVE_MEMSET +: config.h +
  • +
  • HAVE_STDARG_H +: config.h +
  • +
  • HAVE_STDBOOL_H +: config.h +
  • +
  • HAVE_STDINT_H +: config.h +
  • +
  • HAVE_STDIO_H +: config.h +
  • +
  • HAVE_STDLIB_H +: config.h +
  • +
  • HAVE_STRING_H +: config.h +
  • +
  • HAVE_STRINGS_H +: config.h +
  • +
  • HAVE_SYS_STAT_H +: config.h +
  • +
  • HAVE_SYS_TYPES_H +: config.h +
  • +
  • HAVE_SYSLOG_H +: config.h +
  • +
  • HAVE_UNISTD_H +: config.h +
  • HTTP_REQUEST_PARSER_READ_CHUNK : request_parser.h
  • @@ -189,6 +246,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); +

    - l -

    + +

    - m -