diff --git a/docs/html/accept_8c.html b/docs/html/accept_8c.html deleted file mode 100644 index 67473dc..0000000 --- a/docs/html/accept_8c.html +++ /dev/null @@ -1,195 +0,0 @@ - - - - -server: src/socket/accept.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/socket/accept.c File Reference

-
-
-
#include <errno.h>
-#include <unistd.h>
-#include "socket.h"
-#include "interface/class.h"
-#include "interface/logger.h"
-
-Include dependency graph for accept.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

Sock socketAccept (Sock this, char remoteAddr[16])
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
Sock socketAccept (Sock this,
char remoteAddr[16] 
)
-
-
- -

: Uhh, this is bad. we open a new socket additionally to the one we get from the accept call. i have to change the socket constructor to be able to create the data structure without creation of a socket at all. For now i simply close the socket here.... :D

-

: change port to remote port on success

-

- -

Definition at line 9 of file accept.c.

-
{
-    Sock         sock;   /* Socket for client */
-    unsigned int len;    /* Length of client address data structure */
-
-    /* Set the size of the in-out parameter */
-    len = sizeof(this->addr);
-
-        sock = new(Sock, this->log, this->port);
-        close(sock->handle);
-    /* Wait for a client to connect */
-    sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len);
-    if (-1 == sock->handle) {
-        loggerLog(this->log, LOGGER_WARNING,
-                "error accepting connection: %s", strerror(errno));
-    } else {
-        loggerLog(this->log, LOGGER_INFO,
-                                "handling client %s\n", inet_ntoa((sock->addr).sin_addr));
-    }
-
-    return sock;
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/accept_8c__incl.map b/docs/html/accept_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/accept_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/accept_8c__incl.md5 b/docs/html/accept_8c__incl.md5 deleted file mode 100644 index e047770..0000000 --- a/docs/html/accept_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -c14cdcfeafedf0a0bd7fd5c8ff12c3a4 \ No newline at end of file diff --git a/docs/html/accept_8c__incl.png b/docs/html/accept_8c__incl.png deleted file mode 100644 index f2cf52c..0000000 Binary files a/docs/html/accept_8c__incl.png and /dev/null differ diff --git a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map b/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map deleted file mode 100644 index 26da2f8..0000000 --- a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 b/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 deleted file mode 100644 index 9a38935..0000000 --- a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -fa824e3c68242e391222394188b16371 \ No newline at end of file diff --git a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png b/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png deleted file mode 100644 index 631e47c..0000000 Binary files a/docs/html/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png and /dev/null differ diff --git a/docs/html/accept_8c_source.html b/docs/html/accept_8c_source.html deleted file mode 100644 index 3eb9cc4..0000000 --- a/docs/html/accept_8c_source.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - -server: src/socket/accept.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/socket/accept.c

-
-
-Go to the documentation of this file.
00001 #include <errno.h>      /* for errno */
-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:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/annotated.html b/docs/html/annotated.html deleted file mode 100644 index e144863..0000000 --- a/docs/html/annotated.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - -server: Class List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

Class List

-
-
-
Here are the classes, structs, unions and interfaces with brief descriptions:
- - - - - - - - - - - - - - - - -
class
HttpHeader
HttpRequest
HttpRequestParser
HttpRequestQueue
HttpResponse
i_Class
i_Logger
i_StreamReader
iface_impl
interface
Logger
LoggerStderr
LoggerSyslog
Server
Sock
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/bc_s.png b/docs/html/bc_s.png deleted file mode 100644 index e401862..0000000 Binary files a/docs/html/bc_s.png and /dev/null differ diff --git a/docs/html/class_8c.html b/docs/html/class_8c.html deleted file mode 100644 index 366e535..0000000 --- a/docs/html/class_8c.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - -server: src/class.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/class.c File Reference

-
-
-
#include <stdarg.h>
-#include <stdlib.h>
-#include "class.h"
-#include "interface.h"
-
-Include dependency graph for class.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

void * class_getInterface (class_ptr *class, iface_ptr _iface)
class_ptr class_getClass (void *object)
-

Function Documentation

- -
-
- - - - - - - - -
class_ptr class_getClass (void * object)
-
-
- -

Definition at line 21 of file class.c.

-
{
-        return *(class_ptr *)(object - sizeof(void*));
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void* class_getInterface (class_ptrclass,
iface_ptr _iface 
)
-
-
- -

Definition at line 8 of file class.c.

-
{
-        void * iface = (void *)IFACE_GET(*class, _iface);
-
-        while(NULL == iface && HAS_PARENT(*class)) {
-                *class = (*class)->parent;
-                iface = (void *)IFACE_GET(*class, _iface);
-        }
-
-        return iface;
-}
-
-
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/class_8c__incl.map b/docs/html/class_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/class_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/class_8c__incl.md5 b/docs/html/class_8c__incl.md5 deleted file mode 100644 index 0bea6af..0000000 --- a/docs/html/class_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -0faa5486e8244c2d53a573e205a0b141 \ No newline at end of file diff --git a/docs/html/class_8c__incl.png b/docs/html/class_8c__incl.png deleted file mode 100644 index e123029..0000000 Binary files a/docs/html/class_8c__incl.png and /dev/null differ diff --git a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.map b/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.map deleted file mode 100644 index 3b39aa3..0000000 --- a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 b/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 deleted file mode 100644 index 1ea4dc6..0000000 --- a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -26bc749db3f2482bfaa222c2df1cdda1 \ No newline at end of file diff --git a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.png b/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.png deleted file mode 100644 index f38c397..0000000 Binary files a/docs/html/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.png and /dev/null differ diff --git a/docs/html/class_8c_source.html b/docs/html/class_8c_source.html deleted file mode 100644 index 58bb92f..0000000 --- a/docs/html/class_8c_source.html +++ /dev/null @@ -1,136 +0,0 @@ - - - - -server: src/class.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/class.c

-
-
-Go to the documentation of this file.
00001 #include <stdarg.h>
-00002 #include <stdlib.h>
-00003 
-00004 #include "class.h"
-00005 #include "interface.h"
-00006 
-00007 void *
-00008 class_getInterface(class_ptr * class, iface_ptr _iface)
-00009 {
-00010         void * iface = (void *)IFACE_GET(*class, _iface);
-00011 
-00012         while(NULL == iface && HAS_PARENT(*class)) {
-00013                 *class = (*class)->parent;
-00014                 iface = (void *)IFACE_GET(*class, _iface);
-00015         }
-00016 
-00017         return iface;
-00018 }
-00019 
-00020 class_ptr
-00021 class_getClass(void * object)
-00022 {
-00023         return *(class_ptr *)(object - sizeof(void*));
-00024 }
-00025 
-00026 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/class_8h.html b/docs/html/class_8h.html deleted file mode 100644 index 7a541a9..0000000 --- a/docs/html/class_8h.html +++ /dev/null @@ -1,625 +0,0 @@ - - - - -server: include/class.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/class.h File Reference

-
-
-
#include <stdarg.h>
-#include <sys/types.h>
-#include <string.h>
-#include <assert.h>
-#include "interface.h"
-
-Include dependency graph for class.h:
-
-
- - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - - - - - - - - - - - - - - - - -

-Classes

struct  class

-Defines

#define _ISOC99_SOURCE
#define CLASS_MAGIC   0xFEFE
#define CLASS(name)
#define EXTENDS(parent)   const char _[sizeof(struct c_##parent)]
#define _NULL   NULL
#define CREATE_CLASS(name, _parent,...)
#define _CALL(object, _iface, method,...)
#define CALL(object, _iface, method,...)
#define RETCALL(object, _iface, method, ret,...)
#define IFACE_GET(class, iface)   (interfaceGet(&((class)->impl),(iface)))
#define IFACE_EXISTS(class, iface)   (NULL != IFACE_GET((class),(iface)))
#define HAS_PARENT(class)   (NULL != ((class)->parent))

-Typedefs

typedef void(* fptr_classInit )(void)
typedef struct classclass_ptr

-Functions

void * class_getInterface (class_ptr *, iface_ptr)
class_ptr class_getClass (void *)
-

Define Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define _CALL( object,
 _iface,
 method,
 ... 
)
-
-
-Value:
class_ptr           class = class_getClass((object));                     \
-        struct i_##_iface * iface;                                                \
-        if (class->init)        class->init();                                        \
-        iface = (struct i_##_iface *)class_getInterface(&class, &i_##_iface);     \
-        while ((NULL == iface || NULL == iface->method) && HAS_PARENT(class)) {   \
-                class = class->parent;                                                \
-                if (class->init)        class->init();                                    \
-                iface = (struct i_##_iface *)class_getInterface(&class, &i_##_iface); \
-        };                                                                        \
-        assert(NULL != iface->method);
-

: actually i use gcc feature ## for variadoc... think about a way to make this standard.

- -

Definition at line 43 of file class.h.

- -
-
- -
-
- - - - -
#define _ISOC99_SOURCE
-
-
- -

Definition at line 11 of file class.h.

- -
-
- -
-
- - - - -
#define _NULL   NULL
-
-
- -

Definition at line 24 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define CALL( object,
 _iface,
 method,
 ... 
)
-
-
-Value:
do {                                             \
-                _CALL(object, _iface, method, ##__VA_ARGS__); \
-                iface->method(object, ##__VA_ARGS__);        \
-        } while(0)
-
-

Definition at line 55 of file class.h.

- -
-
- -
-
- - - - - - - - -
#define CLASS( name)
-
-
-Value:
struct c_##name;                   \
-        typedef struct c_##name * name;    \
-        extern struct class * const _##name; \
-        struct c_##name
-
-

Definition at line 15 of file class.h.

- -
-
- -
-
- - - - -
#define CLASS_MAGIC   0xFEFE
-
-
- -

Definition at line 13 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
#define CREATE_CLASS( name,
 _parent,
 ... 
)
-
-
-Value:
static struct class c_##name;      \
-        static void _classInit_(void) {    \
-                c_##name.parent = _##_parent;  \
-                c_##name.init   = NULL;        \
-        }                                  \
-        static struct class c_##name = {   \
-                CLASS_MAGIC,                   \
-                NULL,                          \
-                sizeof(struct c_##name),       \
-                _classInit_,                   \
-                INIT_IMPL(__VA_ARGS__)         \
-        }; struct class * const _##name = &c_##name
-
-

Definition at line 25 of file class.h.

- -
-
- -
-
- - - - - - - - -
#define EXTENDS( parent)   const char _[sizeof(struct c_##parent)]
-
-
- -

Definition at line 21 of file class.h.

- -
-
- -
-
- - - - - - - - -
#define HAS_PARENT( class)   (NULL != ((class)->parent))
-
-
- -

Definition at line 71 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define IFACE_EXISTS( class,
 iface 
)   (NULL != IFACE_GET((class),(iface)))
-
-
- -

Definition at line 69 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define IFACE_GET( class,
 iface 
)   (interfaceGet(&((class)->impl),(iface)))
-
-
- -

Definition at line 68 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#define RETCALL( object,
 _iface,
 method,
 ret,
 ... 
)
-
-
-Value:
do {                                             \
-                _CALL(object, _iface, method, ##__VA_ARGS__); \
-                ret = iface->method(object, ##__VA_ARGS__);  \
-        } while(0)
-
-

Definition at line 61 of file class.h.

- -
-
-

Typedef Documentation

- -
-
- - - - -
typedef struct class* class_ptr
-
-
- -

Definition at line 76 of file class.h.

- -
-
- -
-
- - - - -
typedef void(* fptr_classInit)(void)
-
-
- -

Definition at line 73 of file class.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - -
class_ptr class_getClass (void * )
-
-
- -

Definition at line 21 of file class.c.

-
{
-        return *(class_ptr *)(object - sizeof(void*));
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void* class_getInterface (class_ptr,
iface_ptr  
)
-
-
- -

Definition at line 8 of file class.c.

-
{
-        void * iface = (void *)IFACE_GET(*class, _iface);
-
-        while(NULL == iface && HAS_PARENT(*class)) {
-                *class = (*class)->parent;
-                iface = (void *)IFACE_GET(*class, _iface);
-        }
-
-        return iface;
-}
-
-
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/class_8h__dep__incl.map b/docs/html/class_8h__dep__incl.map deleted file mode 100644 index fe1fa30..0000000 --- a/docs/html/class_8h__dep__incl.map +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/html/class_8h__dep__incl.md5 b/docs/html/class_8h__dep__incl.md5 deleted file mode 100644 index bae8614..0000000 --- a/docs/html/class_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -67b05a97c7d2bb2f2ee8cbd85edaea47 \ No newline at end of file diff --git a/docs/html/class_8h__dep__incl.png b/docs/html/class_8h__dep__incl.png deleted file mode 100644 index 08c7026..0000000 Binary files a/docs/html/class_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/class_8h__incl.map b/docs/html/class_8h__incl.map deleted file mode 100644 index 8082454..0000000 --- a/docs/html/class_8h__incl.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/class_8h__incl.md5 b/docs/html/class_8h__incl.md5 deleted file mode 100644 index f2d23c5..0000000 --- a/docs/html/class_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -12c1cadb41292afd851074fffef5daa9 \ No newline at end of file diff --git a/docs/html/class_8h__incl.png b/docs/html/class_8h__incl.png deleted file mode 100644 index 39f617a..0000000 Binary files a/docs/html/class_8h__incl.png and /dev/null differ diff --git a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.map b/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.map deleted file mode 100644 index 3b39aa3..0000000 --- a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 b/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 deleted file mode 100644 index 1ea4dc6..0000000 --- a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -26bc749db3f2482bfaa222c2df1cdda1 \ No newline at end of file diff --git a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.png b/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.png deleted file mode 100644 index f38c397..0000000 Binary files a/docs/html/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.png and /dev/null differ diff --git a/docs/html/class_8h_source.html b/docs/html/class_8h_source.html deleted file mode 100644 index 8340976..0000000 --- a/docs/html/class_8h_source.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - -server: include/class.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/class.h

-
-
-Go to the documentation of this file.
00001 #ifndef __CLASS_H__
-00002 #define __CLASS_H__
-00003 
-00004 #include <stdarg.h>
-00005 #include <sys/types.h>
-00006 #include <string.h>
-00007 #include <assert.h>
-00008 
-00009 #include "interface.h"
-00010 
-00011 #define _ISOC99_SOURCE
-00012 
-00013 #define CLASS_MAGIC    0xFEFE
-00014 
-00015 #define CLASS(name)                    \
-00016         struct c_##name;                   \
-00017         typedef struct c_##name * name;    \
-00018         extern struct class * const _##name; \
-00019         struct c_##name
-00020 
-00021 #define EXTENDS(parent) \
-00022         const char _[sizeof(struct c_##parent)]
-00023 
-00024 #define _NULL   NULL
-00025 #define CREATE_CLASS(name,_parent,...) \
-00026         static struct class c_##name;      \
-00027         static void _classInit_(void) {    \
-00028                 c_##name.parent = _##_parent;  \
-00029                 c_##name.init   = NULL;        \
-00030         }                                  \
-00031         static struct class c_##name = {   \
-00032                 CLASS_MAGIC,                   \
-00033                 NULL,                          \
-00034                 sizeof(struct c_##name),       \
-00035                 _classInit_,                   \
-00036                 INIT_IMPL(__VA_ARGS__)         \
-00037         }; struct class * const _##name = &c_##name
-00038 
-00043 #define _CALL(object,_iface,method,...)                                       \
-00044         class_ptr           class = class_getClass((object));                     \
-00045         struct i_##_iface * iface;                                                \
-00046         if (class->init)        class->init();                                        \
-00047         iface = (struct i_##_iface *)class_getInterface(&class, &i_##_iface);     \
-00048         while ((NULL == iface || NULL == iface->method) && HAS_PARENT(class)) {   \
-00049                 class = class->parent;                                                \
-00050                 if (class->init)        class->init();                                    \
-00051                 iface = (struct i_##_iface *)class_getInterface(&class, &i_##_iface); \
-00052         };                                                                        \
-00053         assert(NULL != iface->method);
-00054 
-00055 #define CALL(object,_iface,method,...)               \
-00056         do {                                             \
-00057                 _CALL(object, _iface, method, ##__VA_ARGS__); \
-00058                 iface->method(object, ##__VA_ARGS__);        \
-00059         } while(0)
-00060 
-00061 #define RETCALL(object,_iface,method,ret,...)        \
-00062         do {                                             \
-00063                 _CALL(object, _iface, method, ##__VA_ARGS__); \
-00064                 ret = iface->method(object, ##__VA_ARGS__);  \
-00065         } while(0)
-00066 
-00067 
-00068 #define IFACE_GET(class,iface)          (interfaceGet(&((class)->impl),(iface)))
-00069 #define IFACE_EXISTS(class,iface)       (NULL != IFACE_GET((class),(iface)))
-00070 
-00071 #define HAS_PARENT(class)                       (NULL != ((class)->parent))
-00072 
-00073 typedef void (* fptr_classInit)(void);
-00074 
-00075 struct class;
-00076 typedef struct class * class_ptr;
-00077 struct class {
-00078         const int         magic;
-00079         class_ptr         parent;
-00080         size_t            object_size;
-00081         fptr_classInit    init;
-00082         struct iface_impl impl;
-00083 };
-00084 
-00085 extern void *    class_getInterface(class_ptr *, iface_ptr);
-00086 extern class_ptr class_getClass(void *);
-00087 
-00088 #endif // __CLASS_H__
-00089 
-00090 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/classes.html b/docs/html/classes.html deleted file mode 100644 index f5270a8..0000000 --- a/docs/html/classes.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - -server: Class Index - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

Class Index

-
-
-
C | H | I | L | S
- -
  C  
-
HttpRequestParser   i_Class   interface   LoggerSyslog   
class   HttpRequestQueue   i_Logger   
  L  
-
  S  
-
  H  
-
HttpResponse   i_StreamReader   Logger   Server   
HttpHeader   
  I  
-
iface_impl   LoggerStderr   Sock   
HttpRequest   
C | H | I | L | S
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/close__conn_8c.html b/docs/html/close__conn_8c.html deleted file mode 100644 index f932dcc..0000000 --- a/docs/html/close__conn_8c.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - -server: src/server/close_conn.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/server/close_conn.c File Reference

-
-
-
#include <string.h>
-#include "server.h"
-#include "interface/class.h"
-
-Include dependency graph for close_conn.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

void serverCloseConn (Server this, unsigned int i)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void serverCloseConn (Server this,
unsigned int i 
)
-
-
- -

Definition at line 7 of file close_conn.c.

-
{
-        int fd = (this->fds)[i].fd;
-
-        delete(&((this->conns)[fd].sock));
-        delete(&((this->conns)[fd].reader));
-        memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
-        (this->fds)[i].events = 0;
-        (this->fds)[i].revents = 0;
-        (this->fds)[i].fd = 0;
-        this->ndel++;
-//      CLEAR_CONN(this, i);
-//      this->nfds--;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/close__conn_8c__incl.map b/docs/html/close__conn_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/close__conn_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/close__conn_8c__incl.md5 b/docs/html/close__conn_8c__incl.md5 deleted file mode 100644 index 89fb410..0000000 --- a/docs/html/close__conn_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -680a421e377c1cfade97ad3db077eb73 \ No newline at end of file diff --git a/docs/html/close__conn_8c__incl.png b/docs/html/close__conn_8c__incl.png deleted file mode 100644 index 5187692..0000000 Binary files a/docs/html/close__conn_8c__incl.png and /dev/null differ diff --git a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.map b/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.map deleted file mode 100644 index 18438a9..0000000 --- a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 b/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 deleted file mode 100644 index 7ae5cd5..0000000 --- a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -ec0f0d34bf543ab4e0985794d4eb997c \ No newline at end of file diff --git a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.png b/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.png deleted file mode 100644 index 054f982..0000000 Binary files a/docs/html/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.png and /dev/null differ diff --git a/docs/html/close__conn_8c_source.html b/docs/html/close__conn_8c_source.html deleted file mode 100644 index 9c22b4a..0000000 --- a/docs/html/close__conn_8c_source.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - -server: src/server/close_conn.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/close_conn.c

-
-
-Go to the documentation of this file.
00001 #include <string.h>
-00002 
-00003 #include "server.h"
-00004 #include "interface/class.h"
-00005 
-00006 void
-00007 serverCloseConn(Server this, unsigned int i)
-00008 {
-00009         int fd = (this->fds)[i].fd;
-00010 
-00011         delete(&((this->conns)[fd].sock));
-00012         delete(&((this->conns)[fd].reader));
-00013         memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
-00014         (this->fds)[i].events = 0;
-00015         (this->fds)[i].revents = 0;
-00016         (this->fds)[i].fd = 0;
-00017         this->ndel++;
-00018 //      CLEAR_CONN(this, i);
-00019 //      this->nfds--;
-00020 }
-00021 
-00022 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/closed.png b/docs/html/closed.png deleted file mode 100644 index b7d4bd9..0000000 Binary files a/docs/html/closed.png and /dev/null differ diff --git a/docs/html/config_8h.html b/docs/html/config_8h.html deleted file mode 100644 index 6672470..0000000 --- a/docs/html/config_8h.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - -server: config.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

config.h File Reference

-
-
- -

Go to the source code of this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-Defines

#define HAVE_DLFCN_H   1
#define HAVE_INTTYPES_H   1
#define HAVE_JSON_JSON_H   1
#define HAVE_LIBJSON   1
#define HAVE_MEMORY_H   1
#define HAVE_MEMSET   1
#define HAVE_STDARG_H   1
#define HAVE_STDBOOL_H   1
#define HAVE_STDINT_H   1
#define HAVE_STDIO_H   1
#define HAVE_STDLIB_H   1
#define HAVE_STRINGS_H   1
#define HAVE_STRING_H   1
#define HAVE_SYSLOG_H   1
#define HAVE_SYS_STAT_H   1
#define HAVE_SYS_TYPES_H   1
#define HAVE_UNISTD_H   1
#define HAVE__BOOL   1
#define LT_OBJDIR   ".libs/"
#define PACKAGE   "cclass"
#define PACKAGE_BUGREPORT   "Georg Hopp <georg@steffers.org>"
#define PACKAGE_NAME   "cclass"
#define PACKAGE_STRING   "cclass 0.0.1"
#define PACKAGE_TARNAME   "cclass"
#define PACKAGE_URL   ""
#define PACKAGE_VERSION   "0.0.1"
#define STDC_HEADERS   1
#define VERSION   "0.0.1"
-

Define Documentation

- -
-
- - - - -
#define HAVE__BOOL   1
-
-
- -

Definition at line 56 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_DLFCN_H   1
-
-
- -

Definition at line 5 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_INTTYPES_H   1
-
-
- -

Definition at line 8 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_JSON_JSON_H   1
-
-
- -

Definition at line 11 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_LIBJSON   1
-
-
- -

Definition at line 14 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_MEMORY_H   1
-
-
- -

Definition at line 17 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_MEMSET   1
-
-
- -

Definition at line 20 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STDARG_H   1
-
-
- -

Definition at line 23 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STDBOOL_H   1
-
-
- -

Definition at line 26 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STDINT_H   1
-
-
- -

Definition at line 29 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STDIO_H   1
-
-
- -

Definition at line 32 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STDLIB_H   1
-
-
- -

Definition at line 35 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STRING_H   1
-
-
- -

Definition at line 41 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_STRINGS_H   1
-
-
- -

Definition at line 38 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_SYS_STAT_H   1
-
-
- -

Definition at line 47 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_SYS_TYPES_H   1
-
-
- -

Definition at line 50 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_SYSLOG_H   1
-
-
- -

Definition at line 44 of file config.h.

- -
-
- -
-
- - - - -
#define HAVE_UNISTD_H   1
-
-
- -

Definition at line 53 of file config.h.

- -
-
- -
-
- - - - -
#define LT_OBJDIR   ".libs/"
-
-
- -

Definition at line 60 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE   "cclass"
-
-
- -

Definition at line 66 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_BUGREPORT   "Georg Hopp <georg@steffers.org>"
-
-
- -

Definition at line 69 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_NAME   "cclass"
-
-
- -

Definition at line 72 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_STRING   "cclass 0.0.1"
-
-
- -

Definition at line 75 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_TARNAME   "cclass"
-
-
- -

Definition at line 78 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_URL   ""
-
-
- -

Definition at line 81 of file config.h.

- -
-
- -
-
- - - - -
#define PACKAGE_VERSION   "0.0.1"
-
-
- -

Definition at line 84 of file config.h.

- -
-
- -
-
- - - - -
#define STDC_HEADERS   1
-
-
- -

Definition at line 87 of file config.h.

- -
-
- -
-
- - - - -
#define VERSION   "0.0.1"
-
-
- -

Definition at line 90 of file config.h.

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/config_8h_source.html b/docs/html/config_8h_source.html deleted file mode 100644 index 8ad6ae0..0000000 --- a/docs/html/config_8h_source.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - -server: config.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

config.h

-
-
-Go to the documentation of this file.
00001 /* config.h.  Generated from config.h.in by configure.  */
-00002 /* config.h.in.  Generated from configure.ac by autoheader.  */
-00003 
-00004 /* Define to 1 if you have the <dlfcn.h> header file. */
-00005 #define HAVE_DLFCN_H 1
-00006 
-00007 /* Define to 1 if you have the <inttypes.h> header file. */
-00008 #define HAVE_INTTYPES_H 1
-00009 
-00010 /* Define to 1 if you have the <json/json.h> header file. */
-00011 #define HAVE_JSON_JSON_H 1
-00012 
-00013 /* Define to 1 if you have the `json' library (-ljson). */
-00014 #define HAVE_LIBJSON 1
-00015 
-00016 /* Define to 1 if you have the <memory.h> header file. */
-00017 #define HAVE_MEMORY_H 1
-00018 
-00019 /* Define to 1 if you have the `memset' function. */
-00020 #define HAVE_MEMSET 1
-00021 
-00022 /* Define to 1 if you have the <stdarg.h> header file. */
-00023 #define HAVE_STDARG_H 1
-00024 
-00025 /* Define to 1 if stdbool.h conforms to C99. */
-00026 #define HAVE_STDBOOL_H 1
-00027 
-00028 /* Define to 1 if you have the <stdint.h> header file. */
-00029 #define HAVE_STDINT_H 1
-00030 
-00031 /* Define to 1 if you have the <stdio.h> header file. */
-00032 #define HAVE_STDIO_H 1
-00033 
-00034 /* Define to 1 if you have the <stdlib.h> header file. */
-00035 #define HAVE_STDLIB_H 1
-00036 
-00037 /* Define to 1 if you have the <strings.h> header file. */
-00038 #define HAVE_STRINGS_H 1
-00039 
-00040 /* Define to 1 if you have the <string.h> header file. */
-00041 #define HAVE_STRING_H 1
-00042 
-00043 /* Define to 1 if you have the <syslog.h> header file. */
-00044 #define HAVE_SYSLOG_H 1
-00045 
-00046 /* Define to 1 if you have the <sys/stat.h> header file. */
-00047 #define HAVE_SYS_STAT_H 1
-00048 
-00049 /* Define to 1 if you have the <sys/types.h> header file. */
-00050 #define HAVE_SYS_TYPES_H 1
-00051 
-00052 /* Define to 1 if you have the <unistd.h> header file. */
-00053 #define HAVE_UNISTD_H 1
-00054 
-00055 /* Define to 1 if the system has the type `_Bool'. */
-00056 #define HAVE__BOOL 1
-00057 
-00058 /* Define to the sub-directory in which libtool stores uninstalled libraries.
-00059    */
-00060 #define LT_OBJDIR ".libs/"
-00061 
-00062 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
-00063 /* #undef NO_MINUS_C_MINUS_O */
-00064 
-00065 /* Name of package */
-00066 #define PACKAGE "cclass"
-00067 
-00068 /* Define to the address where bug reports for this package should be sent. */
-00069 #define PACKAGE_BUGREPORT "Georg Hopp <georg@steffers.org>"
-00070 
-00071 /* Define to the full name of this package. */
-00072 #define PACKAGE_NAME "cclass"
-00073 
-00074 /* Define to the full name and version of this package. */
-00075 #define PACKAGE_STRING "cclass 0.0.1"
-00076 
-00077 /* Define to the one symbol short name of this package. */
-00078 #define PACKAGE_TARNAME "cclass"
-00079 
-00080 /* Define to the home page for this package. */
-00081 #define PACKAGE_URL ""
-00082 
-00083 /* Define to the version of this package. */
-00084 #define PACKAGE_VERSION "0.0.1"
-00085 
-00086 /* Define to 1 if you have the ANSI C header files. */
-00087 #define STDC_HEADERS 1
-00088 
-00089 /* Version number of package */
-00090 #define VERSION "0.0.1"
-00091 
-00092 /* Define to `__inline__' or `__inline' if that's what the C compiler
-00093    calls it, or to nothing if 'inline' is not supported under any name.  */
-00094 #ifndef __cplusplus
-00095 /* #undef inline */
-00096 #endif
-00097 
-00098 /* Define to `int' if <sys/types.h> does not define. */
-00099 /* #undef pid_t */
-00100 
-00101 /* Define to `unsigned int' if <sys/types.h> does not define. */
-00102 /* #undef size_t */
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/connect_8c.html b/docs/html/connect_8c.html deleted file mode 100644 index 51c623b..0000000 --- a/docs/html/connect_8c.html +++ /dev/null @@ -1,180 +0,0 @@ - - - - -server: src/socket/connect.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/socket/connect.c File Reference

-
-
-
#include <stdlib.h>
-#include <errno.h>
-#include "socket.h"
-#include "interface/class.h"
-#include "interface/logger.h"
-
-Include dependency graph for connect.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

void socketConnect (Sock this, const char *addr)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void socketConnect (Sock this,
const char * addr 
)
-
-
- -

Definition at line 10 of file connect.c.

-
{
-        inet_pton(AF_INET, addr, &((this->addr).sin_addr));
-    (this->addr).sin_family = AF_INET;           /* Internet address family */
-    (this->addr).sin_port   = htons(this->port); /* Local port */
-
-        if (-1 == connect(this->handle, (struct sockaddr*) &(this->addr), sizeof(this->addr))) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error connection socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/connect_8c__incl.map b/docs/html/connect_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/connect_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/connect_8c__incl.md5 b/docs/html/connect_8c__incl.md5 deleted file mode 100644 index 52057cb..0000000 --- a/docs/html/connect_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -369f6f148cdb8193e9425b0be26688fa \ No newline at end of file diff --git a/docs/html/connect_8c__incl.png b/docs/html/connect_8c__incl.png deleted file mode 100644 index 24b7067..0000000 Binary files a/docs/html/connect_8c__incl.png and /dev/null differ diff --git a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map b/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map deleted file mode 100644 index 59d72ce..0000000 --- a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 b/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 deleted file mode 100644 index 995511b..0000000 --- a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -407886eba5bb27f4936db6d792217edc \ No newline at end of file diff --git a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png b/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png deleted file mode 100644 index 17319e9..0000000 Binary files a/docs/html/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png and /dev/null differ diff --git a/docs/html/connect_8c_source.html b/docs/html/connect_8c_source.html deleted file mode 100644 index 4b7ed99..0000000 --- a/docs/html/connect_8c_source.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - -server: src/socket/connect.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/socket/connect.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>     /* for atoi() and exit() */
-00002 #include <errno.h>      /* for errno */
-00003 
-00004 #include "socket.h"
-00005 #include "interface/class.h"
-00006 #include "interface/logger.h"
-00007 
-00008 
-00009 void
-00010 socketConnect(Sock this, const char * addr)
-00011 {
-00012         inet_pton(AF_INET, addr, &((this->addr).sin_addr));
-00013     (this->addr).sin_family = AF_INET;           /* Internet address family */
-00014     (this->addr).sin_port   = htons(this->port); /* Local port */
-00015 
-00016         if (-1 == connect(this->handle, (struct sockaddr*) &(this->addr), sizeof(this->addr))) {
-00017         loggerLog(this->log, LOGGER_CRIT,
-00018                 "error connection socket: %s - service terminated",
-00019                 strerror(errno));
-00020         exit(EXIT_FAILURE);
-00021     }
-00022 }
-00023 
-00024 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/daemonize_8c.html b/docs/html/daemonize_8c.html deleted file mode 100644 index e2f505e..0000000 --- a/docs/html/daemonize_8c.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - -server: src/daemonize.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/daemonize.c File Reference

-
-
-
#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-
-Include dependency graph for daemonize.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

void daemonize (void)
-

Function Documentation

- -
-
- - - - - - - - -
void daemonize (void )
-
-
- -

Definition at line 6 of file daemonize.c.

-
                     {
-    pid_t pid;
-
-    if (0 > ((pid = fork()))) {
-        perror("deamoinze[fork]");
-        exit(EXIT_FAILURE);
-    } else if (0 != pid) {
-        exit(EXIT_SUCCESS);
-    }
-
-    /* make new child session leader */
-    setsid();
-
-    /* connect all standard streams to /dev/null */
-    stderr = freopen("/dev/null", "w", stderr);
-    stdin  = freopen("/dev/null", "r", stdin);
-    stdout = freopen("/dev/null", "w", stdout);
-}
-
-
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/daemonize_8c__incl.map b/docs/html/daemonize_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/daemonize_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/daemonize_8c__incl.md5 b/docs/html/daemonize_8c__incl.md5 deleted file mode 100644 index f45240d..0000000 --- a/docs/html/daemonize_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -95c7a7499b1da3ea08617c6b311a882c \ No newline at end of file diff --git a/docs/html/daemonize_8c__incl.png b/docs/html/daemonize_8c__incl.png deleted file mode 100644 index f5c6c41..0000000 Binary files a/docs/html/daemonize_8c__incl.png and /dev/null differ diff --git a/docs/html/daemonize_8c_source.html b/docs/html/daemonize_8c_source.html deleted file mode 100644 index 5dca65b..0000000 --- a/docs/html/daemonize_8c_source.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - -server: src/daemonize.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/daemonize.c

-
-
-Go to the documentation of this file.
00001 #include <stdio.h>      /* for printf() and fprintf() */
-00002 #include <unistd.h>     /* for getopt */
-00003 #include <stdlib.h>
-00004 
-00005 
-00006 void daemonize(void) {
-00007     pid_t pid;
-00008 
-00009     if (0 > ((pid = fork()))) {
-00010         perror("deamoinze[fork]");
-00011         exit(EXIT_FAILURE);
-00012     } else if (0 != pid) {
-00013         exit(EXIT_SUCCESS);
-00014     }
-00015 
-00016     /* make new child session leader */
-00017     setsid();
-00018 
-00019     /* connect all standard streams to /dev/null */
-00020     stderr = freopen("/dev/null", "w", stderr);
-00021     stdin  = freopen("/dev/null", "r", stdin);
-00022     stdout = freopen("/dev/null", "w", stdout);
-00023 }
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/doxygen.css b/docs/html/doxygen.css deleted file mode 100644 index 101c7a5..0000000 --- a/docs/html/doxygen.css +++ /dev/null @@ -1,800 +0,0 @@ -/* The standard CSS for doxygen */ - -body, table, div, p, dl { - font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; - font-size: 12px; -} - -/* @group Heading Levels */ - -h1 { - font-size: 150%; -} - -h2 { - font-size: 120%; -} - -h3 { - font-size: 100%; -} - -dt { - font-weight: bold; -} - -div.multicol { - -moz-column-gap: 1em; - -webkit-column-gap: 1em; - -moz-column-count: 3; - -webkit-column-count: 3; -} - -p.startli, p.startdd, p.starttd { - margin-top: 2px; -} - -p.endli { - margin-bottom: 0px; -} - -p.enddd { - margin-bottom: 4px; -} - -p.endtd { - margin-bottom: 2px; -} - -/* @end */ - -caption { - font-weight: bold; -} - -span.legend { - font-size: 70%; - text-align: center; -} - -h3.version { - font-size: 90%; - text-align: center; -} - -div.qindex, div.navtab{ - background-color: #EBEFF6; - border: 1px solid #A3B4D7; - text-align: center; - margin: 2px; - padding: 2px; -} - -div.qindex, div.navpath { - width: 100%; - line-height: 140%; -} - -div.navtab { - margin-right: 15px; -} - -/* @group Link Styling */ - -a { - color: #3D578C; - font-weight: normal; - text-decoration: none; -} - -.contents a:visited { - color: #4665A2; -} - -a:hover { - text-decoration: underline; -} - -a.qindex { - font-weight: bold; -} - -a.qindexHL { - font-weight: bold; - background-color: #9CAFD4; - color: #ffffff; - border: 1px double #869DCA; -} - -.contents a.qindexHL:visited { - color: #ffffff; -} - -a.el { - font-weight: bold; -} - -a.elRef { -} - -a.code { - color: #4665A2; -} - -a.codeRef { - color: #4665A2; -} - -/* @end */ - -dl.el { - margin-left: -1cm; -} - -.fragment { - font-family: monospace, fixed; - font-size: 105%; -} - -pre.fragment { - border: 1px solid #C4CFE5; - background-color: #FBFCFD; - padding: 4px 6px; - margin: 4px 8px 4px 2px; - overflow: auto; - word-wrap: break-word; - font-size: 9pt; - line-height: 125%; -} - -div.ah { - background-color: black; - font-weight: bold; - color: #ffffff; - margin-bottom: 3px; - margin-top: 3px; - padding: 0.2em; - border: solid thin #333; - border-radius: 0.5em; - -webkit-border-radius: .5em; - -moz-border-radius: .5em; - box-shadow: 2px 2px 3px #999; - -webkit-box-shadow: 2px 2px 3px #999; - -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; - background-image: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#000),color-stop(0.3, #444)); - background-image: -moz-linear-gradient(center top, #eee 0%, #444 40%, #000); -} - -div.groupHeader { - margin-left: 16px; - margin-top: 12px; - font-weight: bold; -} - -div.groupText { - margin-left: 16px; - font-style: italic; -} - -body { - background: white; - color: black; - margin: 0; -} - -div.contents { - margin-top: 10px; - margin-left: 10px; - margin-right: 10px; -} - -td.indexkey { - background-color: #EBEFF6; - font-weight: bold; - border: 1px solid #C4CFE5; - margin: 2px 0px 2px 0; - padding: 2px 10px; -} - -td.indexvalue { - background-color: #EBEFF6; - border: 1px solid #C4CFE5; - padding: 2px 10px; - margin: 2px 0px; -} - -tr.memlist { - background-color: #EEF1F7; -} - -p.formulaDsp { - text-align: center; -} - -img.formulaDsp { - -} - -img.formulaInl { - vertical-align: middle; -} - -div.center { - text-align: center; - margin-top: 0px; - margin-bottom: 0px; - padding: 0px; -} - -div.center img { - border: 0px; -} - -address.footer { - text-align: right; - padding-right: 12px; -} - -img.footer { - border: 0px; - vertical-align: middle; -} - -/* @group Code Colorization */ - -span.keyword { - color: #008000 -} - -span.keywordtype { - color: #604020 -} - -span.keywordflow { - color: #e08000 -} - -span.comment { - color: #800000 -} - -span.preprocessor { - color: #806020 -} - -span.stringliteral { - color: #002080 -} - -span.charliteral { - color: #008080 -} - -span.vhdldigit { - color: #ff00ff -} - -span.vhdlchar { - color: #000000 -} - -span.vhdlkeyword { - color: #700070 -} - -span.vhdllogic { - color: #ff0000 -} - -/* @end */ - -/* -.search { - color: #003399; - font-weight: bold; -} - -form.search { - margin-bottom: 0px; - margin-top: 0px; -} - -input.search { - font-size: 75%; - color: #000080; - font-weight: normal; - background-color: #e8eef2; -} -*/ - -td.tiny { - font-size: 75%; -} - -.dirtab { - padding: 4px; - border-collapse: collapse; - border: 1px solid #A3B4D7; -} - -th.dirtab { - background: #EBEFF6; - font-weight: bold; -} - -hr { - height: 0px; - border: none; - border-top: 1px solid #4A6AAA; -} - -hr.footer { - height: 1px; -} - -/* @group Member Descriptions */ - -table.memberdecls { - border-spacing: 0px; - padding: 0px; -} - -.mdescLeft, .mdescRight, -.memItemLeft, .memItemRight, -.memTemplItemLeft, .memTemplItemRight, .memTemplParams { - background-color: #F9FAFC; - border: none; - margin: 4px; - padding: 1px 0 0 8px; -} - -.mdescLeft, .mdescRight { - padding: 0px 8px 4px 8px; - color: #555; -} - -.memItemLeft, .memItemRight, .memTemplParams { - border-top: 1px solid #C4CFE5; -} - -.memItemLeft, .memTemplItemLeft { - white-space: nowrap; -} - -.memTemplParams { - color: #4665A2; - white-space: nowrap; -} - -/* @end */ - -/* @group Member Details */ - -/* Styles for detailed member documentation */ - -.memtemplate { - font-size: 80%; - color: #4665A2; - font-weight: normal; - margin-left: 9px; -} - -.memnav { - background-color: #EBEFF6; - border: 1px solid #A3B4D7; - text-align: center; - margin: 2px; - margin-right: 15px; - padding: 2px; -} - -.memitem { - padding: 0; - margin-bottom: 10px; -} - -.memname { - white-space: nowrap; - font-weight: bold; - margin-left: 6px; -} - -.memproto { - border-top: 1px solid #A8B8D9; - border-left: 1px solid #A8B8D9; - border-right: 1px solid #A8B8D9; - padding: 6px 0px 6px 0px; - color: #253555; - font-weight: bold; - text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); - /* opera specific markup */ - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - border-top-right-radius: 8px; - border-top-left-radius: 8px; - /* firefox specific markup */ - -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; - -moz-border-radius-topright: 8px; - -moz-border-radius-topleft: 8px; - /* webkit specific markup */ - -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - -webkit-border-top-right-radius: 8px; - -webkit-border-top-left-radius: 8px; - background-image:url('nav_f.png'); - background-repeat:repeat-x; - background-color: #E2E8F2; - -} - -.memdoc { - border-bottom: 1px solid #A8B8D9; - border-left: 1px solid #A8B8D9; - border-right: 1px solid #A8B8D9; - padding: 2px 5px; - background-color: #FBFCFD; - border-top-width: 0; - /* opera specific markup */ - border-bottom-left-radius: 8px; - border-bottom-right-radius: 8px; - box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - /* firefox specific markup */ - -moz-border-radius-bottomleft: 8px; - -moz-border-radius-bottomright: 8px; - -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; - background-image: -moz-linear-gradient(center top, #FFFFFF 0%, #FFFFFF 60%, #F7F8FB 95%, #EEF1F7); - /* webkit specific markup */ - -webkit-border-bottom-left-radius: 8px; - -webkit-border-bottom-right-radius: 8px; - -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); - background-image: -webkit-gradient(linear,center top,center bottom,from(#FFFFFF), color-stop(0.6,#FFFFFF), color-stop(0.60,#FFFFFF), color-stop(0.95,#F7F8FB), to(#EEF1F7)); -} - -.paramkey { - text-align: right; -} - -.paramtype { - white-space: nowrap; -} - -.paramname { - color: #602020; - white-space: nowrap; -} -.paramname em { - font-style: normal; -} - -.params, .retval, .exception, .tparams { - border-spacing: 6px 2px; -} - -.params .paramname, .retval .paramname { - font-weight: bold; - vertical-align: top; -} - -.params .paramtype { - font-style: italic; - vertical-align: top; -} - -.params .paramdir { - font-family: "courier new",courier,monospace; - vertical-align: top; -} - - - - -/* @end */ - -/* @group Directory (tree) */ - -/* for the tree view */ - -.ftvtree { - font-family: sans-serif; - margin: 0px; -} - -/* these are for tree view when used as main index */ - -.directory { - font-size: 9pt; - font-weight: bold; - margin: 5px; -} - -.directory h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} - -/* -The following two styles can be used to replace the root node title -with an image of your choice. Simply uncomment the next two styles, -specify the name of your image and be sure to set 'height' to the -proper pixel height of your image. -*/ - -/* -.directory h3.swap { - height: 61px; - background-repeat: no-repeat; - background-image: url("yourimage.gif"); -} -.directory h3.swap span { - display: none; -} -*/ - -.directory > h3 { - margin-top: 0; -} - -.directory p { - margin: 0px; - white-space: nowrap; -} - -.directory div { - display: none; - margin: 0px; -} - -.directory img { - vertical-align: -30%; -} - -/* these are for tree view when not used as main index */ - -.directory-alt { - font-size: 100%; - font-weight: bold; -} - -.directory-alt h3 { - margin: 0px; - margin-top: 1em; - font-size: 11pt; -} - -.directory-alt > h3 { - margin-top: 0; -} - -.directory-alt p { - margin: 0px; - white-space: nowrap; -} - -.directory-alt div { - display: none; - margin: 0px; -} - -.directory-alt img { - vertical-align: -30%; -} - -/* @end */ - -div.dynheader { - margin-top: 8px; -} - -address { - font-style: normal; - color: #2A3D61; -} - -table.doxtable { - border-collapse:collapse; -} - -table.doxtable td, table.doxtable th { - border: 1px solid #2D4068; - padding: 3px 7px 2px; -} - -table.doxtable th { - background-color: #374F7F; - color: #FFFFFF; - font-size: 110%; - padding-bottom: 4px; - padding-top: 5px; - text-align:left; -} - -.tabsearch { - top: 0px; - left: 10px; - height: 36px; - background-image: url('tab_b.png'); - z-index: 101; - overflow: hidden; - font-size: 13px; -} - -.navpath ul -{ - font-size: 11px; - background-image:url('tab_b.png'); - background-repeat:repeat-x; - height:30px; - line-height:30px; - color:#8AA0CC; - border:solid 1px #C2CDE4; - overflow:hidden; - margin:0px; - padding:0px; -} - -.navpath li -{ - list-style-type:none; - float:left; - padding-left:10px; - padding-right:15px; - background-image:url('bc_s.png'); - background-repeat:no-repeat; - background-position:right; - color:#364D7C; -} - -.navpath li.navelem a -{ - height:32px; - display:block; - text-decoration: none; - outline: none; -} - -.navpath li.navelem a:hover -{ - color:#6884BD; -} - -.navpath li.footer -{ - list-style-type:none; - float:right; - padding-left:10px; - padding-right:15px; - background-image:none; - background-repeat:no-repeat; - background-position:right; - color:#364D7C; - font-size: 8pt; -} - - -div.summary -{ - float: right; - font-size: 8pt; - padding-right: 5px; - width: 50%; - text-align: right; -} - -div.summary a -{ - white-space: nowrap; -} - -div.ingroups -{ - font-size: 8pt; - padding-left: 5px; - width: 50%; - text-align: left; -} - -div.ingroups a -{ - white-space: nowrap; -} - -div.header -{ - background-image:url('nav_h.png'); - background-repeat:repeat-x; - background-color: #F9FAFC; - margin: 0px; - border-bottom: 1px solid #C4CFE5; -} - -div.headertitle -{ - padding: 5px 5px 5px 10px; -} - -dl -{ - padding: 0 0 0 10px; -} - -dl.note, dl.warning, dl.attention, dl.pre, dl.post, dl.invariant, dl.deprecated, dl.todo, dl.test, dl.bug -{ - border-left:4px solid; - padding: 0 0 0 6px; -} - -dl.note -{ - border-color: #D0D000; -} - -dl.warning, dl.attention -{ - border-color: #FF0000; -} - -dl.pre, dl.post, dl.invariant -{ - border-color: #00D000; -} - -dl.deprecated -{ - border-color: #505050; -} - -dl.todo -{ - border-color: #00C0E0; -} - -dl.test -{ - border-color: #3030E0; -} - -dl.bug -{ - border-color: #C08050; -} - -#projectlogo -{ - text-align: center; - vertical-align: bottom; - border-collapse: separate; -} - -#projectlogo img -{ - border: 0px none; -} - -#projectname -{ - font: 300% arial,sans-serif; - margin: 0px; - padding: 0px; -} - -#projectbrief -{ - font: 120% arial,sans-serif; - margin: 0px; - padding: 0px; -} - -#projectnumber -{ - font: 50% arial,sans-serif; - margin: 0px; - padding: 0px; -} - -#titlearea -{ - padding: 0px; - margin: 0px; - width: 100%; - border-bottom: 1px solid #5373B4; -} - diff --git a/docs/html/doxygen.png b/docs/html/doxygen.png deleted file mode 100644 index 635ed52..0000000 Binary files a/docs/html/doxygen.png and /dev/null differ diff --git a/docs/html/files.html b/docs/html/files.html deleted file mode 100644 index 068ed67..0000000 --- a/docs/html/files.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - -server: File List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

File List

-
-
-
Here is a list of all files with brief descriptions:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
config.h [code]
include/class.h [code]
include/interface.h [code]
include/logger.h [code]
include/server.h [code]
include/signalHandling.h [code]
include/socket.h [code]
include/http/header.h [code]
include/http/request.h [code]
include/http/request_parser.h [code]
include/http/request_queue.h [code]
include/http/response.h [code]
include/interface/class.h [code]
include/interface/logger.h [code]
include/interface/stream_reader.h [code]
src/class.c [code]
src/daemonize.c [code]
src/interface.c [code]
src/logger.c [code]
src/server.c [code]
src/signalHandling.c [code]
src/socket.c [code]
src/testserver.c [code]
src/http/header.c [code]
src/http/request.c [code]
src/http/header/get.c [code]
src/http/header/sort.c [code]
src/http/request/header_get.c [code]
src/http/request/parser.c [code]
src/http/request/queue.c [code]
src/http/request/parser/get_header.c [code]
src/http/request/parser/get_request_line.c [code]
src/http/request/parser/parse.c [code]
src/interface/class.c [code]
src/interface/logger.c [code]
src/interface/stream_reader.c [code]
src/logger/stderr.c [code]
src/logger/syslog.c [code]
src/server/close_conn.c [code]
src/server/handle_accept.c [code]
src/server/poll.c [code]
src/server/read.c [code]
src/server/run.c [code]
src/socket/accept.c [code]
src/socket/connect.c [code]
src/socket/listen.c [code]
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/ftv2blank.png b/docs/html/ftv2blank.png deleted file mode 100644 index 3b7a29c..0000000 Binary files a/docs/html/ftv2blank.png and /dev/null differ diff --git a/docs/html/ftv2doc.png b/docs/html/ftv2doc.png deleted file mode 100644 index 310e441..0000000 Binary files a/docs/html/ftv2doc.png and /dev/null differ diff --git a/docs/html/ftv2folderclosed.png b/docs/html/ftv2folderclosed.png deleted file mode 100644 index 79aeaf7..0000000 Binary files a/docs/html/ftv2folderclosed.png and /dev/null differ diff --git a/docs/html/ftv2folderopen.png b/docs/html/ftv2folderopen.png deleted file mode 100644 index 1b703dd..0000000 Binary files a/docs/html/ftv2folderopen.png and /dev/null differ diff --git a/docs/html/ftv2lastnode.png b/docs/html/ftv2lastnode.png deleted file mode 100644 index 3b7a29c..0000000 Binary files a/docs/html/ftv2lastnode.png and /dev/null differ diff --git a/docs/html/ftv2link.png b/docs/html/ftv2link.png deleted file mode 100644 index 310e441..0000000 Binary files a/docs/html/ftv2link.png and /dev/null differ diff --git a/docs/html/ftv2mlastnode.png b/docs/html/ftv2mlastnode.png deleted file mode 100644 index ec51f17..0000000 Binary files a/docs/html/ftv2mlastnode.png and /dev/null differ diff --git a/docs/html/ftv2mnode.png b/docs/html/ftv2mnode.png deleted file mode 100644 index ec51f17..0000000 Binary files a/docs/html/ftv2mnode.png and /dev/null differ diff --git a/docs/html/ftv2node.png b/docs/html/ftv2node.png deleted file mode 100644 index 3b7a29c..0000000 Binary files a/docs/html/ftv2node.png and /dev/null differ diff --git a/docs/html/ftv2plastnode.png b/docs/html/ftv2plastnode.png deleted file mode 100644 index 270a965..0000000 Binary files a/docs/html/ftv2plastnode.png and /dev/null differ diff --git a/docs/html/ftv2pnode.png b/docs/html/ftv2pnode.png deleted file mode 100644 index 270a965..0000000 Binary files a/docs/html/ftv2pnode.png and /dev/null differ diff --git a/docs/html/ftv2splitbar.png b/docs/html/ftv2splitbar.png deleted file mode 100644 index f60a527..0000000 Binary files a/docs/html/ftv2splitbar.png and /dev/null differ diff --git a/docs/html/ftv2vertline.png b/docs/html/ftv2vertline.png deleted file mode 100644 index 3b7a29c..0000000 Binary files a/docs/html/ftv2vertline.png and /dev/null differ diff --git a/docs/html/functions.html b/docs/html/functions.html deleted file mode 100644 index aa20ab6..0000000 --- a/docs/html/functions.html +++ /dev/null @@ -1,355 +0,0 @@ - - - - -server: Class Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - - -
-
- -
-
-
- -
-
-
Here is a list of all class members with links to the classes they belong to:
- -

- _ -

- - -

- b -

- - -

- c -

- - -

- d -

- - -

- e -

- - -

- h -

- - -

- i -

- - -

- l -

- - -

- m -

- - -

- n -

- - -

- o -

- - -

- p -

- - -

- r -

- - -

- s -

- - -

- u -

- - -

- v -

- - -

- w -

-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/functions_func.html b/docs/html/functions_func.html deleted file mode 100644 index f9da040..0000000 --- a/docs/html/functions_func.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - -server: Class Members - Functions - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - -
-
- -
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/functions_vars.html b/docs/html/functions_vars.html deleted file mode 100644 index ad53efe..0000000 --- a/docs/html/functions_vars.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - -server: Class Members - Variables - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - - -
-
- -
-
-
- -
-
-  - -

- _ -

- - -

- b -

- - -

- c -

- - -

- d -

- - -

- h -

- - -

- i -

- - -

- l -

- - -

- m -

- - -

- n -

- - -

- o -

- - -

- p -

- - -

- r -

- - -

- s -

- - -

- u -

- - -

- v -

- - -

- w -

-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get_8c.html b/docs/html/get_8c.html deleted file mode 100644 index aee6849..0000000 --- a/docs/html/get_8c.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - -server: src/http/header/get.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/header/get.c File Reference

-
-
-
#include <stdlib.h>
-#include <ctype.h>
-#include "http/header.h"
-
-Include dependency graph for get.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

char * httpHeaderGet (const HttpHeader header[], int nheader, const char *name)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
char* httpHeaderGet (const HttpHeader header[],
int nheader,
const char * name 
)
-
-
- -

Definition at line 31 of file get.c.

-
{
-        unsigned long hash = sdbm((unsigned char *)name);
-        HttpHeader    found;
-
-        found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
-
-        return (NULL != found)? found->value : NULL;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get_8c__incl.map b/docs/html/get_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/get_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/get_8c__incl.md5 b/docs/html/get_8c__incl.md5 deleted file mode 100644 index 2f7b696..0000000 --- a/docs/html/get_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -1e88de88b5311e9915c958b3ce062f86 \ No newline at end of file diff --git a/docs/html/get_8c__incl.png b/docs/html/get_8c__incl.png deleted file mode 100644 index 9fa0700..0000000 Binary files a/docs/html/get_8c__incl.png and /dev/null differ diff --git a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.map b/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.map deleted file mode 100644 index 766089a..0000000 --- a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 b/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 deleted file mode 100644 index c120109..0000000 --- a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e121973e81d665acb1be05befc4d66dc \ No newline at end of file diff --git a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.png b/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.png deleted file mode 100644 index 7f1e965..0000000 Binary files a/docs/html/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.png and /dev/null differ diff --git a/docs/html/get_8c_source.html b/docs/html/get_8c_source.html deleted file mode 100644 index 3d61db1..0000000 --- a/docs/html/get_8c_source.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - -server: src/http/header/get.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/header/get.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <ctype.h>
-00003 
-00004 #include "http/header.h"
-00005 
-00006 static
-00007 inline
-00008 unsigned long
-00009 sdbm(const unsigned char * str)
-00010 {
-00011         unsigned long hash = 0;
-00012         int c;
-00013 
-00014         while ((c = tolower(*str++)))
-00015                 hash = c + (hash << 6) + (hash << 16) - hash;
-00016 
-00017         return hash;
-00018 }
-00019 
-00020 static
-00021 inline
-00022 int
-00023 comp (const void * _a, const void * _b)
-00024 {
-00025         unsigned long    a = *(unsigned long *)_a;
-00026         const HttpHeader b = *(const HttpHeader *)_b;
-00027         return (a < b->hash)? -1 : (a > b->hash)? 1 : 0;
-00028 }
-00029 
-00030 char *
-00031 httpHeaderGet(const HttpHeader header[], int nheader, const char * name)
-00032 {
-00033         unsigned long hash = sdbm((unsigned char *)name);
-00034         HttpHeader    found;
-00035 
-00036         found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
-00037 
-00038         return (NULL != found)? found->value : NULL;
-00039 }
-00040 
-00041 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get__header_8c.html b/docs/html/get__header_8c.html deleted file mode 100644 index f3c060d..0000000 --- a/docs/html/get__header_8c.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - -server: src/http/request/parser/get_header.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/parser/get_header.c File Reference

-
-
-
#include "class.h"
-#include "interface/class.h"
-#include "http/header.h"
-#include "http/request.h"
-
-Include dependency graph for get_header.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

void httpRequestParserGetHeader (HttpRequest request, char *line)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void httpRequestParserGetHeader (HttpRequest request,
char * line 
)
-
-
- -

Definition at line 7 of file get_header.c.

-
{
-        char * name  = line;
-        char * value = strchr(line, ':');
-
-        *value = 0;
-        for (; *value == ' ' && *value != 0; value++);
-
-        (request->header)[request->nheader++] = new(HttpHeader, name, value);
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get__header_8c__incl.map b/docs/html/get__header_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/get__header_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/get__header_8c__incl.md5 b/docs/html/get__header_8c__incl.md5 deleted file mode 100644 index 59de588..0000000 --- a/docs/html/get__header_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -4811240ca1816728301264f7b1794c6f \ No newline at end of file diff --git a/docs/html/get__header_8c__incl.png b/docs/html/get__header_8c__incl.png deleted file mode 100644 index aabdefb..0000000 Binary files a/docs/html/get__header_8c__incl.png and /dev/null differ diff --git a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.map b/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.map deleted file mode 100644 index aee7a10..0000000 --- a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 b/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 deleted file mode 100644 index 29aca07..0000000 --- a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -933e2e7f32c2b754d66448c2170a9cf7 \ No newline at end of file diff --git a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.png b/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.png deleted file mode 100644 index 0d7348b..0000000 Binary files a/docs/html/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.png and /dev/null differ diff --git a/docs/html/get__header_8c_source.html b/docs/html/get__header_8c_source.html deleted file mode 100644 index 8156645..0000000 --- a/docs/html/get__header_8c_source.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - -server: src/http/request/parser/get_header.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/parser/get_header.c

-
-
-Go to the documentation of this file.
00001 #include "class.h"
-00002 #include "interface/class.h"
-00003 #include "http/header.h"
-00004 #include "http/request.h"
-00005 
-00006 void
-00007 httpRequestParserGetHeader(HttpRequest request, char * line)
-00008 {
-00009         char * name  = line;
-00010         char * value = strchr(line, ':');
-00011 
-00012         *value = 0;
-00013         for (; *value == ' ' && *value != 0; value++);
-00014 
-00015         (request->header)[request->nheader++] = new(HttpHeader, name, value);
-00016 }
-00017 
-00018 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get__request__line_8c.html b/docs/html/get__request__line_8c.html deleted file mode 100644 index 19dbd0e..0000000 --- a/docs/html/get__request__line_8c.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - -server: src/http/request/parser/get_request_line.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/parser/get_request_line.c File Reference

-
-
-
#include <string.h>
-#include "http/request.h"
-
-Include dependency graph for get_request_line.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

void httpRequestParserGetRequestLine (HttpRequest request, char *line)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void httpRequestParserGetRequestLine (HttpRequest request,
char * line 
)
-
-
- -

Definition at line 7 of file get_request_line.c.

-
{
-        char * method, * uri, * version;
-
-        method = line;
-
-        uri    = strchr(line, ' ');
-        *uri++ = 0;
-        for (; *uri == ' ' && *uri != 0; uri++);
-
-        version    = strchr(uri, ' ');
-        *version++ = 0;
-        for (; *version == ' ' && *version != 0; version++);
-
-        request->method  = malloc(strlen(method) + 1);
-        strcpy(request->method, method);
-        request->uri     = malloc(strlen(uri) + 1);
-        strcpy(request->uri, uri);
-        request->version = malloc(strlen(version) + 1);
-        strcpy(request->version, method);
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/get__request__line_8c__incl.map b/docs/html/get__request__line_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/get__request__line_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/get__request__line_8c__incl.md5 b/docs/html/get__request__line_8c__incl.md5 deleted file mode 100644 index 6592b35..0000000 --- a/docs/html/get__request__line_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -cb6e586a8f9a0f50adfaac4b911b97f7 \ No newline at end of file diff --git a/docs/html/get__request__line_8c__incl.png b/docs/html/get__request__line_8c__incl.png deleted file mode 100644 index ebf53a2..0000000 Binary files a/docs/html/get__request__line_8c__incl.png and /dev/null differ diff --git a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.map b/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.map deleted file mode 100644 index 77a4b0c..0000000 --- a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 b/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 deleted file mode 100644 index 9616c5b..0000000 --- a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -99e054c8a121835084e75516f7b257cf \ No newline at end of file diff --git a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.png b/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.png deleted file mode 100644 index e377d4c..0000000 Binary files a/docs/html/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.png and /dev/null differ diff --git a/docs/html/get__request__line_8c_source.html b/docs/html/get__request__line_8c_source.html deleted file mode 100644 index 8f6754f..0000000 --- a/docs/html/get__request__line_8c_source.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - -server: src/http/request/parser/get_request_line.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/parser/get_request_line.c

-
-
-Go to the documentation of this file.
00001 #include <string.h>
-00002 
-00003 #include "http/request.h"
-00004 
-00005 
-00006 void
-00007 httpRequestParserGetRequestLine(HttpRequest request, char * line)
-00008 {
-00009         char * method, * uri, * version;
-00010 
-00011         method = line;
-00012 
-00013         uri    = strchr(line, ' ');
-00014         *uri++ = 0;
-00015         for (; *uri == ' ' && *uri != 0; uri++);
-00016 
-00017         version    = strchr(uri, ' ');
-00018         *version++ = 0;
-00019         for (; *version == ' ' && *version != 0; version++);
-00020 
-00021         request->method  = malloc(strlen(method) + 1);
-00022         strcpy(request->method, method);
-00023         request->uri     = malloc(strlen(uri) + 1);
-00024         strcpy(request->uri, uri);
-00025         request->version = malloc(strlen(version) + 1);
-00026         strcpy(request->version, method);
-00027 }
-00028 
-00029 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals.html b/docs/html/globals.html deleted file mode 100644 index 4bf2c33..0000000 --- a/docs/html/globals.html +++ /dev/null @@ -1,576 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - - -
-
- -
-
-
- -
-
-
Here is a list of all file members with links to the files they belong to:
- -

- _ -

- - -

- c -

- - -

- d -

- - -

- e -

- - -

- f -

- - -

- h -

- - -

- i -

- - -

- l -

- - -

- m -

- - -

- n -

- - -

- p -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- v -

-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_defs.html b/docs/html/globals_defs.html deleted file mode 100644 index 9c5b6e5..0000000 --- a/docs/html/globals_defs.html +++ /dev/null @@ -1,376 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - - -
-
- -
-
-
- -
-
-  - -

- _ -

- - -

- c -

- - -

- d -

- - -

- e -

- - -

- h -

- - -

- i -

- - -

- l -

- - -

- m -

- - -

- n -

- - -

- p -

- - -

- r -

- - -

- s -

- - -

- t -

- - -

- v -

-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_enum.html b/docs/html/globals_enum.html deleted file mode 100644 index 26fbf61..0000000 --- a/docs/html/globals_enum.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - -
-
- -
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_eval.html b/docs/html/globals_eval.html deleted file mode 100644 index 0bfa9c7..0000000 --- a/docs/html/globals_eval.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - -
-
- -
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_func.html b/docs/html/globals_func.html deleted file mode 100644 index d3eda0a..0000000 --- a/docs/html/globals_func.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - - -
-
- -
-
-
- -
-
-  - -

- c -

- - -

- d -

- - -

- h -

- - -

- i -

- - -

- l -

- - -

- m -

- - -

- s -

- - -

- t -

-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_type.html b/docs/html/globals_type.html deleted file mode 100644 index ce70047..0000000 --- a/docs/html/globals_type.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - -
-
- -
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/globals_vars.html b/docs/html/globals_vars.html deleted file mode 100644 index 7b5a2f9..0000000 --- a/docs/html/globals_vars.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - -server: File Members - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - - -
-
- -
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/graph_legend.html b/docs/html/graph_legend.html deleted file mode 100644 index ac28ee5..0000000 --- a/docs/html/graph_legend.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -server: Graph Legend - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- -
-
- -
-
-
- -
-
-
-

Graph Legend

-
-
-

This page explains how to interpret the graphs that are generated by doxygen.

-

Consider the following example:

-
/*! Invisible class because of truncation */
-class Invisible { };
-
-/*! Truncated class, inheritance relation is hidden */
-class Truncated : public Invisible { };
-
-/* Class not documented with doxygen comments */
-class Undocumented { };
-
-/*! Class that is inherited using public inheritance */
-class PublicBase : public Truncated { };
-
-/*! A template class */
-template<class T> class Templ { };
-
-/*! Class that is inherited using protected inheritance */
-class ProtectedBase { };
-
-/*! Class that is inherited using private inheritance */
-class PrivateBase { };
-
-/*! Class that is used by the Inherited class */
-class Used { };
-
-/*! Super class that inherits a number of other classes */
-class Inherited : public PublicBase,
-                  protected ProtectedBase,
-                  private PrivateBase,
-                  public Undocumented,
-                  public Templ<int>
-{
-  private:
-    Used *m_usedClass;
-};
-

This will result in the following graph:

-
-graph_legend.png -
-

The boxes in the above graph have the following meaning:

- -

The arrows have the following meaning:

- -
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/graph_legend.md5 b/docs/html/graph_legend.md5 deleted file mode 100644 index f955910..0000000 --- a/docs/html/graph_legend.md5 +++ /dev/null @@ -1 +0,0 @@ -9db1b0ad00397ef229eb2a8ab06ab3c2 \ No newline at end of file diff --git a/docs/html/graph_legend.png b/docs/html/graph_legend.png deleted file mode 100644 index 8e50498..0000000 Binary files a/docs/html/graph_legend.png and /dev/null differ diff --git a/docs/html/handle__accept_8c.html b/docs/html/handle__accept_8c.html deleted file mode 100644 index 708a387..0000000 --- a/docs/html/handle__accept_8c.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -server: src/server/handle_accept.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/handle_accept.c File Reference

-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- -
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/handle__accept_8c__dep__incl.map b/docs/html/handle__accept_8c__dep__incl.map deleted file mode 100644 index 00067f3..0000000 --- a/docs/html/handle__accept_8c__dep__incl.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/handle__accept_8c__dep__incl.md5 b/docs/html/handle__accept_8c__dep__incl.md5 deleted file mode 100644 index 92e43db..0000000 --- a/docs/html/handle__accept_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -69eea7439dfde07e8705ce32eb0b68ff \ No newline at end of file diff --git a/docs/html/handle__accept_8c__dep__incl.png b/docs/html/handle__accept_8c__dep__incl.png deleted file mode 100644 index f8c4359..0000000 Binary files a/docs/html/handle__accept_8c__dep__incl.png and /dev/null differ diff --git a/docs/html/handle__accept_8c_source.html b/docs/html/handle__accept_8c_source.html deleted file mode 100644 index 0838ed2..0000000 --- a/docs/html/handle__accept_8c_source.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - -server: src/server/handle_accept.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/handle_accept.c

-
-
-Go to the documentation of this file.
00001 static
-00002 void
-00003 serverHandleAccept(Server this)
-00004 {
-00005         char remoteAddr[16] = "";
-00006         Sock acc;
-00007 
-00008         acc = socketAccept(this->sock, remoteAddr);
-00009 
-00010         if (-1 != acc->handle) {
-00011                 //* save the socket handle
-00012                 (this->conns)[acc->handle].sock   = acc; 
-00013 
-00014                 //* clone reader
-00015                 (this->conns)[acc->handle].reader = clone(this->reader);
-00016 
-00017                 (this->fds)[this->nfds].fd        = acc->handle;
-00018                 (this->fds)[this->nfds].events    = POLLIN;
-00019                 this->nfds++;
-00020         } else {
-00021                 delete(&acc);
-00022         }
-00023 
-00024 //      (this->fds)[0].revents |= POLLIN;
-00025 }
-00026 
-00027 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header_8c.html b/docs/html/header_8c.html deleted file mode 100644 index 8ae8290..0000000 --- a/docs/html/header_8c.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - -server: src/http/header.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/header.c File Reference

-
-
-
#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include "class.h"
-#include "interface/class.h"
-#include "http/header.h"
-
-Include dependency graph for header.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (HttpHeader, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpHeader ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header_8c__incl.map b/docs/html/header_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/header_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/header_8c__incl.md5 b/docs/html/header_8c__incl.md5 deleted file mode 100644 index c900543..0000000 --- a/docs/html/header_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -29c51c46322a5a318c6a3d45d7016ed7 \ No newline at end of file diff --git a/docs/html/header_8c__incl.png b/docs/html/header_8c__incl.png deleted file mode 100644 index ee66920..0000000 Binary files a/docs/html/header_8c__incl.png and /dev/null differ diff --git a/docs/html/header_8c_source.html b/docs/html/header_8c_source.html deleted file mode 100644 index 8d1d91a..0000000 --- a/docs/html/header_8c_source.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - -server: src/http/header.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/header.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <string.h>
-00003 #include <ctype.h>
-00004 
-00005 #include "class.h"
-00006 #include "interface/class.h"
-00007 
-00008 #include "http/header.h"
-00009 
-00023 static
-00024 inline
-00025 unsigned long
-00026 sdbm(unsigned char * str)
-00027 {
-00028         unsigned long hash = 0;
-00029         int c;
-00030 
-00031         while ((c = tolower(*str++)))
-00032                 hash = c + (hash << 6) + (hash << 16) - hash;
-00033 
-00034         return hash;
-00035 }
-00036 
-00037 static
-00038 void
-00039 ctor(void * _this, va_list * params) {
-00040         HttpHeader this = _this;
-00041         char * name;
-00042         char * value;
-00043 
-00044         name  = va_arg(* params, char *);
-00045         value = va_arg(* params, char *);
-00046         
-00047         this->name = malloc(strlen(name) + 1);
-00048         strcpy(this->name, name);
-00049 
-00050         this->hash = sdbm((unsigned char *)name);
-00051 
-00052         this->value = malloc(strlen(value) + 1);
-00053         strcpy(this->value, value);
-00054 }
-00055 
-00056 static
-00057 void
-00058 dtor(void * _this)
-00059 {
-00060         HttpHeader this = _this;
-00061 
-00062         free(this->name);
-00063         free(this->value);
-00064 }
-00065 
-00066 INIT_IFACE(Class, ctor, dtor, NULL);
-00067 CREATE_CLASS(HttpHeader, NULL, IFACE(Class));
-00068 
-00069 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header_8h.html b/docs/html/header_8h.html deleted file mode 100644 index 3872997..0000000 --- a/docs/html/header_8h.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - -server: include/http/header.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/http/header.h File Reference

-
-
-
#include "class.h"
-
-Include dependency graph for header.h:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - -

-Classes

struct  HttpHeader

-Functions

HttpHeader httpHeaderParse (char *line)
void httpHeaderSort (const HttpHeader[], int)
char * httpHeaderGet (const HttpHeader[], int, const char *)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
char* httpHeaderGet (const HttpHeader [],
int ,
const char *  
)
-
-
- -

Definition at line 31 of file get.c.

-
{
-        unsigned long hash = sdbm((unsigned char *)name);
-        HttpHeader    found;
-
-        found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp);
-
-        return (NULL != found)? found->value : NULL;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
HttpHeader httpHeaderParse (char * line)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void httpHeaderSort (const HttpHeader [],
int  
)
-
-
- -

Definition at line 14 of file sort.c.

-
{
-        qsort(header, nheader, sizeof(HttpHeader), comp);
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header_8h__incl.map b/docs/html/header_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/header_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/header_8h__incl.md5 b/docs/html/header_8h__incl.md5 deleted file mode 100644 index 7c2034f..0000000 --- a/docs/html/header_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -b00d694ef806d6e244e09e79f0fb1736 \ No newline at end of file diff --git a/docs/html/header_8h__incl.png b/docs/html/header_8h__incl.png deleted file mode 100644 index a7973b3..0000000 Binary files a/docs/html/header_8h__incl.png and /dev/null differ diff --git a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.map b/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.map deleted file mode 100644 index 766089a..0000000 --- a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 b/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 deleted file mode 100644 index c120109..0000000 --- a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e121973e81d665acb1be05befc4d66dc \ No newline at end of file diff --git a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.png b/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.png deleted file mode 100644 index 7f1e965..0000000 Binary files a/docs/html/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.png and /dev/null differ diff --git a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.map b/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.map deleted file mode 100644 index e10b7bb..0000000 --- a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 b/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 deleted file mode 100644 index b4ac569..0000000 --- a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -71394d12b5a7b8762f9e0e79e33ef3c6 \ No newline at end of file diff --git a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.png b/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.png deleted file mode 100644 index 825f7b7..0000000 Binary files a/docs/html/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.png and /dev/null differ diff --git a/docs/html/header_8h_source.html b/docs/html/header_8h_source.html deleted file mode 100644 index 9af3959..0000000 --- a/docs/html/header_8h_source.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - -server: include/http/header.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/http/header.h

-
-
-Go to the documentation of this file.
00001 #ifndef __HTTP_HEADER_H__
-00002 #define __HTTP_HEADER_H__
-00003 
-00004 #include "class.h"
-00005 
-00006 CLASS(HttpHeader) {
-00007         unsigned long hash;
-00008         char *        name;
-00009         char *        value;
-00010 };
-00011 
-00012 HttpHeader httpHeaderParse(char * line);   // @INFO: destructive
-00013 void       httpHeaderSort(const HttpHeader [], int);
-00014 char *     httpHeaderGet(const HttpHeader [], int, const char *);
-00015 
-00016 #endif // __HTTP_HEADER_H__
-00017 
-00018 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header__get_8c.html b/docs/html/header__get_8c.html deleted file mode 100644 index 2b0b4e3..0000000 --- a/docs/html/header__get_8c.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - -server: src/http/request/header_get.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/header_get.c File Reference

-
-
-
#include <stdlib.h>
-#include <ctype.h>
-#include "http/request.h"
-
-Include dependency graph for header_get.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

char * httpRequestHeaderGet (HttpRequest this, const char *name)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
char* httpRequestHeaderGet (HttpRequest this,
const char * name 
)
-
-
- -

Definition at line 31 of file header_get.c.

-
{
-        unsigned long              hash = sdbm((unsigned char *)name);
-        struct HttpRequestHeader * header;
-
-        header = bsearch(
-                        &hash,
-                        this->header,
-                        this->nheader,
-                        sizeof(struct HttpRequestHeader),
-                        comp);
-
-        return (NULL != header)? header->value : NULL;
-}
-
-
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/header__get_8c__incl.map b/docs/html/header__get_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/header__get_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/header__get_8c__incl.md5 b/docs/html/header__get_8c__incl.md5 deleted file mode 100644 index 85eebb5..0000000 --- a/docs/html/header__get_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -ac8d131eabb03284335c71e7be280ce0 \ No newline at end of file diff --git a/docs/html/header__get_8c__incl.png b/docs/html/header__get_8c__incl.png deleted file mode 100644 index 7f67b41..0000000 Binary files a/docs/html/header__get_8c__incl.png and /dev/null differ diff --git a/docs/html/header__get_8c_source.html b/docs/html/header__get_8c_source.html deleted file mode 100644 index c6ffde4..0000000 --- a/docs/html/header__get_8c_source.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - -server: src/http/request/header_get.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/header_get.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <ctype.h>
-00003 
-00004 #include "http/request.h"
-00005 
-00006 static
-00007 inline
-00008 unsigned long
-00009 sdbm(const unsigned char * str)
-00010 {
-00011         unsigned long hash = 0;
-00012         int c;
-00013 
-00014         while ((c = tolower(*str++)))
-00015                 hash = c + (hash << 6) + (hash << 16) - hash;
-00016 
-00017         return hash;
-00018 }
-00019 
-00020 static
-00021 inline
-00022 int
-00023 comp (const void * _a, const void * _b)
-00024 {
-00025         unsigned long a = *(unsigned long *)_a;
-00026         const struct HttpRequestHeader * b = _b;
-00027         return (a < b->hash)? -1 : (a > b->hash)? 1 : 0;
-00028 }
-00029 
-00030 char *
-00031 httpRequestHeaderGet(HttpRequest this, const char * name)
-00032 {
-00033         unsigned long              hash = sdbm((unsigned char *)name);
-00034         struct HttpRequestHeader * header;
-00035 
-00036         header = bsearch(
-00037                         &hash,
-00038                         this->header,
-00039                         this->nheader,
-00040                         sizeof(struct HttpRequestHeader),
-00041                         comp);
-00042 
-00043         return (NULL != header)? header->value : NULL;
-00044 }
-00045 
-00046 // vim: set ts=4 sw=4:
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/index.html b/docs/html/index.html deleted file mode 100644 index da89ff9..0000000 --- a/docs/html/index.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - -server: Main Page - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- -
-
- -
-
-
- -
-
-
-

server Documentation

-
-
-
-
- - -
- All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
- - -
- -
- - - - diff --git a/docs/html/installdox b/docs/html/installdox deleted file mode 100755 index edf5bbf..0000000 --- a/docs/html/installdox +++ /dev/null @@ -1,112 +0,0 @@ -#!/usr/bin/perl - -%subst = ( ); -$quiet = 0; - -while ( @ARGV ) { - $_ = shift @ARGV; - if ( s/^-// ) { - if ( /^l(.*)/ ) { - $v = ($1 eq "") ? shift @ARGV : $1; - ($v =~ /\/$/) || ($v .= "/"); - $_ = $v; - if ( /(.+)\@(.+)/ ) { - if ( exists $subst{$1} ) { - $subst{$1} = $2; - } else { - print STDERR "Unknown tag file $1 given with option -l\n"; - &usage(); - } - } else { - print STDERR "Argument $_ is invalid for option -l\n"; - &usage(); - } - } - elsif ( /^q/ ) { - $quiet = 1; - } - elsif ( /^\?|^h/ ) { - &usage(); - } - else { - print STDERR "Illegal option -$_\n"; - &usage(); - } - } - else { - push (@files, $_ ); - } -} - -foreach $sub (keys %subst) -{ - if ( $subst{$sub} eq "" ) - { - print STDERR "No substitute given for tag file `$sub'\n"; - &usage(); - } - elsif ( ! $quiet && $sub ne "_doc" && $sub ne "_cgi" ) - { - print "Substituting $subst{$sub} for each occurrence of tag file $sub\n"; - } -} - -if ( ! @files ) { - if (opendir(D,".")) { - foreach $file ( readdir(D) ) { - $match = ".html"; - next if ( $file =~ /^\.\.?$/ ); - ($file =~ /$match/) && (push @files, $file); - ($file =~ /\.svg/) && (push @files, $file); - ($file =~ "navtree.js") && (push @files, $file); - } - closedir(D); - } -} - -if ( ! @files ) { - print STDERR "Warning: No input files given and none found!\n"; -} - -foreach $f (@files) -{ - if ( ! $quiet ) { - print "Editing: $f...\n"; - } - $oldf = $f; - $f .= ".bak"; - unless (rename $oldf,$f) { - print STDERR "Error: cannot rename file $oldf\n"; - exit 1; - } - if (open(F,"<$f")) { - unless (open(G,">$oldf")) { - print STDERR "Error: opening file $oldf for writing\n"; - exit 1; - } - if ($oldf ne "tree.js") { - while () { - s/doxygen\=\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\" (xlink:href|href|src)=\"\2/doxygen\=\"$1:$subst{$1}\" \3=\"$subst{$1}/g; - print G "$_"; - } - } - else { - while () { - s/\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\", \"\2/\"$1:$subst{$1}\" ,\"$subst{$1}/g; - print G "$_"; - } - } - } - else { - print STDERR "Warning file $f does not exist\n"; - } - unlink $f; -} - -sub usage { - print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n"; - print STDERR "Options:\n"; - print STDERR " -l tagfile\@linkName tag file + URL or directory \n"; - print STDERR " -q Quiet mode\n\n"; - exit 1; -} diff --git a/docs/html/interface_2class_8c.html b/docs/html/interface_2class_8c.html deleted file mode 100644 index c3988ab..0000000 --- a/docs/html/interface_2class_8c.html +++ /dev/null @@ -1,241 +0,0 @@ - - - - -server: src/interface/class.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/interface/class.c File Reference

-
-
-
#include <stdarg.h>
-#include <stdlib.h>
-#include <assert.h>
-#include "class.h"
-#include "interface/class.h"
-
-Include dependency graph for class.c:
-
-
-
-
-

Go to the source code of this file.

- - - - - -

-Functions

void * classNew (class_ptr class,...)
void classDelete (void **object)
void * classClone (void *_object)
-

Function Documentation

- -
-
- - - - - - - - -
void* classClone (void * _object)
-
-
- -

Definition at line 42 of file class.c.

-
{
-        class_ptr class  = class_getClass(_object);
-        void *    object = calloc(1, class->object_size + sizeof(void*));
-
-        * (class_ptr *)object = class;
-        object += sizeof(void*);
-
-#undef clone
-        CALL(object, Class, clone, _object);
-
-        return object;
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void classDelete (void ** object)
-
-
- -

Definition at line 33 of file class.c.

-
{
-        CALL(*object, Class, dtor);
-
-        free(*object - sizeof(void*));
-        *object = NULL;
-}
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
void* classNew (class_ptr class,
 ... 
)
-
-
- -

Definition at line 15 of file class.c.

-
{
-        void * object = calloc(1, class->object_size + sizeof(void*));
-        va_list params;
-
-        if (class->init)        class->init();
-
-        * (class_ptr *)object = class;
-        object += sizeof(void*);
-
-        va_start(params, class);
-        CALL(object, Class, ctor, &params);
-        va_end(params);
-
-        return object;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2class_8c__incl.map b/docs/html/interface_2class_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2class_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2class_8c__incl.md5 b/docs/html/interface_2class_8c__incl.md5 deleted file mode 100644 index 8a6a50e..0000000 --- a/docs/html/interface_2class_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -5cf44eac642aad62c08a8117fd264019 \ No newline at end of file diff --git a/docs/html/interface_2class_8c__incl.png b/docs/html/interface_2class_8c__incl.png deleted file mode 100644 index f37a273..0000000 Binary files a/docs/html/interface_2class_8c__incl.png and /dev/null differ diff --git a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.map b/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.map deleted file mode 100644 index f3be230..0000000 --- a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 b/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 deleted file mode 100644 index bfff866..0000000 --- a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -1942056551c6d8f145bfbfe7cd2026ef \ No newline at end of file diff --git a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.png b/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.png deleted file mode 100644 index f1a9352..0000000 Binary files a/docs/html/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.png and /dev/null differ diff --git a/docs/html/interface_2class_8c_source.html b/docs/html/interface_2class_8c_source.html deleted file mode 100644 index 52f29b0..0000000 --- a/docs/html/interface_2class_8c_source.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - -server: src/interface/class.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/interface/class.c

-
-
-Go to the documentation of this file.
00001 #include <stdarg.h>
-00002 #include <stdlib.h>
-00003 #include <assert.h>
-00004 
-00005 #include "class.h"
-00006 #include "interface/class.h"
-00007 
-00008 const
-00009 struct interface i_Class = {
-00010         "class",
-00011         3
-00012 };
-00013 
-00014 void *
-00015 classNew(class_ptr class, ...)
-00016 {
-00017         void * object = calloc(1, class->object_size + sizeof(void*));
-00018         va_list params;
-00019 
-00020         if (class->init)        class->init();
-00021 
-00022         * (class_ptr *)object = class;
-00023         object += sizeof(void*);
-00024 
-00025         va_start(params, class);
-00026         CALL(object, Class, ctor, &params);
-00027         va_end(params);
-00028 
-00029         return object;
-00030 }
-00031 
-00032 void
-00033 classDelete(void ** object)
-00034 {
-00035         CALL(*object, Class, dtor);
-00036 
-00037         free(*object - sizeof(void*));
-00038         *object = NULL;
-00039 }
-00040 
-00041 void *
-00042 classClone(void * _object)
-00043 {
-00044         class_ptr class  = class_getClass(_object);
-00045         void *    object = calloc(1, class->object_size + sizeof(void*));
-00046 
-00047         * (class_ptr *)object = class;
-00048         object += sizeof(void*);
-00049 
-00050 #undef clone
-00051         CALL(object, Class, clone, _object);
-00052 
-00053         return object;
-00054 }
-00055 
-00056 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2class_8h.html b/docs/html/interface_2class_8h.html deleted file mode 100644 index 121b960..0000000 --- a/docs/html/interface_2class_8h.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - -server: include/interface/class.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/interface/class.h File Reference

-
-
-
#include <stdarg.h>
-#include "class.h"
-#include "interface.h"
-
-Include dependency graph for class.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-
-
-

Go to the source code of this file.

- - - - - - - - - - - - - - - -

-Classes

struct  i_Class

-Defines

#define new(class,...)   classNew(_##class, ##__VA_ARGS__)
#define delete(object)   classDelete((void **)(object))
#define clone(object)   classClone((void *)(object))

-Typedefs

typedef void(* fptr_ctor )(void *, va_list *)
typedef void(* fptr_dtor )(void *)
typedef void(* fptr_clone )(void *, void *const)

-Functions

void * classNew (class_ptr,...)
void classDelete (void **)
void * classClone (void *)
-

Define Documentation

- -
-
- - - - - - - - -
#define clone( object)   classClone((void *)(object))
-
-
- -

Definition at line 28 of file class.h.

- -
-
- -
-
- - - - - - - - -
#define delete( object)   classDelete((void **)(object))
-
-
- -

Definition at line 27 of file class.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define new( class,
 ... 
)   classNew(_##class, ##__VA_ARGS__)
-
-
- -

Definition at line 26 of file class.h.

- -
-
-

Typedef Documentation

- -
-
- - - - -
typedef void(* fptr_clone)(void *, void *const)
-
-
- -

Definition at line 11 of file class.h.

- -
-
- -
-
- - - - -
typedef void(* fptr_ctor)(void *, va_list *)
-
-
- -

Definition at line 9 of file class.h.

- -
-
- -
-
- - - - -
typedef void(* fptr_dtor)(void *)
-
-
- -

Definition at line 10 of file class.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - -
void* classClone (void * )
-
-
- -

Definition at line 42 of file class.c.

-
{
-        class_ptr class  = class_getClass(_object);
-        void *    object = calloc(1, class->object_size + sizeof(void*));
-
-        * (class_ptr *)object = class;
-        object += sizeof(void*);
-
-#undef clone
-        CALL(object, Class, clone, _object);
-
-        return object;
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void classDelete (void ** )
-
-
- -

Definition at line 33 of file class.c.

-
{
-        CALL(*object, Class, dtor);
-
-        free(*object - sizeof(void*));
-        *object = NULL;
-}
-
-
-
- -
-
- - - - - - - - - - - - - - - - - - -
void* classNew (class_ptr ,
 ... 
)
-
-
- -

Definition at line 15 of file class.c.

-
{
-        void * object = calloc(1, class->object_size + sizeof(void*));
-        va_list params;
-
-        if (class->init)        class->init();
-
-        * (class_ptr *)object = class;
-        object += sizeof(void*);
-
-        va_start(params, class);
-        CALL(object, Class, ctor, &params);
-        va_end(params);
-
-        return object;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2class_8h__dep__incl.map b/docs/html/interface_2class_8h__dep__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2class_8h__dep__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2class_8h__dep__incl.md5 b/docs/html/interface_2class_8h__dep__incl.md5 deleted file mode 100644 index 654e096..0000000 --- a/docs/html/interface_2class_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -8c9abe4657c88d8f9637bba602be5521 \ No newline at end of file diff --git a/docs/html/interface_2class_8h__dep__incl.png b/docs/html/interface_2class_8h__dep__incl.png deleted file mode 100644 index c2a5065..0000000 Binary files a/docs/html/interface_2class_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/interface_2class_8h__incl.map b/docs/html/interface_2class_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2class_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2class_8h__incl.md5 b/docs/html/interface_2class_8h__incl.md5 deleted file mode 100644 index 36e8bf3..0000000 --- a/docs/html/interface_2class_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -4c03a02ce9c725212a6b91321da4dc7f \ No newline at end of file diff --git a/docs/html/interface_2class_8h__incl.png b/docs/html/interface_2class_8h__incl.png deleted file mode 100644 index f9e3766..0000000 Binary files a/docs/html/interface_2class_8h__incl.png and /dev/null differ diff --git a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.map b/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.map deleted file mode 100644 index f3be230..0000000 --- a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 b/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 deleted file mode 100644 index bfff866..0000000 --- a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -1942056551c6d8f145bfbfe7cd2026ef \ No newline at end of file diff --git a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.png b/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.png deleted file mode 100644 index f1a9352..0000000 Binary files a/docs/html/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.png and /dev/null differ diff --git a/docs/html/interface_2class_8h_source.html b/docs/html/interface_2class_8h_source.html deleted file mode 100644 index ec01558..0000000 --- a/docs/html/interface_2class_8h_source.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - -server: include/interface/class.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/interface/class.h

-
-
-Go to the documentation of this file.
00001 #ifndef __INTERFACE_CLASS_H__
-00002 #define __INTERFACE_CLASS_H__
-00003 
-00004 #include <stdarg.h>
-00005 
-00006 #include "class.h"
-00007 #include "interface.h"
-00008 
-00009 typedef void (* fptr_ctor)(void *, va_list *);
-00010 typedef void (* fptr_dtor)(void *);
-00011 typedef void (* fptr_clone)(void *, void * const);
-00012 
-00013 extern const struct interface i_Class;
-00014 
-00015 struct i_Class {
-00016         const struct interface * const _;
-00017         fptr_ctor                      ctor;
-00018         fptr_dtor                      dtor;
-00019         fptr_clone                     clone;
-00020 };
-00021 
-00022 extern void * classNew(class_ptr, ...);
-00023 extern void   classDelete(void **);
-00024 extern void * classClone(void *);
-00025 
-00026 #define new(class,...)          classNew(_##class, ##__VA_ARGS__)
-00027 #define delete(object)          classDelete((void **)(object))
-00028 #define clone(object)           classClone((void *)(object))
-00029 
-00030 #endif // __INTERFACE_CLASS_H__
-00031 
-00032 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2logger_8c.html b/docs/html/interface_2logger_8c.html deleted file mode 100644 index e3a0e12..0000000 --- a/docs/html/interface_2logger_8c.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - -server: src/interface/logger.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/interface/logger.c File Reference

-
-
-
#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include "logger.h"
-#include "interface/logger.h"
-
-Include dependency graph for logger.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

void loggerLog (void *_object, logger_level level, const char *const fmt,...)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void loggerLog (void * _object,
logger_level level,
const char *const fmt,
 ... 
)
-
-
- -

Definition at line 14 of file logger.c.

-
                                                                           {
-        Logger object = _object;
-
-        if (level >= object->min_level) {
-                char *  msg      = NULL;
-                size_t  msg_size = 0;
-                va_list params;
-
-                va_start(params, fmt);
-                msg_size = vsnprintf(msg, msg_size, fmt, params);
-                va_end(params);
-
-                msg = malloc(msg_size + 1);
-
-                va_start(params, fmt);
-                vsnprintf(msg, msg_size + 1, fmt, params);
-                va_end(params);
-
-                CALL(_object, Logger, log, level, msg);
-
-                free(msg);
-        }
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2logger_8c__incl.map b/docs/html/interface_2logger_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2logger_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2logger_8c__incl.md5 b/docs/html/interface_2logger_8c__incl.md5 deleted file mode 100644 index 4567e34..0000000 --- a/docs/html/interface_2logger_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f814c1974f3868750c83967ad2aefc9a \ No newline at end of file diff --git a/docs/html/interface_2logger_8c__incl.png b/docs/html/interface_2logger_8c__incl.png deleted file mode 100644 index b617f12..0000000 Binary files a/docs/html/interface_2logger_8c__incl.png and /dev/null differ diff --git a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.map b/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.map deleted file mode 100644 index d4d2aea..0000000 --- a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.map +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 b/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 deleted file mode 100644 index d7dff78..0000000 --- a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -c3b0fd92be370d95b9e44b4a43e0f23e \ No newline at end of file diff --git a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.png b/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.png deleted file mode 100644 index 8b800ca..0000000 Binary files a/docs/html/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.png and /dev/null differ diff --git a/docs/html/interface_2logger_8c_source.html b/docs/html/interface_2logger_8c_source.html deleted file mode 100644 index 904bad2..0000000 --- a/docs/html/interface_2logger_8c_source.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - -server: src/interface/logger.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/interface/logger.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <stdio.h>
-00003 #include <stdarg.h>
-00004 
-00005 #include "logger.h"
-00006 #include "interface/logger.h"
-00007 
-00008 const struct interface i_Logger = {
-00009         "logger",
-00010         1
-00011 };
-00012 
-00013 void
-00014 loggerLog(void * _object, logger_level level, const char * const fmt, ...) {
-00015         Logger object = _object;
-00016 
-00017         if (level >= object->min_level) {
-00018                 char *  msg      = NULL;
-00019                 size_t  msg_size = 0;
-00020                 va_list params;
-00021 
-00022                 va_start(params, fmt);
-00023                 msg_size = vsnprintf(msg, msg_size, fmt, params);
-00024                 va_end(params);
-00025 
-00026                 msg = malloc(msg_size + 1);
-00027 
-00028                 va_start(params, fmt);
-00029                 vsnprintf(msg, msg_size + 1, fmt, params);
-00030                 va_end(params);
-00031 
-00032                 CALL(_object, Logger, log, level, msg);
-00033 
-00034                 free(msg);
-00035         }
-00036 }
-00037 
-00038 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2logger_8h.html b/docs/html/interface_2logger_8h.html deleted file mode 100644 index c11bfb2..0000000 --- a/docs/html/interface_2logger_8h.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - -server: include/interface/logger.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/interface/logger.h File Reference

-
-
-
#include <stdarg.h>
-#include "interface.h"
-#include "logger.h"
-
-Include dependency graph for logger.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
-
-
-

Go to the source code of this file.

- - - - - - - -

-Classes

struct  i_Logger

-Typedefs

typedef void(* fptr_log )(void *, logger_level, const char *const)

-Functions

void loggerLog (void *, logger_level, const char *const,...)
-

Typedef Documentation

- -
-
- - - - -
typedef void(* fptr_log)(void *, logger_level, const char *const)
-
-
- -

Definition at line 9 of file logger.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void loggerLog (void * ,
logger_level ,
const char * const,
 ... 
)
-
-
- -

Definition at line 14 of file logger.c.

-
                                                                           {
-        Logger object = _object;
-
-        if (level >= object->min_level) {
-                char *  msg      = NULL;
-                size_t  msg_size = 0;
-                va_list params;
-
-                va_start(params, fmt);
-                msg_size = vsnprintf(msg, msg_size, fmt, params);
-                va_end(params);
-
-                msg = malloc(msg_size + 1);
-
-                va_start(params, fmt);
-                vsnprintf(msg, msg_size + 1, fmt, params);
-                va_end(params);
-
-                CALL(_object, Logger, log, level, msg);
-
-                free(msg);
-        }
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_2logger_8h__dep__incl.map b/docs/html/interface_2logger_8h__dep__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2logger_8h__dep__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2logger_8h__dep__incl.md5 b/docs/html/interface_2logger_8h__dep__incl.md5 deleted file mode 100644 index de41a1b..0000000 --- a/docs/html/interface_2logger_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -fb55aa545a5fb04b36e5de592cf2ca4f \ No newline at end of file diff --git a/docs/html/interface_2logger_8h__dep__incl.png b/docs/html/interface_2logger_8h__dep__incl.png deleted file mode 100644 index 619de91..0000000 Binary files a/docs/html/interface_2logger_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/interface_2logger_8h__incl.map b/docs/html/interface_2logger_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_2logger_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_2logger_8h__incl.md5 b/docs/html/interface_2logger_8h__incl.md5 deleted file mode 100644 index 3acfcfa..0000000 --- a/docs/html/interface_2logger_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -a30984a438e48f55f4f09e60064c3ef3 \ No newline at end of file diff --git a/docs/html/interface_2logger_8h__incl.png b/docs/html/interface_2logger_8h__incl.png deleted file mode 100644 index 6ebfa2c..0000000 Binary files a/docs/html/interface_2logger_8h__incl.png and /dev/null differ diff --git a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.map b/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.map deleted file mode 100644 index d4d2aea..0000000 --- a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.map +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 b/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 deleted file mode 100644 index d7dff78..0000000 --- a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -c3b0fd92be370d95b9e44b4a43e0f23e \ No newline at end of file diff --git a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.png b/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.png deleted file mode 100644 index 8b800ca..0000000 Binary files a/docs/html/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.png and /dev/null differ diff --git a/docs/html/interface_2logger_8h_source.html b/docs/html/interface_2logger_8h_source.html deleted file mode 100644 index b507d8c..0000000 --- a/docs/html/interface_2logger_8h_source.html +++ /dev/null @@ -1,132 +0,0 @@ - - - - -server: include/interface/logger.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/interface/logger.h

-
-
-Go to the documentation of this file.
00001 #ifndef __INTERFACE_LOGGER_H__
-00002 #define __INTERFACE_LOGGER_H__
-00003 
-00004 #include <stdarg.h>
-00005 
-00006 #include "interface.h"
-00007 #include "logger.h"
-00008 
-00009 typedef void (* fptr_log)(void *, logger_level, const char * const);
-00010 
-00011 extern const struct interface i_Logger;
-00012 
-00013 struct i_Logger {
-00014         const struct interface * const _;
-00015         fptr_log                       log;
-00016 };
-00017 
-00018 extern void loggerLog(void *, logger_level, const char * const, ...);
-00019 
-00020 #endif // __INTERFACE_LOGGER_H__
-00021 
-00022 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_8c.html b/docs/html/interface_8c.html deleted file mode 100644 index 39637bf..0000000 --- a/docs/html/interface_8c.html +++ /dev/null @@ -1,196 +0,0 @@ - - - - -server: src/interface.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/interface.c File Reference

-
-
-
#include <sys/types.h>
-#include <stdlib.h>
-#include "interface.h"
-
-Include dependency graph for interface.c:
-
-
-
-
-

Go to the source code of this file.

- - - - - -

-Defines

#define TRUE   1

-Functions

struct interfaceinterfaceGet (iface_impl_ptr iface_impl, const iface_ptr _iface)
-

Define Documentation

- -
-
- - - - -
#define TRUE   1
-
-
- -

Definition at line 7 of file interface.c.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
struct interface* interfaceGet (iface_impl_ptr iface_impl,
const iface_ptr _iface 
) [read]
-
-
-

this one is important in selector functions to get the correct interface implementation of a class.

- -

Definition at line 25 of file interface.c.

-
{
-        const iface_ptr * iface = &_iface;
-        void *            dummy;
-
-    if (! iface_impl->simpl) {
-        qsort((void**)(iface_impl->impl), iface_impl->nimpl, sizeof(iface_ptr), comp);
-        iface_impl->simpl=TRUE;
-    }
-
-    dummy = bsearch(
-                        &iface,
-                        iface_impl->impl,
-                        iface_impl->nimpl,
-                        sizeof(iface_ptr),
-                        comp);
-
-        return dummy? *(struct interface **)dummy : dummy;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_8c__incl.map b/docs/html/interface_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_8c__incl.md5 b/docs/html/interface_8c__incl.md5 deleted file mode 100644 index 21eb7a9..0000000 --- a/docs/html/interface_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -8edae7e960b28841eda5ff8e5606de40 \ No newline at end of file diff --git a/docs/html/interface_8c__incl.png b/docs/html/interface_8c__incl.png deleted file mode 100644 index 379a39c..0000000 Binary files a/docs/html/interface_8c__incl.png and /dev/null differ diff --git a/docs/html/interface_8c_source.html b/docs/html/interface_8c_source.html deleted file mode 100644 index 3bcf96a..0000000 --- a/docs/html/interface_8c_source.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - -server: src/interface.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/interface.c

-
-
-Go to the documentation of this file.
00001 #include <sys/types.h>
-00002 #include <stdlib.h>
-00003 
-00004 #include "interface.h"
-00005 
-00006 #ifndef TRUE
-00007 #define TRUE    1
-00008 #endif // TRUE
-00009 
-00010 static
-00011 inline
-00012 int
-00013 comp(const void * _a, const void * _b)
-00014 {
-00015         const struct interface * a = **(const struct interface ***)_a;
-00016         const struct interface * b = **(const struct interface ***)_b;
-00017     return ((a)<(b))? -1 : ((a)>(b))? 1 : 0;
-00018 }
-00019 
-00024 struct interface *
-00025 interfaceGet(iface_impl_ptr iface_impl, const iface_ptr _iface)
-00026 {
-00027         const iface_ptr * iface = &_iface;
-00028         void *            dummy;
-00029 
-00030     if (! iface_impl->simpl) {
-00031         qsort((void**)(iface_impl->impl), iface_impl->nimpl, sizeof(iface_ptr), comp);
-00032         iface_impl->simpl=TRUE;
-00033     }
-00034 
-00035     dummy = bsearch(
-00036                         &iface,
-00037                         iface_impl->impl,
-00038                         iface_impl->nimpl,
-00039                         sizeof(iface_ptr),
-00040                         comp);
-00041 
-00042         return dummy? *(struct interface **)dummy : dummy;
-00043 }
-00044 
-00045 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_8h.html b/docs/html/interface_8h.html deleted file mode 100644 index ccfc05a..0000000 --- a/docs/html/interface_8h.html +++ /dev/null @@ -1,382 +0,0 @@ - - - - -server: include/interface.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/interface.h File Reference

-
-
-
#include <sys/types.h>
-
-Include dependency graph for interface.h:
-
-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - - - - - - - - - - - -

-Classes

struct  interface
struct  iface_impl

-Defines

#define MAX_IFACE   32
#define IFACE(name)   ((const struct i_##name const*)&i_##name##_impl)
#define INIT_IFACE(name,...)   static const struct i_##name i_##name##_impl = {&i_##name,__VA_ARGS__}
#define NUMARGS(...)   (sizeof((const void*[]){__VA_ARGS__})/sizeof(void*))
#define INIT_IMPL(...)   {NUMARGS(__VA_ARGS__), 0, {__VA_ARGS__}}
#define CREATE_IMPL(...)   static struct iface_impl iface_impl = INIT_IMPL(__VA_ARGS__)
#define METHOD_GET(iface, method)   (iface->method)

-Typedefs

typedef struct interfaceiface_ptr
typedef struct iface_impliface_impl_ptr

-Functions

struct interfaceinterfaceGet (iface_impl_ptr, const iface_ptr)
-

Define Documentation

- -
-
- - - - - - - - -
#define CREATE_IMPL( ...)   static struct iface_impl iface_impl = INIT_IMPL(__VA_ARGS__)
-
-
- -

Definition at line 16 of file interface.h.

- -
-
- -
-
- - - - - - - - -
#define IFACE( name)   ((const struct i_##name const*)&i_##name##_impl)
-
-
- -

Definition at line 8 of file interface.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define INIT_IFACE( name,
 ... 
)   static const struct i_##name i_##name##_impl = {&i_##name,__VA_ARGS__}
-
-
- -

Definition at line 10 of file interface.h.

- -
-
- -
-
- - - - - - - - -
#define INIT_IMPL( ...)   {NUMARGS(__VA_ARGS__), 0, {__VA_ARGS__}}
-
-
- -

Definition at line 15 of file interface.h.

- -
-
- -
-
- - - - -
#define MAX_IFACE   32
-
-
- -

Definition at line 6 of file interface.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define METHOD_GET( iface,
 method 
)   (iface->method)
-
-
- -

Definition at line 19 of file interface.h.

- -
-
- -
-
- - - - - - - - -
#define NUMARGS( ...)   (sizeof((const void*[]){__VA_ARGS__})/sizeof(void*))
-
-
- -

Definition at line 13 of file interface.h.

- -
-
-

Typedef Documentation

- -
-
- - - - -
typedef struct iface_impl* iface_impl_ptr
-
-
- -

Definition at line 33 of file interface.h.

- -
-
- -
-
- - - - -
typedef struct interface* iface_ptr
-
-
- -

Definition at line 26 of file interface.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
struct interface* interfaceGet (iface_impl_ptr iface_impl,
const iface_ptr _iface 
) [read]
-
-
-

this one is important in selector functions to get the correct interface implementation of a class.

- -

Definition at line 25 of file interface.c.

-
{
-        const iface_ptr * iface = &_iface;
-        void *            dummy;
-
-    if (! iface_impl->simpl) {
-        qsort((void**)(iface_impl->impl), iface_impl->nimpl, sizeof(iface_ptr), comp);
-        iface_impl->simpl=TRUE;
-    }
-
-    dummy = bsearch(
-                        &iface,
-                        iface_impl->impl,
-                        iface_impl->nimpl,
-                        sizeof(iface_ptr),
-                        comp);
-
-        return dummy? *(struct interface **)dummy : dummy;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/interface_8h__dep__incl.map b/docs/html/interface_8h__dep__incl.map deleted file mode 100644 index 33f25c1..0000000 --- a/docs/html/interface_8h__dep__incl.map +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/html/interface_8h__dep__incl.md5 b/docs/html/interface_8h__dep__incl.md5 deleted file mode 100644 index b1baac0..0000000 --- a/docs/html/interface_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -418c7896641110a6113b21204b897600 \ No newline at end of file diff --git a/docs/html/interface_8h__dep__incl.png b/docs/html/interface_8h__dep__incl.png deleted file mode 100644 index 9840e91..0000000 Binary files a/docs/html/interface_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/interface_8h__incl.map b/docs/html/interface_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/interface_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/interface_8h__incl.md5 b/docs/html/interface_8h__incl.md5 deleted file mode 100644 index 317c66c..0000000 --- a/docs/html/interface_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -ce2fcdb53a96d7c44bdb8ad01b08694f \ No newline at end of file diff --git a/docs/html/interface_8h__incl.png b/docs/html/interface_8h__incl.png deleted file mode 100644 index 80ea6c2..0000000 Binary files a/docs/html/interface_8h__incl.png and /dev/null differ diff --git a/docs/html/interface_8h_source.html b/docs/html/interface_8h_source.html deleted file mode 100644 index 7e89d10..0000000 --- a/docs/html/interface_8h_source.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - -server: include/interface.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/interface.h

-
-
-Go to the documentation of this file.
00001 #ifndef __INTERFACE_H__
-00002 #define __INTERFACE_H__
-00003 
-00004 #include <sys/types.h>
-00005 
-00006 #define MAX_IFACE       32      // ATTENTION: every iface_impl will use MAX_IFACE * sizeof(void*)
-00007 
-00008 #define IFACE(name)             ((const struct i_##name const*)&i_##name##_impl)
-00009 
-00010 #define INIT_IFACE(name,...) \
-00011         static const struct i_##name i_##name##_impl = {&i_##name,__VA_ARGS__}
-00012 
-00013 #define NUMARGS(...)    (sizeof((const void*[]){__VA_ARGS__})/sizeof(void*))
-00014 
-00015 #define INIT_IMPL(...)  {NUMARGS(__VA_ARGS__), 0, {__VA_ARGS__}}
-00016 #define CREATE_IMPL(...) \
-00017         static struct iface_impl iface_impl = INIT_IMPL(__VA_ARGS__)
-00018 
-00019 #define METHOD_GET(iface,method)        (iface->method)
-00020 
-00021 
-00022 struct interface {
-00023         const char * name;
-00024         const size_t nmethods;
-00025 };
-00026 typedef const struct interface * iface_ptr;
-00027 
-00028 struct iface_impl {
-00029         const size_t nimpl;           // number of interface implementations
-00030         char         simpl;           // implementations sorted??
-00031         const void * impl[MAX_IFACE]; // implementations
-00032 };
-00033 typedef struct iface_impl * iface_impl_ptr;
-00034 
-00035 extern struct interface * interfaceGet(iface_impl_ptr, const iface_ptr);
-00036 
-00037 #endif // __INTERFACE_H__
-00038 
-00039 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/jquery.js b/docs/html/jquery.js deleted file mode 100644 index c052173..0000000 --- a/docs/html/jquery.js +++ /dev/null @@ -1,54 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0) -{I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function() -{G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); -/* - * jQuery UI 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/* * jQuery UI Resizable 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Resizables - * - * Depends: - * ui.core.js - */ -(function(c){c.widget("ui.resizable",c.extend({},c.ui.mouse,{_init:function(){var e=this,j=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(j.aspectRatio),aspectRatio:j.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:j.helper||j.ghost||j.animate?j.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&c.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(c('
').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var k=this.handles.split(",");this.handles={};for(var f=0;f
');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if("se"==h){g.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[h]=".ui-resizable-"+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=["padding",/ne|nw|n/.test(m)?"Top":/se|sw|s/.test(m)?"Bottom":/^e$/.test(m)?"Right":"Left"].join("");p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&&i[1]?i[1]:"se"}});if(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(".ui-draggable")||(/absolute/).test(d.css("position"))){d.css({position:"absolute",top:e.top,left:e.left})}if(c.browser.opera&&(/relative/).test(d.css("position"))){d.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var j=b(this.helper.css("left")),g=b(this.helper.css("top"));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio=="number")?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",h=="auto"?this.axis+"-resize":h);d.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&&c.browser.version<7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate("resize",d);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger("resize",d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&&(/textarea/i).test(f[0].nodeName),e=d&&c.ui.hasScroll(f[0],"left")?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&&!h.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d=="sw"){g.left=i.left+(e.width-g.width);g.top=null}if(d=="nw"){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&&h.maxWidth&&(h.maxWidthk.width),r=a(k.height)&&h.minHeight&&(h.minHeight>k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&&j){k.left=e-h.minWidth}if(s&&j){k.left=e-h.maxWidth}if(r&&d){k.top=n-h.minHeight}if(l&&d){k.top=n-h.maxHeight}var m=!k.width&&!k.height;if(m&&!k.left&&k.top){k.top=null}else{if(m&&!k.top&&k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e');var d=c.browser.msie&&c.browser.version<7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!="resize"&&this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add("resizable","alsoResize",{start:function(e,f){var d=c(this).data("resizable"),g=d.options;_store=function(h){c(h).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data("resizable"),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data("resizable-alsoresize"),o={},n=m&&m.length?m:["width","height","top","left"];c.each(n||["width","height","top","left"],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&&s>=0){o[t]=s||null}});if(/relative/.test(p.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"})}p.css(o)})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data("resizable");if(d._revertToRelativePosition&&c.browser.opera){d._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(h,m){var n=c(this).data("resizable"),i=n.options;var g=n._proportionallyResizeElements,d=g.length&&(/textarea/i).test(g[0].nodeName),e=d&&c.ui.hasScroll(g[0],"left")?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&&j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(g&&g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate("resize",h)}})}});c.ui.plugin.add("resizable","containment",{start:function(e,q){var s=c(this).data("resizable"),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){h[p]=b(m.css("padding"+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,"left")?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data("resizable"),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&&(/static/).test(g.css("position"))){d=n}if(m.left<(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top<(s._helper?n.top:0)) -{s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css("position"));if(j&&i){k-=s.parentData.left}if(k+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data("resizable"),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&&!f.animate&&(/relative/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&&!f.animate&&(/static/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add("resizable","ghost",{start:function(f,g){var d=c(this).data("resizable"),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost){d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost&&d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(d,l){var n=c(this).data("resizable"),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);; -/** - * jQuery.ScrollTo - Easy element scrolling using jQuery. - * Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com - * Licensed under GPL license (http://www.opensource.org/licenses/gpl-license.php). - * Date: 2/8/2008 - * @author Ariel Flesler - * @version 1.3.2 - */ -;(function($){var o=$.scrollTo=function(a,b,c){o.window().scrollTo(a,b,c)};o.defaults={axis:'y',duration:1};o.window=function(){return $($.browser.safari?'body':'html')};$.fn.scrollTo=function(l,m,n){if(typeof m=='object'){n=m;m=0}n=$.extend({},o.defaults,n);m=m||n.speed||n.duration;n.queue=n.queue&&n.axis.length>1;if(n.queue)m/=2;n.offset=j(n.offset);n.over=j(n.over);return this.each(function(){var a=this,b=$(a),t=l,c,d={},w=b.is('html,body');switch(typeof t){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(t)){t=j(t);break}t=$(t,this);case'object':if(t.is||t.style)c=(t=$(t)).offset()}$.each(n.axis.split(''),function(i,f){var P=f=='x'?'Left':'Top',p=P.toLowerCase(),k='scroll'+P,e=a[k],D=f=='x'?'Width':'Height';if(c){d[k]=c[p]+(w?0:e-b.offset()[p]);if(n.margin){d[k]-=parseInt(t.css('margin'+P))||0;d[k]-=parseInt(t.css('border'+P+'Width'))||0}d[k]+=n.offset[p]||0;if(n.over[p])d[k]+=t[D.toLowerCase()]()*n.over[p]}else d[k]=t[p];if(/^\d+$/.test(d[k]))d[k]=d[k]<=0?0:Math.min(d[k],h(D));if(!i&&n.queue){if(e!=d[k])g(n.onAfterFirst);delete d[k]}});g(n.onAfter);function g(a){b.animate(d,m,n.easing,a&&function(){a.call(this,l)})};function h(D){var b=w?$.browser.opera?document.body:document.documentElement:a;return b['scroll'+D]-b['client'+D]}})};function j(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); - diff --git a/docs/html/listen_8c.html b/docs/html/listen_8c.html deleted file mode 100644 index 3230b36..0000000 --- a/docs/html/listen_8c.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -server: src/socket/listen.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/socket/listen.c File Reference

-
-
-
#include <stdlib.h>
-#include <errno.h>
-#include "socket.h"
-#include "interface/class.h"
-#include "interface/logger.h"
-
-Include dependency graph for listen.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

void socketListen (Sock this, int backlog)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void socketListen (Sock this,
int backlog 
)
-
-
- -

Definition at line 10 of file listen.c.

-
{
-    (this->addr).sin_family      = AF_INET;           /* Internet address family */
-    (this->addr).sin_addr.s_addr = htonl(INADDR_ANY); /* Any incoming interface */
-    (this->addr).sin_port        = htons(this->port); /* Local port */
-
-    /* Bind to the local address */
-    if (-1 == bind(this->handle, (struct sockaddr *) &(this->addr), sizeof(this->addr))) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error binding socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-
-    /* Mark the socket so it will listen for incoming connections */
-    if (-1 == listen(this->handle, backlog)) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error binding socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/listen_8c__incl.map b/docs/html/listen_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/listen_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/listen_8c__incl.md5 b/docs/html/listen_8c__incl.md5 deleted file mode 100644 index 41d4b44..0000000 --- a/docs/html/listen_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -6cf723d16c4a55e23f06ca7cd5ee39ed \ No newline at end of file diff --git a/docs/html/listen_8c__incl.png b/docs/html/listen_8c__incl.png deleted file mode 100644 index 975c2e9..0000000 Binary files a/docs/html/listen_8c__incl.png and /dev/null differ diff --git a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.map b/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.map deleted file mode 100644 index 2fd1014..0000000 --- a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 b/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 deleted file mode 100644 index 8831f43..0000000 --- a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -8abcb500cd410e634be8b7931a7e0a32 \ No newline at end of file diff --git a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.png b/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.png deleted file mode 100644 index 41e24eb..0000000 Binary files a/docs/html/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.png and /dev/null differ diff --git a/docs/html/listen_8c_source.html b/docs/html/listen_8c_source.html deleted file mode 100644 index acaa8e6..0000000 --- a/docs/html/listen_8c_source.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - -server: src/socket/listen.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/socket/listen.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>     /* for atoi() and exit() */
-00002 #include <errno.h>      /* for errno */
-00003 
-00004 #include "socket.h"
-00005 #include "interface/class.h"
-00006 #include "interface/logger.h"
-00007 
-00008 
-00009 void
-00010 socketListen(Sock this, int backlog)
-00011 {
-00012     (this->addr).sin_family      = AF_INET;           /* Internet address family */
-00013     (this->addr).sin_addr.s_addr = htonl(INADDR_ANY); /* Any incoming interface */
-00014     (this->addr).sin_port        = htons(this->port); /* Local port */
-00015 
-00016     /* Bind to the local address */
-00017     if (-1 == bind(this->handle, (struct sockaddr *) &(this->addr), sizeof(this->addr))) {
-00018         loggerLog(this->log, LOGGER_CRIT,
-00019                 "error binding socket: %s - service terminated",
-00020                 strerror(errno));
-00021         exit(EXIT_FAILURE);
-00022     }
-00023 
-00024     /* Mark the socket so it will listen for incoming connections */
-00025     if (-1 == listen(this->handle, backlog)) {
-00026         loggerLog(this->log, LOGGER_CRIT,
-00027                 "error binding socket: %s - service terminated",
-00028                 strerror(errno));
-00029         exit(EXIT_FAILURE);
-00030     }
-00031 }
-00032 
-00033 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/logger_8c.html b/docs/html/logger_8c.html deleted file mode 100644 index 4b84284..0000000 --- a/docs/html/logger_8c.html +++ /dev/null @@ -1,232 +0,0 @@ - - - - -server: src/logger.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/logger.c File Reference

-
-
-
#include <stdarg.h>
-#include "logger.h"
-#include "interface/class.h"
-#include "interface/logger.h"
-
-Include dependency graph for logger.c:
-
-
-
-
-

Go to the source code of this file.

- - - - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (Logger, NULL, IFACE(Class))

-Variables

const char *const logger_level_str []
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (Logger ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-

Variable Documentation

- -
-
- - - - -
const char* const logger_level_str[]
-
-
-Initial value:
 {
-        "DEBUG",
-        "INFO",
-        "NOTICE",
-        "WARNING",
-        "ERR",
-        "CRIT",
-        "ALERT",
-        "EMERG"
-}
-
-

Definition at line 9 of file logger.c.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/logger_8c__incl.map b/docs/html/logger_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/logger_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/logger_8c__incl.md5 b/docs/html/logger_8c__incl.md5 deleted file mode 100644 index 3036892..0000000 --- a/docs/html/logger_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -14c6cdc7c9053f4e10b4cedf828e0f80 \ No newline at end of file diff --git a/docs/html/logger_8c__incl.png b/docs/html/logger_8c__incl.png deleted file mode 100644 index 3db6139..0000000 Binary files a/docs/html/logger_8c__incl.png and /dev/null differ diff --git a/docs/html/logger_8c_source.html b/docs/html/logger_8c_source.html deleted file mode 100644 index cc8f83d..0000000 --- a/docs/html/logger_8c_source.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - -server: src/logger.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/logger.c

-
-
-Go to the documentation of this file.
00001 #include <stdarg.h>
-00002 
-00003 #include "logger.h"
-00004 #include "interface/class.h"
-00005 #include "interface/logger.h"
-00006 
-00007 const
-00008 char * const
-00009 logger_level_str[] = {
-00010         "DEBUG",
-00011         "INFO",
-00012         "NOTICE",
-00013         "WARNING",
-00014         "ERR",
-00015         "CRIT",
-00016         "ALERT",
-00017         "EMERG"
-00018 };
-00019 
-00020 static
-00021 void
-00022 ctor(void * _this, va_list * params)
-00023 {
-00024         Logger this = _this;
-00025         this->min_level = va_arg(*params, int);
-00026 }
-00027 
-00028 static void dtor(void * _this) {}
-00029 
-00030 INIT_IFACE(Class, ctor, dtor, NULL);
-00031 CREATE_CLASS(Logger, NULL, IFACE(Class));
-00032 
-00033 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/logger_8h.html b/docs/html/logger_8h.html deleted file mode 100644 index f039f4f..0000000 --- a/docs/html/logger_8h.html +++ /dev/null @@ -1,235 +0,0 @@ - - - - -server: include/logger.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/logger.h File Reference

-
-
-
#include "class.h"
-
-Include dependency graph for logger.h:
-
-
- - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - - - - - -

-Classes

struct  Logger
struct  LoggerStderr
struct  LoggerSyslog

-Typedefs

typedef enum logger_level logger_level

-Enumerations

enum  logger_level {
-  LOGGER_DEBUG = 0, -LOGGER_INFO, -LOGGER_NOTICE, -LOGGER_WARNING, -
-  LOGGER_ERR, -LOGGER_CRIT, -LOGGER_ALERT, -LOGGER_EMERG -
- }

-Variables

const char *const logger_level_str []
-

Typedef Documentation

- -
-
- - - - -
typedef enum logger_level logger_level
-
-
- -
-
-

Enumeration Type Documentation

- -
-
- - - - -
enum logger_level
-
-
-
Enumerator:
- - - - - - - - -
LOGGER_DEBUG  -
LOGGER_INFO  -
LOGGER_NOTICE  -
LOGGER_WARNING  -
LOGGER_ERR  -
LOGGER_CRIT  -
LOGGER_ALERT  -
LOGGER_EMERG  -
-
-
- -

Definition at line 6 of file logger.h.

- -
-
-

Variable Documentation

- -
-
- - - - -
const char* const logger_level_str[]
-
-
- -

Definition at line 9 of file logger.c.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/logger_8h__dep__incl.map b/docs/html/logger_8h__dep__incl.map deleted file mode 100644 index 596ed72..0000000 --- a/docs/html/logger_8h__dep__incl.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/logger_8h__dep__incl.md5 b/docs/html/logger_8h__dep__incl.md5 deleted file mode 100644 index 89107c6..0000000 --- a/docs/html/logger_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f5539c413e54a1366d8c5375fba84b49 \ No newline at end of file diff --git a/docs/html/logger_8h__dep__incl.png b/docs/html/logger_8h__dep__incl.png deleted file mode 100644 index 22eac47..0000000 Binary files a/docs/html/logger_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/logger_8h__incl.map b/docs/html/logger_8h__incl.map deleted file mode 100644 index e430c8d..0000000 --- a/docs/html/logger_8h__incl.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/logger_8h__incl.md5 b/docs/html/logger_8h__incl.md5 deleted file mode 100644 index 78417cc..0000000 --- a/docs/html/logger_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d7c08b53f2bdcca8562994ce1eca44f6 \ No newline at end of file diff --git a/docs/html/logger_8h__incl.png b/docs/html/logger_8h__incl.png deleted file mode 100644 index 004f2f3..0000000 Binary files a/docs/html/logger_8h__incl.png and /dev/null differ diff --git a/docs/html/logger_8h_source.html b/docs/html/logger_8h_source.html deleted file mode 100644 index c678614..0000000 --- a/docs/html/logger_8h_source.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - -server: include/logger.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/logger.h

-
-
-Go to the documentation of this file.
00001 #ifndef __LOGGER_H__
-00002 #define __LOGGER_H__
-00003 
-00004 #include "class.h"
-00005 
-00006 typedef enum logger_level {
-00007         LOGGER_DEBUG=0,
-00008         LOGGER_INFO,
-00009         LOGGER_NOTICE,
-00010         LOGGER_WARNING,
-00011         LOGGER_ERR,
-00012         LOGGER_CRIT,
-00013         LOGGER_ALERT,
-00014         LOGGER_EMERG
-00015 } logger_level;
-00016 
-00017 extern const char * const logger_level_str[];
-00018 
-00019 CLASS(Logger) {
-00020         logger_level min_level;
-00021 };
-00022 
-00023 CLASS(LoggerStderr) {
-00024         EXTENDS(Logger);
-00025 };
-00026 
-00027 CLASS(LoggerSyslog) {
-00028         EXTENDS(Logger);
-00029 };
-00030 
-00031 #endif // __LOGGER_H__
-00032 
-00033 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/nav_f.png b/docs/html/nav_f.png deleted file mode 100644 index 1b07a16..0000000 Binary files a/docs/html/nav_f.png and /dev/null differ diff --git a/docs/html/nav_h.png b/docs/html/nav_h.png deleted file mode 100644 index 01f5fa6..0000000 Binary files a/docs/html/nav_h.png and /dev/null differ diff --git a/docs/html/navtree.css b/docs/html/navtree.css deleted file mode 100644 index e46ffcd..0000000 --- a/docs/html/navtree.css +++ /dev/null @@ -1,123 +0,0 @@ -#nav-tree .children_ul { - margin:0; - padding:4px; -} - -#nav-tree ul { - list-style:none outside none; - margin:0px; - padding:0px; -} - -#nav-tree li { - white-space:nowrap; - margin:0px; - padding:0px; -} - -#nav-tree .plus { - margin:0px; -} - -#nav-tree .selected { - background-image: url('tab_a.png'); - background-repeat:repeat-x; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); -} - -#nav-tree img { - margin:0px; - padding:0px; - border:0px; - vertical-align: middle; -} - -#nav-tree a { - text-decoration:none; - padding:0px; - margin:0px; - outline:none; -} - -#nav-tree .label { - margin:0px; - padding:0px; -} - -#nav-tree .label a { - padding:2px; -} - -#nav-tree .selected a { - text-decoration:none; - padding:2px; - margin:0px; - color:#fff; -} - -#nav-tree .children_ul { - margin:0px; - padding:0px; -} - -#nav-tree .item { - margin:0px; - padding:0px; -} - -#nav-tree { - padding: 0px 0px; - background-color: #FAFAFF; - font-size:14px; - overflow:auto; -} - -#doc-content { - overflow:auto; - display:block; - padding:0px; - margin:0px; -} - -#side-nav { - padding:0 6px 0 0; - margin: 0px; - display:block; - position: absolute; - left: 0px; - width: 300px; -} - -.ui-resizable .ui-resizable-handle { - display:block; -} - -.ui-resizable-e { - background:url("ftv2splitbar.png") repeat scroll right center transparent; - cursor:e-resize; - height:100%; - right:0; - top:0; - width:6px; -} - -.ui-resizable-handle { - display:none; - font-size:0.1px; - position:absolute; - z-index:1; -} - -#nav-tree-contents { - margin: 6px 0px 0px 0px; -} - -#nav-tree { - background-image:url('nav_h.png'); - background-repeat:repeat-x; - background-color: #F9FAFC; -} - - - diff --git a/docs/html/navtree.js b/docs/html/navtree.js deleted file mode 100644 index 9530369..0000000 --- a/docs/html/navtree.js +++ /dev/null @@ -1,320 +0,0 @@ -var NAVTREE = -[ - [ "server", "index.html", [ - [ "Class List", "annotated.html", [ - [ "class", "structclass.html", null ], - [ "HttpHeader", "structHttpHeader.html", null ], - [ "HttpRequest", "structHttpRequest.html", null ], - [ "HttpRequestParser", "structHttpRequestParser.html", null ], - [ "HttpRequestQueue", "structHttpRequestQueue.html", null ], - [ "HttpResponse", "structHttpResponse.html", null ], - [ "i_Class", "structi__Class.html", null ], - [ "i_Logger", "structi__Logger.html", null ], - [ "i_StreamReader", "structi__StreamReader.html", null ], - [ "iface_impl", "structiface__impl.html", null ], - [ "interface", "structinterface.html", null ], - [ "Logger", "structLogger.html", null ], - [ "LoggerStderr", "structLoggerStderr.html", null ], - [ "LoggerSyslog", "structLoggerSyslog.html", null ], - [ "Server", "structServer.html", null ], - [ "Sock", "structSock.html", null ] - ] ], - [ "Class Index", "classes.html", null ], - [ "Class Members", "functions.html", null ], - [ "File List", "files.html", [ - [ "config.h", "config_8h.html", null ], - [ "include/class.h", "class_8h.html", null ], - [ "include/interface.h", "interface_8h.html", null ], - [ "include/logger.h", "logger_8h.html", null ], - [ "include/server.h", "server_8h.html", null ], - [ "include/signalHandling.h", "signalHandling_8h.html", null ], - [ "include/socket.h", "socket_8h.html", null ], - [ "include/http/header.h", "header_8h.html", null ], - [ "include/http/request.h", "request_8h.html", null ], - [ "include/http/request_parser.h", "request__parser_8h.html", null ], - [ "include/http/request_queue.h", "request__queue_8h.html", null ], - [ "include/http/response.h", "response_8h.html", null ], - [ "include/interface/class.h", "interface_2class_8h.html", null ], - [ "include/interface/logger.h", "interface_2logger_8h.html", null ], - [ "include/interface/stream_reader.h", "stream__reader_8h.html", null ], - [ "src/class.c", "class_8c.html", null ], - [ "src/daemonize.c", "daemonize_8c.html", null ], - [ "src/interface.c", "interface_8c.html", null ], - [ "src/logger.c", "logger_8c.html", null ], - [ "src/server.c", "server_8c.html", null ], - [ "src/signalHandling.c", "signalHandling_8c.html", null ], - [ "src/socket.c", "socket_8c.html", null ], - [ "src/testserver.c", "testserver_8c.html", null ], - [ "src/http/header.c", "header_8c.html", null ], - [ "src/http/request.c", "request_8c.html", null ], - [ "src/http/header/get.c", "get_8c.html", null ], - [ "src/http/header/sort.c", "sort_8c.html", null ], - [ "src/http/request/header_get.c", "header__get_8c.html", null ], - [ "src/http/request/parser.c", "parser_8c.html", null ], - [ "src/http/request/queue.c", "queue_8c.html", null ], - [ "src/http/request/parser/get_header.c", "get__header_8c.html", null ], - [ "src/http/request/parser/get_request_line.c", "get__request__line_8c.html", null ], - [ "src/http/request/parser/parse.c", "parse_8c.html", null ], - [ "src/interface/class.c", "interface_2class_8c.html", null ], - [ "src/interface/logger.c", "interface_2logger_8c.html", null ], - [ "src/interface/stream_reader.c", "stream__reader_8c.html", null ], - [ "src/logger/stderr.c", "stderr_8c.html", null ], - [ "src/logger/syslog.c", "syslog_8c.html", null ], - [ "src/server/close_conn.c", "close__conn_8c.html", null ], - [ "src/server/handle_accept.c", "handle__accept_8c.html", null ], - [ "src/server/poll.c", "poll_8c.html", null ], - [ "src/server/read.c", "read_8c.html", null ], - [ "src/server/run.c", "run_8c.html", null ], - [ "src/socket/accept.c", "accept_8c.html", null ], - [ "src/socket/connect.c", "connect_8c.html", null ], - [ "src/socket/listen.c", "listen_8c.html", null ] - ] ], - [ "File Members", "globals.html", null ] - ] ] -]; - -function createIndent(o,domNode,node,level) -{ - if (node.parentNode && node.parentNode.parentNode) - { - createIndent(o,domNode,node.parentNode,level+1); - } - var imgNode = document.createElement("img"); - if (level==0 && node.childrenData) - { - node.plus_img = imgNode; - node.expandToggle = document.createElement("a"); - node.expandToggle.href = "javascript:void(0)"; - node.expandToggle.onclick = function() - { - if (node.expanded) - { - $(node.getChildrenUL()).slideUp("fast"); - if (node.isLast) - { - node.plus_img.src = node.relpath+"ftv2plastnode.png"; - } - else - { - node.plus_img.src = node.relpath+"ftv2pnode.png"; - } - node.expanded = false; - } - else - { - expandNode(o, node, false); - } - } - node.expandToggle.appendChild(imgNode); - domNode.appendChild(node.expandToggle); - } - else - { - domNode.appendChild(imgNode); - } - if (level==0) - { - if (node.isLast) - { - if (node.childrenData) - { - imgNode.src = node.relpath+"ftv2plastnode.png"; - } - else - { - imgNode.src = node.relpath+"ftv2lastnode.png"; - domNode.appendChild(imgNode); - } - } - else - { - if (node.childrenData) - { - imgNode.src = node.relpath+"ftv2pnode.png"; - } - else - { - imgNode.src = node.relpath+"ftv2node.png"; - domNode.appendChild(imgNode); - } - } - } - else - { - if (node.isLast) - { - imgNode.src = node.relpath+"ftv2blank.png"; - } - else - { - imgNode.src = node.relpath+"ftv2vertline.png"; - } - } - imgNode.border = "0"; -} - -function newNode(o, po, text, link, childrenData, lastNode) -{ - var node = new Object(); - node.children = Array(); - node.childrenData = childrenData; - node.depth = po.depth + 1; - node.relpath = po.relpath; - node.isLast = lastNode; - - node.li = document.createElement("li"); - po.getChildrenUL().appendChild(node.li); - node.parentNode = po; - - node.itemDiv = document.createElement("div"); - node.itemDiv.className = "item"; - - node.labelSpan = document.createElement("span"); - node.labelSpan.className = "label"; - - createIndent(o,node.itemDiv,node,0); - node.itemDiv.appendChild(node.labelSpan); - node.li.appendChild(node.itemDiv); - - var a = document.createElement("a"); - node.labelSpan.appendChild(a); - node.label = document.createTextNode(text); - a.appendChild(node.label); - if (link) - { - a.href = node.relpath+link; - } - else - { - if (childrenData != null) - { - a.className = "nolink"; - a.href = "javascript:void(0)"; - a.onclick = node.expandToggle.onclick; - node.expanded = false; - } - } - - node.childrenUL = null; - node.getChildrenUL = function() - { - if (!node.childrenUL) - { - node.childrenUL = document.createElement("ul"); - node.childrenUL.className = "children_ul"; - node.childrenUL.style.display = "none"; - node.li.appendChild(node.childrenUL); - } - return node.childrenUL; - }; - - return node; -} - -function showRoot() -{ - var headerHeight = $("#top").height(); - var footerHeight = $("#nav-path").height(); - var windowHeight = $(window).height() - headerHeight - footerHeight; - navtree.scrollTo('#selected',0,{offset:-windowHeight/2}); -} - -function expandNode(o, node, imm) -{ - if (node.childrenData && !node.expanded) - { - if (!node.childrenVisited) - { - getNode(o, node); - } - if (imm) - { - $(node.getChildrenUL()).show(); - } - else - { - $(node.getChildrenUL()).slideDown("fast",showRoot); - } - if (node.isLast) - { - node.plus_img.src = node.relpath+"ftv2mlastnode.png"; - } - else - { - node.plus_img.src = node.relpath+"ftv2mnode.png"; - } - node.expanded = true; - } -} - -function getNode(o, po) -{ - po.childrenVisited = true; - var l = po.childrenData.length-1; - for (var i in po.childrenData) - { - var nodeData = po.childrenData[i]; - po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2], - i==l); - } -} - -function findNavTreePage(url, data) -{ - var nodes = data; - var result = null; - for (var i in nodes) - { - var d = nodes[i]; - if (d[1] == url) - { - return new Array(i); - } - else if (d[2] != null) // array of children - { - result = findNavTreePage(url, d[2]); - if (result != null) - { - return (new Array(i).concat(result)); - } - } - } - return null; -} - -function initNavTree(toroot,relpath) -{ - var o = new Object(); - o.toroot = toroot; - o.node = new Object(); - o.node.li = document.getElementById("nav-tree-contents"); - o.node.childrenData = NAVTREE; - o.node.children = new Array(); - o.node.childrenUL = document.createElement("ul"); - o.node.getChildrenUL = function() { return o.node.childrenUL; }; - o.node.li.appendChild(o.node.childrenUL); - o.node.depth = 0; - o.node.relpath = relpath; - - getNode(o, o.node); - - o.breadcrumbs = findNavTreePage(toroot, NAVTREE); - if (o.breadcrumbs == null) - { - o.breadcrumbs = findNavTreePage("index.html",NAVTREE); - } - if (o.breadcrumbs != null && o.breadcrumbs.length>0) - { - var p = o.node; - for (var i in o.breadcrumbs) - { - var j = o.breadcrumbs[i]; - p = p.children[j]; - expandNode(o,p,true); - } - p.itemDiv.className = p.itemDiv.className + " selected"; - p.itemDiv.id = "selected"; - $(window).load(showRoot); - } -} - diff --git a/docs/html/open.png b/docs/html/open.png deleted file mode 100644 index 7b35d2c..0000000 Binary files a/docs/html/open.png and /dev/null differ diff --git a/docs/html/parse_8c.html b/docs/html/parse_8c.html deleted file mode 100644 index 8ad773f..0000000 --- a/docs/html/parse_8c.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - -server: src/http/request/parser/parse.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/parser/parse.c File Reference

-
-
-
#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <ctype.h>
-#include "http/request_parser.h"
-#include "interface/class.h"
-
-Include dependency graph for parse.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - -

-Defines

#define REMAINS(pars, done)   ((pars)->buffer_used - ((done) - (pars)->buffer))

-Functions

void httpRequestParserGetRequestLine (HttpRequest, char *)
void httpRequestParserParse (HttpRequestParser this)
-

Define Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
#define REMAINS( pars,
 done 
)   ((pars)->buffer_used - ((done) - (pars)->buffer))
-
-
- -

Definition at line 10 of file parse.c.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void httpRequestParserGetRequestLine (HttpRequest ,
char *  
)
-
-
- -

Definition at line 7 of file get_request_line.c.

-
{
-        char * method, * uri, * version;
-
-        method = line;
-
-        uri    = strchr(line, ' ');
-        *uri++ = 0;
-        for (; *uri == ' ' && *uri != 0; uri++);
-
-        version    = strchr(uri, ' ');
-        *version++ = 0;
-        for (; *version == ' ' && *version != 0; version++);
-
-        request->method  = malloc(strlen(method) + 1);
-        strcpy(request->method, method);
-        request->uri     = malloc(strlen(uri) + 1);
-        strcpy(request->uri, uri);
-        request->version = malloc(strlen(version) + 1);
-        strcpy(request->version, method);
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void httpRequestParserParse (HttpRequestParser this)
-
-
- -

enqueue current request

-

remove processed stuff from input buffer.

-

dont continue loop if input buffer is empty

-

prepare for next request

-

- -

Definition at line 43 of file parse.c.

-
{
-        static HttpRequest request  = NULL;
-        static char *      data; // static pointer to unprocessed data
-        char *             line;
-        int                cont = 1;
-
-        while(cont) {
-                switch(this->state) {
-                        case HTTP_REQUEST_GARBAGE:
-                                data = this->buffer; // initialize static pointer
-                                httpRequestSkip(&data);
-                                request = new(HttpRequest);
-
-                                this->state = HTTP_REQUEST_START;
-                                break;
-
-                        case HTTP_REQUEST_START:
-                                if (NULL == (line = httpRequestParserGetLine(&data))) {
-                                        cont = 0;
-                                        break;
-                                }
-                                
-                                httpRequestParserGetRequestLine(request, line);
-
-                                this->state = HTTP_REQUEST_REQUEST_LINE_DONE;
-                                break;
-
-                        case HTTP_REQUEST_REQUEST_LINE_DONE:
-                                if (NULL == (line = httpRequestParserGetLine(&data))) {
-                                        cont = 0;
-                                        break;
-                                }
-
-                                if (0 == strlen(line)) {
-                                        this->state = HTTP_REQUEST_HEADERS_DONE;
-                                        break;
-                                }
-
-                                httpRequestParserGetHeader(request, line);
-                                break;
-
-                        case HTTP_REQUEST_HEADERS_DONE:
-                                httpHeaderSort(request->header, request->nheader);
-
-                                {
-                                        char * nbody;
-
-                                        if (0 == request->nbody) {
-                                                nbody = httpHeaderGet(
-                                                                request->header,
-                                                                request->nheader,
-                                                                "Content-Length");
-
-                                                if (NULL == nbody) {
-                                                        this->state = HTTP_REQUEST_DONE;
-                                                        break;
-                                                }
-                                                else {
-                                                        request->nbody = atoi(nbody);
-                                                }
-                                        }
-
-                                        if (REMAINS(this, data) >= request->nbody) {
-                                                request->body = calloc(1, request->nbody + 1);
-                                                memcpy(request->body, data, request->nbody);
-                                                data += request->nbody;
-                                                this->state = HTTP_REQUEST_DONE;
-                                        }
-                                }
-                                        
-                                break;
-
-                        case HTTP_REQUEST_DONE:
-                                this->request_queue->requests[(this->request_queue->nrequests)++] =
-                                        request;
-
-                                memmove(this->buffer, data, REMAINS(this, data));
-
-                                this->buffer_used -= data - this->buffer;
-
-                                if (0 == this->buffer_used) {
-                                        cont = 0;
-                                }
-
-                                this->state = HTTP_REQUEST_GARBAGE;
-
-                                break;
-
-                        default:
-                                break;
-                }
-        }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/parse_8c__incl.map b/docs/html/parse_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/parse_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/parse_8c__incl.md5 b/docs/html/parse_8c__incl.md5 deleted file mode 100644 index 60c81a0..0000000 --- a/docs/html/parse_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -50bccfb87ca517a880afde699909857f \ No newline at end of file diff --git a/docs/html/parse_8c__incl.png b/docs/html/parse_8c__incl.png deleted file mode 100644 index a1ae072..0000000 Binary files a/docs/html/parse_8c__incl.png and /dev/null differ diff --git a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.map b/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.map deleted file mode 100644 index 77a4b0c..0000000 --- a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 b/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 deleted file mode 100644 index 9616c5b..0000000 --- a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -99e054c8a121835084e75516f7b257cf \ No newline at end of file diff --git a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.png b/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.png deleted file mode 100644 index e377d4c..0000000 Binary files a/docs/html/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.png and /dev/null differ diff --git a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.map b/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.map deleted file mode 100644 index aefc47a..0000000 --- a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.map +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 b/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 deleted file mode 100644 index 6c34dcf..0000000 --- a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -b26b7c22015997556a16c3a3d9590d98 \ No newline at end of file diff --git a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.png b/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.png deleted file mode 100644 index f319104..0000000 Binary files a/docs/html/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.png and /dev/null differ diff --git a/docs/html/parse_8c_source.html b/docs/html/parse_8c_source.html deleted file mode 100644 index 45be40f..0000000 --- a/docs/html/parse_8c_source.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - -server: src/http/request/parser/parse.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/parser/parse.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <string.h>
-00003 #include <unistd.h>
-00004 #include <ctype.h>
-00005 
-00006 #include "http/request_parser.h"
-00007 #include "interface/class.h"
-00008 
-00009 
-00010 #define REMAINS(pars,done) \
-00011         ((pars)->buffer_used - ((done) - (pars)->buffer))
-00012 
-00013 
-00014 static
-00015 inline
-00016 char *
-00017 httpRequestParserGetLine(char ** data)
-00018 {
-00019         char * line_end = strstr(*data, "\r\n");
-00020         char * ret      = *data;
-00021 
-00022         if (NULL == line_end) {
-00023                 return NULL;
-00024         }
-00025 
-00026         *line_end = 0;
-00027         *data = line_end + 2;
-00028 
-00029         return ret;
-00030 }
-00031 
-00032 static
-00033 inline
-00034 void
-00035 httpRequestSkip(char ** data)
-00036 {
-00037         for (; 0 != **data && ! isalpha(**data); (*data)++);
-00038 }
-00039 
-00040 void httpRequestParserGetRequestLine(HttpRequest, char *);
-00041 
-00042 void
-00043 httpRequestParserParse(HttpRequestParser this)
-00044 {
-00045         static HttpRequest request  = NULL;
-00046         static char *      data; // static pointer to unprocessed data
-00047         char *             line;
-00048         int                cont = 1;
-00049 
-00050         while(cont) {
-00051                 switch(this->state) {
-00052                         case HTTP_REQUEST_GARBAGE:
-00053                                 data = this->buffer; // initialize static pointer
-00054                                 httpRequestSkip(&data);
-00055                                 request = new(HttpRequest);
-00056 
-00057                                 this->state = HTTP_REQUEST_START;
-00058                                 break;
-00059 
-00060                         case HTTP_REQUEST_START:
-00061                                 if (NULL == (line = httpRequestParserGetLine(&data))) {
-00062                                         cont = 0;
-00063                                         break;
-00064                                 }
-00065                                 
-00066                                 httpRequestParserGetRequestLine(request, line);
-00067 
-00068                                 this->state = HTTP_REQUEST_REQUEST_LINE_DONE;
-00069                                 break;
-00070 
-00071                         case HTTP_REQUEST_REQUEST_LINE_DONE:
-00072                                 if (NULL == (line = httpRequestParserGetLine(&data))) {
-00073                                         cont = 0;
-00074                                         break;
-00075                                 }
-00076 
-00077                                 if (0 == strlen(line)) {
-00078                                         this->state = HTTP_REQUEST_HEADERS_DONE;
-00079                                         break;
-00080                                 }
-00081 
-00082                                 httpRequestParserGetHeader(request, line);
-00083                                 break;
-00084 
-00085                         case HTTP_REQUEST_HEADERS_DONE:
-00086                                 httpHeaderSort(request->header, request->nheader);
-00087 
-00088                                 {
-00089                                         char * nbody;
-00090 
-00091                                         if (0 == request->nbody) {
-00092                                                 nbody = httpHeaderGet(
-00093                                                                 request->header,
-00094                                                                 request->nheader,
-00095                                                                 "Content-Length");
-00096 
-00097                                                 if (NULL == nbody) {
-00098                                                         this->state = HTTP_REQUEST_DONE;
-00099                                                         break;
-00100                                                 }
-00101                                                 else {
-00102                                                         request->nbody = atoi(nbody);
-00103                                                 }
-00104                                         }
-00105 
-00106                                         if (REMAINS(this, data) >= request->nbody) {
-00107                                                 request->body = calloc(1, request->nbody + 1);
-00108                                                 memcpy(request->body, data, request->nbody);
-00109                                                 data += request->nbody;
-00110                                                 this->state = HTTP_REQUEST_DONE;
-00111                                         }
-00112                                 }
-00113                                         
-00114                                 break;
-00115 
-00116                         case HTTP_REQUEST_DONE:
-00120                                 this->request_queue->requests[(this->request_queue->nrequests)++] =
-00121                                         request;
-00122 
-00126                                 memmove(this->buffer, data, REMAINS(this, data));
-00127 
-00128                                 this->buffer_used -= data - this->buffer;
-00129 
-00133                                 if (0 == this->buffer_used) {
-00134                                         cont = 0;
-00135                                 }
-00136 
-00140                                 this->state = HTTP_REQUEST_GARBAGE;
-00141 
-00142                                 break;
-00143 
-00144                         default:
-00145                                 break;
-00146                 }
-00147         }
-00148 }
-00149 
-00150 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/parser_8c.html b/docs/html/parser_8c.html deleted file mode 100644 index d1bde55..0000000 --- a/docs/html/parser_8c.html +++ /dev/null @@ -1,371 +0,0 @@ - - - - -server: src/http/request/parser.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/parser.c File Reference

-
-
-
#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include "class.h"
-#include "http/request_parser.h"
-#include "interface/class.h"
-#include "interface/stream_reader.h"
-#include "http/request.h"
-#include "http/request_queue.h"
-
-Include dependency graph for parser.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - -

-Functions

void httpRequestParserParse (HttpRequestParser)
 INIT_IFACE (Class, ctor, dtor, _clone)
 INIT_IFACE (StreamReader, get_data)
 CREATE_CLASS (HttpRequestParser, NULL, IFACE(Class), IFACE(StreamReader))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpRequestParser ,
NULL ,
IFACE(Class) ,
IFACE(StreamReader)  
)
-
-
- -
-
- -
-
- - - - - - - - -
void httpRequestParserParse (HttpRequestParser )
-
-
- -

enqueue current request

-

remove processed stuff from input buffer.

-

dont continue loop if input buffer is empty

-

prepare for next request

-

- -

Definition at line 43 of file parse.c.

-
{
-        static HttpRequest request  = NULL;
-        static char *      data; // static pointer to unprocessed data
-        char *             line;
-        int                cont = 1;
-
-        while(cont) {
-                switch(this->state) {
-                        case HTTP_REQUEST_GARBAGE:
-                                data = this->buffer; // initialize static pointer
-                                httpRequestSkip(&data);
-                                request = new(HttpRequest);
-
-                                this->state = HTTP_REQUEST_START;
-                                break;
-
-                        case HTTP_REQUEST_START:
-                                if (NULL == (line = httpRequestParserGetLine(&data))) {
-                                        cont = 0;
-                                        break;
-                                }
-                                
-                                httpRequestParserGetRequestLine(request, line);
-
-                                this->state = HTTP_REQUEST_REQUEST_LINE_DONE;
-                                break;
-
-                        case HTTP_REQUEST_REQUEST_LINE_DONE:
-                                if (NULL == (line = httpRequestParserGetLine(&data))) {
-                                        cont = 0;
-                                        break;
-                                }
-
-                                if (0 == strlen(line)) {
-                                        this->state = HTTP_REQUEST_HEADERS_DONE;
-                                        break;
-                                }
-
-                                httpRequestParserGetHeader(request, line);
-                                break;
-
-                        case HTTP_REQUEST_HEADERS_DONE:
-                                httpHeaderSort(request->header, request->nheader);
-
-                                {
-                                        char * nbody;
-
-                                        if (0 == request->nbody) {
-                                                nbody = httpHeaderGet(
-                                                                request->header,
-                                                                request->nheader,
-                                                                "Content-Length");
-
-                                                if (NULL == nbody) {
-                                                        this->state = HTTP_REQUEST_DONE;
-                                                        break;
-                                                }
-                                                else {
-                                                        request->nbody = atoi(nbody);
-                                                }
-                                        }
-
-                                        if (REMAINS(this, data) >= request->nbody) {
-                                                request->body = calloc(1, request->nbody + 1);
-                                                memcpy(request->body, data, request->nbody);
-                                                data += request->nbody;
-                                                this->state = HTTP_REQUEST_DONE;
-                                        }
-                                }
-                                        
-                                break;
-
-                        case HTTP_REQUEST_DONE:
-                                this->request_queue->requests[(this->request_queue->nrequests)++] =
-                                        request;
-
-                                memmove(this->buffer, data, REMAINS(this, data));
-
-                                this->buffer_used -= data - this->buffer;
-
-                                if (0 == this->buffer_used) {
-                                        cont = 0;
-                                }
-
-                                this->state = HTTP_REQUEST_GARBAGE;
-
-                                break;
-
-                        default:
-                                break;
-                }
-        }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
_clone  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
INIT_IFACE (StreamReader ,
get_data  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/parser_8c__incl.map b/docs/html/parser_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/parser_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/parser_8c__incl.md5 b/docs/html/parser_8c__incl.md5 deleted file mode 100644 index 7e523d1..0000000 --- a/docs/html/parser_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -56e3545a5b9794c9ffcf0b4fb6d2f733 \ No newline at end of file diff --git a/docs/html/parser_8c__incl.png b/docs/html/parser_8c__incl.png deleted file mode 100644 index cb09e7d..0000000 Binary files a/docs/html/parser_8c__incl.png and /dev/null differ diff --git a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.map b/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.map deleted file mode 100644 index aefc47a..0000000 --- a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.map +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 b/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 deleted file mode 100644 index 6c34dcf..0000000 --- a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -b26b7c22015997556a16c3a3d9590d98 \ No newline at end of file diff --git a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.png b/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.png deleted file mode 100644 index f319104..0000000 Binary files a/docs/html/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.png and /dev/null differ diff --git a/docs/html/parser_8c_source.html b/docs/html/parser_8c_source.html deleted file mode 100644 index 3e0d40a..0000000 --- a/docs/html/parser_8c_source.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - -server: src/http/request/parser.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/parser.c

-
-
-Go to the documentation of this file.
00001 #include <string.h>
-00002 #include <stdlib.h>
-00003 #include <sys/types.h>
-00004 
-00005 #include "class.h"
-00006 #include "http/request_parser.h"
-00007 #include "interface/class.h"
-00008 #include "interface/stream_reader.h"
-00009 #include "http/request.h"
-00010 #include "http/request_queue.h"
-00011 
-00012 void httpRequestParserParse(HttpRequestParser);
-00013 
-00014 static
-00015 void
-00016 ctor(void * _this, va_list * params)
-00017 {
-00018         HttpRequestParser this = _this;
-00019 
-00020         this->request_queue = new(HttpRequestQueue);
-00021 
-00022         this->buffer = malloc(HTTP_REQUEST_PARSER_READ_CHUNK);
-00023         this->buffer[0] = 0;
-00024 }
-00025 
-00026 static
-00027 void
-00028 dtor(void * _this)
-00029 {
-00030         HttpRequestParser this = _this;
-00031 
-00032         free(this->buffer);
-00033         delete(&(this->request_queue));
-00034 } 
-00035 
-00036 static
-00037 void
-00038 _clone(void * _this, void * _base)
-00039 {
-00040         HttpRequestParser this = _this;
-00041         HttpRequestParser base = _base;
-00042         size_t            chunks;
-00043 
-00047         this->request_queue = new(HttpRequestQueue);
-00048         this->buffer_used   = base->buffer_used;
-00049 
-00050         chunks = this->buffer_used / HTTP_REQUEST_PARSER_READ_CHUNK;
-00051         chunks++;
-00052 
-00053         this->buffer = malloc(chunks * HTTP_REQUEST_PARSER_READ_CHUNK);
-00054         memcpy(this->buffer, base->buffer, this->buffer_used);
-00055 }
-00056 
-00057 static
-00058 size_t
-00059 get_data(void * _this, int fd)
-00060 {
-00061         HttpRequestParser this = _this;
-00062         size_t            remaining, chunks;
-00063         char              buffer[1024];
-00064 
-00065         size_t size = read(fd, buffer, 1024);
-00066 
-00067         if (0 < size) {
-00068                 remaining = this->buffer_used % HTTP_REQUEST_PARSER_READ_CHUNK;
-00069                 chunks    = this->buffer_used / HTTP_REQUEST_PARSER_READ_CHUNK;
-00070 
-00079                 chunks++;
-00080 
-00081                 if (size >= remaining) {
-00082                         this->buffer =
-00083                                 realloc(this->buffer, chunks * HTTP_REQUEST_PARSER_READ_CHUNK);
-00084                 }
-00085 
-00086                 memcpy(this->buffer + this->buffer_used, buffer, size);
-00087                 this->buffer_used += size;
-00088                 this->buffer[this->buffer_used] = 0;
-00089 
-00090                 httpRequestParserParse(this);
-00091         }
-00092 
-00093         return size;
-00094 }
-00095 
-00096 INIT_IFACE(Class, ctor, dtor, _clone);
-00097 INIT_IFACE(StreamReader, get_data);
-00098 CREATE_CLASS(HttpRequestParser, NULL, IFACE(Class), IFACE(StreamReader));
-00099 
-00100 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/poll_8c.html b/docs/html/poll_8c.html deleted file mode 100644 index 8d3d7db..0000000 --- a/docs/html/poll_8c.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -server: src/server/poll.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/server/poll.c File Reference

-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Defines

#define POLLFD(ptr)   ((struct pollfd *)(ptr))
-

Define Documentation

- -
-
- - - - - - - - -
#define POLLFD( ptr)   ((struct pollfd *)(ptr))
-
-
- -

Definition at line 1 of file poll.c.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/poll_8c__dep__incl.map b/docs/html/poll_8c__dep__incl.map deleted file mode 100644 index 56bf18c..0000000 --- a/docs/html/poll_8c__dep__incl.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/poll_8c__dep__incl.md5 b/docs/html/poll_8c__dep__incl.md5 deleted file mode 100644 index 2bb0a7c..0000000 --- a/docs/html/poll_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -1b9313d52607cd037c0aa921a3cd23ae \ No newline at end of file diff --git a/docs/html/poll_8c__dep__incl.png b/docs/html/poll_8c__dep__incl.png deleted file mode 100644 index 411e9c7..0000000 Binary files a/docs/html/poll_8c__dep__incl.png and /dev/null differ diff --git a/docs/html/poll_8c_source.html b/docs/html/poll_8c_source.html deleted file mode 100644 index 0a84ad4..0000000 --- a/docs/html/poll_8c_source.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -server: src/server/poll.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/poll.c

-
-
-Go to the documentation of this file.
00001 #define POLLFD(ptr)     ((struct pollfd *)(ptr))
-00002 
-00003 static
-00004 inline
-00005 int
-00006 sortEvents(const void * a, const void * b)
-00007 {
-00008         return POLLFD(a)->events > POLLFD(b)->events ?
-00009                 -1 : POLLFD(a)->events < POLLFD(b)->events ?
-00010                 1 : 0;
-00011 }
-00012 
-00013 static
-00014 inline
-00015 int
-00016 sortRevents(const void * a, const void * b)
-00017 {
-00018         return POLLFD(a)->revents > POLLFD(b)->revents ?
-00019                 -1 : POLLFD(a)->revents < POLLFD(b)->revents ?
-00020                 1 : 0;
-00021 }
-00022 
-00023 static
-00024 int
-00025 serverPoll(Server this) {
-00026         int events;
-00027 
-00028         qsort(this->fds, this->nfds, sizeof(struct pollfd), sortEvents);
-00029         this->nfds -= this->ndel;
-00030         this->ndel  = 0;
-00031 
-00032         /*
-00033          * wait for handles to become ready
-00034          */
-00035         if (-1 == (events = poll(this->fds, this->nfds, -1))) {
-00036                 switch (errno) {
-00037                         default:
-00038                         case EBADF:
-00039                         case EINVAL:
-00040                         case ENOMEM:
-00041                                 doShutdown = 1;
-00042                                 /* Fallthrough */
-00043 
-00044                         case EINTR:
-00045                                 loggerLog(this->logger, LOGGER_CRIT,
-00046                                                 "poll systemcall failed: [%s] - service terminated",
-00047                                                 strerror(errno));
-00048                                 //exit(EXIT_FAILURE); /* @TODO do real shutdown here */
-00049                 }
-00050         }
-00051 
-00052         qsort(this->fds, this->nfds, sizeof(struct pollfd), sortRevents);
-00053 
-00054         return events;
-00055 }
-00056 
-00057 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/queue_8c.html b/docs/html/queue_8c.html deleted file mode 100644 index b4d0dfe..0000000 --- a/docs/html/queue_8c.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - -server: src/http/request/queue.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request/queue.c File Reference

-
-
-
#include <stdarg.h>
-#include "class.h"
-#include "interface/class.h"
-#include "http/request_queue.h"
-
-Include dependency graph for queue.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (HttpRequestQueue, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpRequestQueue ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/queue_8c__incl.map b/docs/html/queue_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/queue_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/queue_8c__incl.md5 b/docs/html/queue_8c__incl.md5 deleted file mode 100644 index d1f90ce..0000000 --- a/docs/html/queue_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -596f0e38facc39d2e21f01a90b5651af \ No newline at end of file diff --git a/docs/html/queue_8c__incl.png b/docs/html/queue_8c__incl.png deleted file mode 100644 index f5eb376..0000000 Binary files a/docs/html/queue_8c__incl.png and /dev/null differ diff --git a/docs/html/queue_8c_source.html b/docs/html/queue_8c_source.html deleted file mode 100644 index 095f639..0000000 --- a/docs/html/queue_8c_source.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - -server: src/http/request/queue.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request/queue.c

-
-
-Go to the documentation of this file.
00001 #include <stdarg.h>
-00002 
-00003 #include "class.h"
-00004 #include "interface/class.h"
-00005 
-00006 #include "http/request_queue.h"
-00007 
-00008 static
-00009 void
-00010 ctor(void * _this, va_list * params) {}
-00011 
-00012 static
-00013 void
-00014 dtor(void * _this)
-00015 {
-00016         HttpRequestQueue this = _this;
-00017         int              i;
-00018 
-00019         for (i=0; i<this->nrequests; i++) {
-00020                 delete(&(this->requests)[i]);
-00021         }
-00022 }
-00023 
-00024 INIT_IFACE(Class, ctor, dtor, NULL);
-00025 CREATE_CLASS(HttpRequestQueue, NULL, IFACE(Class));
-00026 
-00027 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/read_8c.html b/docs/html/read_8c.html deleted file mode 100644 index 88c3554..0000000 --- a/docs/html/read_8c.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -server: src/server/read.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/read.c File Reference

-
-
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- -
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/read_8c__dep__incl.map b/docs/html/read_8c__dep__incl.map deleted file mode 100644 index 4f8558b..0000000 --- a/docs/html/read_8c__dep__incl.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/read_8c__dep__incl.md5 b/docs/html/read_8c__dep__incl.md5 deleted file mode 100644 index 1370a97..0000000 --- a/docs/html/read_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -e26ae7a3e4e14e74d919797c4e981f08 \ No newline at end of file diff --git a/docs/html/read_8c__dep__incl.png b/docs/html/read_8c__dep__incl.png deleted file mode 100644 index 1b786fd..0000000 Binary files a/docs/html/read_8c__dep__incl.png and /dev/null differ diff --git a/docs/html/read_8c_source.html b/docs/html/read_8c_source.html deleted file mode 100644 index d63bd8e..0000000 --- a/docs/html/read_8c_source.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - -server: src/server/read.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/read.c

-
-
-Go to the documentation of this file.
00001 static
-00002 int
-00003 serverRead(Server this, unsigned int i)
-00004 {
-00005         int fd = (this->fds)[i].fd;
-00006         int size;
-00007 
-00008         if (NULL == (this->conns)[fd].reader) {
-00009                 loggerLog(
-00010                                 this->logger,
-00011                                 LOGGER_INFO,
-00012                                 "initialization error: NULL reader");
-00013                 serverCloseConn(this, i);
-00014         }
-00015 
-00016         switch ((size = streamReaderRead((this->conns)[fd].reader, fd))) {
-00017                 case 0:
-00018                         /*
-00019                          * normal close: write remaining data
-00020                          * @TODO: actually we have no remaining data here....
-00021                          */
-00022                         /* DROP-THROUGH */
-00023 
-00024                 case -1: 
-00025                         /*
-00026                          * read failure / close connection
-00027                          */
-00028                         loggerLog(this->logger, LOGGER_INFO, "connection closed...");
-00029                         serverCloseConn(this, i);
-00030                         break;
-00031 
-00032                 default:
-00033                         break;
-00034         }
-00035 
-00036         return size;
-00037 }
-00038 
-00039 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request_8c.html b/docs/html/request_8c.html deleted file mode 100644 index 55c54e3..0000000 --- a/docs/html/request_8c.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - -server: src/http/request.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request.c File Reference

-
-
-
#include <stdlib.h>
-#include <stdarg.h>
-#include "class.h"
-#include "interface/class.h"
-#include "http/request.h"
-
-Include dependency graph for request.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (HttpRequest, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpRequest ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request_8c__incl.map b/docs/html/request_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request_8c__incl.md5 b/docs/html/request_8c__incl.md5 deleted file mode 100644 index e6a727e..0000000 --- a/docs/html/request_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f6f59d2fba8fd35459da15f30c900197 \ No newline at end of file diff --git a/docs/html/request_8c__incl.png b/docs/html/request_8c__incl.png deleted file mode 100644 index af72897..0000000 Binary files a/docs/html/request_8c__incl.png and /dev/null differ diff --git a/docs/html/request_8c_source.html b/docs/html/request_8c_source.html deleted file mode 100644 index 746b417..0000000 --- a/docs/html/request_8c_source.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - -server: src/http/request.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <stdarg.h>
-00003 
-00004 #include "class.h"
-00005 #include "interface/class.h"
-00006 
-00007 #include "http/request.h"
-00008 
-00009 static
-00010 void
-00011 _free(void ** data)
-00012 {
-00013         if (NULL != *data) {
-00014                 free(*data);
-00015         }
-00016 }
-00017 
-00018 static
-00019 void
-00020 ctor(void * _this, va_list * params) {}
-00021 
-00022 static
-00023 void
-00024 dtor(void * _this)
-00025 {
-00026         HttpRequest this = _this;
-00027         int         i;
-00028 
-00029         _free((void **)&(this->version));
-00030         _free((void **)&(this->uri));
-00031         _free((void **)&(this->method));
-00032 
-00033         for (i=0; i<128; i++) {
-00034                 if (NULL == (this->header)[i]) break;
-00035                 delete(&(this->header)[i]);
-00036         }
-00037 
-00038         _free((void **)&(this->body));
-00039 } 
-00040 
-00041 INIT_IFACE(Class, ctor, dtor, NULL);
-00042 CREATE_CLASS(HttpRequest, NULL, IFACE(Class));
-00043 
-00044 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request_8h.html b/docs/html/request_8h.html deleted file mode 100644 index 9516909..0000000 --- a/docs/html/request_8h.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - -server: include/http/request.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/http/request.h File Reference

-
-
-
#include "class.h"
-#include "http/header.h"
-
-Include dependency graph for request.h:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - -

-Classes

struct  HttpRequest

-Functions

char * httpRequestHeaderGet (HttpRequest this, const char *name)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
char* httpRequestHeaderGet (HttpRequest this,
const char * name 
)
-
-
- -

Definition at line 31 of file header_get.c.

-
{
-        unsigned long              hash = sdbm((unsigned char *)name);
-        struct HttpRequestHeader * header;
-
-        header = bsearch(
-                        &hash,
-                        this->header,
-                        this->nheader,
-                        sizeof(struct HttpRequestHeader),
-                        comp);
-
-        return (NULL != header)? header->value : NULL;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request_8h__incl.map b/docs/html/request_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request_8h__incl.md5 b/docs/html/request_8h__incl.md5 deleted file mode 100644 index bb0d6ba..0000000 --- a/docs/html/request_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -44c04c30805a38e40ef2bc5ab893f713 \ No newline at end of file diff --git a/docs/html/request_8h__incl.png b/docs/html/request_8h__incl.png deleted file mode 100644 index e43ed9e..0000000 Binary files a/docs/html/request_8h__incl.png and /dev/null differ diff --git a/docs/html/request_8h_source.html b/docs/html/request_8h_source.html deleted file mode 100644 index 283b323..0000000 --- a/docs/html/request_8h_source.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - -server: include/http/request.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/http/request.h

-
-
-Go to the documentation of this file.
00001 #ifndef __HTTP_REQUEST_H__
-00002 #define __HTTP_REQUEST_H__
-00003 
-00004 #include "class.h"
-00005 #include "http/header.h"
-00006 
-00007 CLASS(HttpRequest) {
-00008         char *     method;
-00009         char *     uri;
-00010         char *     version;
-00011         
-00012         HttpHeader header[128];
-00013         int        nheader;
-00014 
-00015         char *     body;
-00016         int        nbody;
-00017 };
-00018 
-00019 char *
-00020 httpRequestHeaderGet(HttpRequest this, const char * name);
-00021 
-00022 #endif /* __HTTP_REQUEST_H__ */
-00023 
-00024 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__parser_8c.html b/docs/html/request__parser_8c.html deleted file mode 100644 index a6f5f83..0000000 --- a/docs/html/request__parser_8c.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - -server: src/http/request_parser.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request_parser.c File Reference

-
-
-
#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <sys/types.h>
-#include "class.h"
-#include "http/request_parser.h"
-#include "interface/class.h"
-#include "interface/stream_reader.h"
-#include "http/request.h"
-#include "http/request_queue.h"
-
-Include dependency graph for request_parser.c:
-
-
-
-
-

Go to the source code of this file.

- - - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, _clone)
 INIT_IFACE (StreamReader, get_data)
 CREATE_CLASS (HttpRequestParser, NULL, IFACE(Class), IFACE(StreamReader))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpRequestParser ,
NULL ,
IFACE(Class) ,
IFACE(StreamReader)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
_clone  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
INIT_IFACE (StreamReader ,
get_data  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__parser_8c__incl.map b/docs/html/request__parser_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request__parser_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request__parser_8c__incl.md5 b/docs/html/request__parser_8c__incl.md5 deleted file mode 100644 index de6ca67..0000000 --- a/docs/html/request__parser_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -57f7b5ddf1ef5b9ca385f2afdf5318a6 \ No newline at end of file diff --git a/docs/html/request__parser_8c__incl.png b/docs/html/request__parser_8c__incl.png deleted file mode 100644 index c070a32..0000000 Binary files a/docs/html/request__parser_8c__incl.png and /dev/null differ diff --git a/docs/html/request__parser_8c_source.html b/docs/html/request__parser_8c_source.html deleted file mode 100644 index d8ec6a7..0000000 --- a/docs/html/request__parser_8c_source.html +++ /dev/null @@ -1,348 +0,0 @@ - - - - -server: src/http/request_parser.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request_parser.c

-
-
-Go to the documentation of this file.
00001 #include <stdlib.h>
-00002 #include <string.h>
-00003 #include <stdlib.h>
-00004 #include <stdio.h>
-00005 #include <unistd.h>
-00006 #include <ctype.h>
-00007 #include <sys/types.h>
-00008 
-00009 #include "class.h"
-00010 #include "http/request_parser.h"
-00011 #include "interface/class.h"
-00012 #include "interface/stream_reader.h"
-00013 #include "http/request.h"
-00014 #include "http/request_queue.h"
-00015 
-00016 static
-00017 void
-00018 httpRequestParserParse(HttpRequestParser);
-00019 
-00020 static
-00021 void
-00022 ctor(void * _this, va_list * params)
-00023 {
-00024         HttpRequestParser this = _this;
-00025 
-00026         this->request_queue = new(HttpRequestQueue);
-00027 
-00028         this->buffer = malloc(HTTP_REQUEST_PARSER_READ_CHUNK);
-00029         this->buffer[0] = 0;
-00030 }
-00031 
-00032 static
-00033 void
-00034 dtor(void * _this)
-00035 {
-00036         HttpRequestParser this = _this;
-00037 
-00038         free(this->buffer);
-00039         delete(&(this->request_queue));
-00040 } 
-00041 
-00042 static
-00043 void
-00044 _clone(void * _this, void * _base)
-00045 {
-00046         HttpRequestParser this = _this;
-00047         HttpRequestParser base = _base;
-00048         size_t            chunks;
-00049 
-00053         this->request_queue = new(HttpRequestQueue);
-00054         this->buffer_used   = base->buffer_used;
-00055 
-00056         chunks = this->buffer_used / HTTP_REQUEST_PARSER_READ_CHUNK;
-00057         chunks++;
-00058 
-00059         this->buffer = malloc(chunks * HTTP_REQUEST_PARSER_READ_CHUNK);
-00060         memcpy(this->buffer, base->buffer, this->buffer_used);
-00061 }
-00062 
-00063 static
-00064 size_t
-00065 get_data(void * _this, int fd)
-00066 {
-00067         HttpRequestParser this = _this;
-00068         size_t            remaining, chunks;
-00069         char              buffer[1024];
-00070 
-00071         size_t size = read(fd, buffer, 1024);
-00072 
-00073         if (0 < size) {
-00074                 remaining = this->buffer_used % HTTP_REQUEST_PARSER_READ_CHUNK;
-00075                 chunks    = this->buffer_used / HTTP_REQUEST_PARSER_READ_CHUNK;
-00076 
-00085                 chunks++;
-00086 
-00087                 if (size >= remaining) {
-00088                         this->buffer =
-00089                                 realloc(this->buffer, chunks * HTTP_REQUEST_PARSER_READ_CHUNK);
-00090                 }
-00091 
-00092                 memcpy(this->buffer + this->buffer_used, buffer, size);
-00093                 this->buffer_used += size;
-00094                 this->buffer[this->buffer_used] = 0;
-00095 
-00096                 httpRequestParserParse(this);
-00097         }
-00098 
-00099         return size;
-00100 }
-00101 
-00102 INIT_IFACE(Class, ctor, dtor, _clone);
-00103 INIT_IFACE(StreamReader, get_data);
-00104 CREATE_CLASS(HttpRequestParser, NULL, IFACE(Class), IFACE(StreamReader));
-00105 
-00106 static
-00107 inline
-00108 char *
-00109 httpRequestLineGet(char ** data)
-00110 {
-00111         char * line_end = strstr(*data, "\r\n");
-00112         char * ret      = *data;
-00113 
-00114         if (NULL == line_end) {
-00115                 return NULL;
-00116         }
-00117 
-00118         *line_end = 0;
-00119         *data = line_end + 2;
-00120 
-00121         return ret;
-00122 }
-00123 
-00124 static
-00125 inline
-00126 void
-00127 httpRequestSkip(char ** data)
-00128 {
-00129         for (; 0 != **data && ! isalpha(**data); (*data)++);
-00130 }
-00131 
-00132 static
-00133 void
-00134 httpRequestParserParse(HttpRequestParser this)
-00135 {
-00136         static HttpRequest request  = NULL;
-00137         static char *      data; // static pointer to unprocessed data
-00138         char *             line;
-00139         int                cont = 1;
-00140         static int         header_idx;
-00141 
-00142         while(cont) {
-00143                 switch(this->state) {
-00144                         case HTTP_REQUEST_GARBAGE:
-00145                                 data = this->buffer; // initialize static pointer
-00146                                 httpRequestSkip(&data);
-00147                                 request = new(HttpRequest);
-00148 
-00149                                 this->state = HTTP_REQUEST_START;
-00150                                 break;
-00151 
-00152                         case HTTP_REQUEST_START:
-00153                                 if (NULL == (line = httpRequestLineGet(&data))) {
-00154                                         cont = 0;
-00155                                         break;
-00156                                 }
-00157                                 
-00158                                 {
-00159                                         char * delim = strchr(line, ' ');
-00160 
-00161                                         if (NULL != delim) {
-00162                                                 *delim = 0;
-00163                                                 request->method = malloc(strlen(line) + 1);
-00164                                                 strcpy(request->method, line);
-00165                                                 line = delim + 1;
-00166 
-00167                                                 for (; *line == ' ' && *line != 0; line++);
-00168 
-00169                                                 if (0 != *line) {
-00170                                                         delim = strchr(line, ' ');
-00171 
-00172                                                         if (NULL != delim) {
-00173                                                                 *delim = 0;
-00174                                                                 request->uri = malloc(strlen(line) + 1);
-00175                                                                 strcpy(request->uri, line);
-00176                                                                 line = delim + 1;
-00177 
-00178                                                                 for (; *line == ' ' && *line != 0; line++);
-00179 
-00180                                                                 if (0 != *line) {
-00181                                                                         request->http_version = malloc(strlen(line) + 1);
-00182                                                                         strcpy(request->http_version, line);
-00183                                                                 }
-00184                                                         }
-00185                                                 }
-00186                                         }
-00187                                 }
-00188 
-00189                                 header_idx = 0;
-00190                                 this->state = HTTP_REQUEST_REQUEST_LINE_DONE;
-00191                                 break;
-00192 
-00193                         case HTTP_REQUEST_REQUEST_LINE_DONE:
-00194                                 if (NULL == (line = httpRequestLineGet(&data))) {
-00195                                         cont = 0;
-00196                                         break;
-00197                                 }
-00198 
-00199                                 if (0 == strlen(line)) {
-00200                                         this->state = HTTP_REQUEST_HEADERS_DONE;
-00201                                         break;
-00202                                 }
-00203 
-00204                                 {
-00205                                         char * delim = strchr(line, ':');
-00206 
-00207                                         *delim = 0;
-00208                                         (request->header)[header_idx].name = malloc(strlen(line) + 1);
-00209                                         strcpy((request->header)[header_idx].name, line);
-00210 
-00211                                         line = delim + 1;
-00212                                         for (; *line == ' ' && *line != 0; line++);
-00213 
-00214                                         (request->header)[header_idx].value = malloc(strlen(line) + 1);
-00215                                         strcpy((request->header)[header_idx].value, line);
-00216                                 }
-00217 
-00218                                 header_idx++;
-00219                                 break;
-00220 
-00221                         case HTTP_REQUEST_HEADERS_DONE:
-00225                                 this->state = HTTP_REQUEST_DONE;
-00226                                 break;
-00227 
-00228                         case HTTP_REQUEST_DONE:
-00232                                 this->request_queue->requests[(this->request_queue->nrequests)++] =
-00233                                         request;
-00234 
-00238                                 memmove(this->buffer,
-00239                                                 data,
-00240                                                 this->buffer_used - (data - this->buffer) + 1);
-00241 
-00242                                 this->buffer_used -= data - this->buffer;
-00243 
-00247                                 if (0 == this->buffer_used) {
-00248                                         cont = 0;
-00249                                 }
-00250 
-00254                                 this->state = HTTP_REQUEST_GARBAGE;
-00255 
-00256                                 break;
-00257 
-00258                         default:
-00259                                 break;
-00260                 }
-00261         }
-00262 }
-00263 
-00264 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__parser_8h.html b/docs/html/request__parser_8h.html deleted file mode 100644 index 3acbe59..0000000 --- a/docs/html/request__parser_8h.html +++ /dev/null @@ -1,213 +0,0 @@ - - - - -server: include/http/request_parser.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/http/request_parser.h File Reference

-
-
-
#include "class.h"
-#include "http/request_queue.h"
-
-Include dependency graph for request_parser.h:
-
-
-
-
-

Go to the source code of this file.

- - - - - - - - - -

-Classes

struct  HttpRequestParser

-Defines

#define HTTP_REQUEST_PARSER_READ_CHUNK   1024

-Typedefs

typedef enum e_HttpRequestState HttpRequestState

-Enumerations

enum  e_HttpRequestState {
-  HTTP_REQUEST_GARBAGE = 0, -HTTP_REQUEST_START, -HTTP_REQUEST_REQUEST_LINE_DONE, -HTTP_REQUEST_HEADERS_DONE, -
-  HTTP_REQUEST_DONE -
- }
-

Define Documentation

- -
-
- - - - -
#define HTTP_REQUEST_PARSER_READ_CHUNK   1024
-
-
- -

Definition at line 7 of file request_parser.h.

- -
-
-

Typedef Documentation

- -
-
- - - - -
typedef enum e_HttpRequestState HttpRequestState
-
-
- -
-
-

Enumeration Type Documentation

- -
-
- - - - -
enum e_HttpRequestState
-
-
-
Enumerator:
- - - - - -
HTTP_REQUEST_GARBAGE  -
HTTP_REQUEST_START  -
HTTP_REQUEST_REQUEST_LINE_DONE  -
HTTP_REQUEST_HEADERS_DONE  -
HTTP_REQUEST_DONE  -
-
-
- -

Definition at line 9 of file request_parser.h.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__parser_8h__incl.map b/docs/html/request__parser_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request__parser_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request__parser_8h__incl.md5 b/docs/html/request__parser_8h__incl.md5 deleted file mode 100644 index 9cc4cb5..0000000 --- a/docs/html/request__parser_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -b6da2c3d8c47bf057848084f432a522c \ No newline at end of file diff --git a/docs/html/request__parser_8h__incl.png b/docs/html/request__parser_8h__incl.png deleted file mode 100644 index c8d9ae1..0000000 Binary files a/docs/html/request__parser_8h__incl.png and /dev/null differ diff --git a/docs/html/request__parser_8h_source.html b/docs/html/request__parser_8h_source.html deleted file mode 100644 index 606e442..0000000 --- a/docs/html/request__parser_8h_source.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - -server: include/http/request_parser.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/http/request_parser.h

-
-
-Go to the documentation of this file.
00001 #ifndef __HTTP_REQUEST_PARSER_H__
-00002 #define __HTTP_REQUEST_PARSER_H__
-00003 
-00004 #include "class.h"
-00005 #include "http/request_queue.h"
-00006 
-00007 #define HTTP_REQUEST_PARSER_READ_CHUNK  1024
-00008 
-00009 typedef enum e_HttpRequestState {
-00010         HTTP_REQUEST_GARBAGE=0,
-00011         HTTP_REQUEST_START,
-00012         HTTP_REQUEST_REQUEST_LINE_DONE,
-00013         HTTP_REQUEST_HEADERS_DONE,
-00014         HTTP_REQUEST_DONE
-00015 } HttpRequestState;
-00016 
-00017 
-00018 CLASS(HttpRequestParser) {
-00019         char *           buffer;
-00020         size_t           buffer_used;
-00021         size_t           buffer_size;
-00022 
-00023         HttpRequestQueue request_queue;
-00024         HttpRequestState state;
-00025 };
-00026 
-00027 #endif /* __HTTP_REQUEST_PARSER_H__ */
-00028 
-00029 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__queue_8c.html b/docs/html/request__queue_8c.html deleted file mode 100644 index eb7cf37..0000000 --- a/docs/html/request__queue_8c.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - -server: src/http/request_queue.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/request_queue.c File Reference

-
-
-
#include <stdarg.h>
-#include "class.h"
-#include "interface/class.h"
-#include "http/request_queue.h"
-
-Include dependency graph for request_queue.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (HttpRequestQueue, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (HttpRequestQueue ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__queue_8c__incl.map b/docs/html/request__queue_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request__queue_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request__queue_8c__incl.md5 b/docs/html/request__queue_8c__incl.md5 deleted file mode 100644 index 90232ea..0000000 --- a/docs/html/request__queue_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -371c413182f355c6538d307a01968af6 \ No newline at end of file diff --git a/docs/html/request__queue_8c__incl.png b/docs/html/request__queue_8c__incl.png deleted file mode 100644 index a2886fe..0000000 Binary files a/docs/html/request__queue_8c__incl.png and /dev/null differ diff --git a/docs/html/request__queue_8c_source.html b/docs/html/request__queue_8c_source.html deleted file mode 100644 index f01f474..0000000 --- a/docs/html/request__queue_8c_source.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - -server: src/http/request_queue.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/request_queue.c

-
-
-Go to the documentation of this file.
00001 #include <stdarg.h>
-00002 
-00003 #include "class.h"
-00004 #include "interface/class.h"
-00005 
-00006 #include "http/request_queue.h"
-00007 
-00008 static
-00009 void
-00010 ctor(void * _this, va_list * params) {}
-00011 
-00012 static
-00013 void
-00014 dtor(void * _this)
-00015 {
-00016         HttpRequestQueue this = _this;
-00017         int              i;
-00018 
-00019         for (i=0; i<this->nrequests; i++) {
-00020                 delete(&(this->requests)[i]);
-00021         }
-00022 }
-00023 
-00024 INIT_IFACE(Class, ctor, dtor, NULL);
-00025 CREATE_CLASS(HttpRequestQueue, NULL, IFACE(Class));
-00026 
-00027 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__queue_8h.html b/docs/html/request__queue_8h.html deleted file mode 100644 index e7e50ce..0000000 --- a/docs/html/request__queue_8h.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -server: include/http/request_queue.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/http/request_queue.h File Reference

-
-
-
#include "class.h"
-#include "http/request.h"
-
-Include dependency graph for request_queue.h:
-
-
-
-
-

Go to the source code of this file.

- - - - - -

-Classes

struct  HttpRequestQueue

-Defines

#define HTTP_REQUEST_QUEUE_MAX   1024
-

Define Documentation

- -
-
- - - - -
#define HTTP_REQUEST_QUEUE_MAX   1024
-
-
- -

Definition at line 7 of file request_queue.h.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/request__queue_8h__incl.map b/docs/html/request__queue_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/request__queue_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/request__queue_8h__incl.md5 b/docs/html/request__queue_8h__incl.md5 deleted file mode 100644 index fb4507e..0000000 --- a/docs/html/request__queue_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -65e9846ea5db3c8dd618c06c59d82b78 \ No newline at end of file diff --git a/docs/html/request__queue_8h__incl.png b/docs/html/request__queue_8h__incl.png deleted file mode 100644 index 7e950a2..0000000 Binary files a/docs/html/request__queue_8h__incl.png and /dev/null differ diff --git a/docs/html/request__queue_8h_source.html b/docs/html/request__queue_8h_source.html deleted file mode 100644 index a8e201c..0000000 --- a/docs/html/request__queue_8h_source.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - -server: include/http/request_queue.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/http/request_queue.h

-
-
-Go to the documentation of this file.
00001 #ifndef __HTTP_REQUEST_QUEUE_H__
-00002 #define __HTTP_REQUEST_QUEUE_H__
-00003 
-00004 #include "class.h"
-00005 #include "http/request.h"
-00006 
-00007 #define HTTP_REQUEST_QUEUE_MAX  1024
-00008 
-00009 
-00010 CLASS(HttpRequestQueue) {
-00011         HttpRequest requests[HTTP_REQUEST_QUEUE_MAX];
-00012         size_t      nrequests;
-00013 };
-00014 
-00015 #endif /* __HTTP_REQUEST_QUEUE_H__ */
-00016 
-00017 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/resize.js b/docs/html/resize.js deleted file mode 100644 index 04fa95c..0000000 --- a/docs/html/resize.js +++ /dev/null @@ -1,81 +0,0 @@ -var cookie_namespace = 'doxygen'; -var sidenav,navtree,content,header; - -function readCookie(cookie) -{ - var myCookie = cookie_namespace+"_"+cookie+"="; - if (document.cookie) - { - var index = document.cookie.indexOf(myCookie); - if (index != -1) - { - var valStart = index + myCookie.length; - var valEnd = document.cookie.indexOf(";", valStart); - if (valEnd == -1) - { - valEnd = document.cookie.length; - } - var val = document.cookie.substring(valStart, valEnd); - return val; - } - } - return 0; -} - -function writeCookie(cookie, val, expiration) -{ - if (val==undefined) return; - if (expiration == null) - { - var date = new Date(); - date.setTime(date.getTime()+(10*365*24*60*60*1000)); // default expiration is one week - expiration = date.toGMTString(); - } - document.cookie = cookie_namespace + "_" + cookie + "=" + val + "; expires=" + expiration+"; path=/"; -} - -function resizeWidth() -{ - var windowWidth = $(window).width() + "px"; - var sidenavWidth = $(sidenav).width(); - content.css({marginLeft:parseInt(sidenavWidth)+6+"px"}); //account for 6px-wide handle-bar - writeCookie('width',sidenavWidth, null); -} - -function restoreWidth(navWidth) -{ - var windowWidth = $(window).width() + "px"; - content.css({marginLeft:parseInt(navWidth)+6+"px"}); - sidenav.css({width:navWidth + "px"}); -} - -function resizeHeight() -{ - var headerHeight = header.height(); - var footerHeight = footer.height(); - var windowHeight = $(window).height() - headerHeight - footerHeight; - content.css({height:windowHeight + "px"}); - navtree.css({height:windowHeight + "px"}); - sidenav.css({height:windowHeight + "px",top: headerHeight+"px"}); -} - -function initResizable() -{ - header = $("#top"); - sidenav = $("#side-nav"); - content = $("#doc-content"); - navtree = $("#nav-tree"); - footer = $("#nav-path"); - $(".side-nav-resizable").resizable({resize: function(e, ui) { resizeWidth(); } }); - $(window).resize(function() { resizeHeight(); }); - var width = readCookie('width'); - if (width) { restoreWidth(width); } else { resizeWidth(); } - resizeHeight(); - var url = location.href; - var i=url.indexOf("#"); - if (i>=0) window.location.hash=url.substr(i); - var _preventDefault = function(evt) { evt.preventDefault(); }; - $("#splitbar").bind("dragstart", _preventDefault).bind("selectstart", _preventDefault); -} - - diff --git a/docs/html/response_8h.html b/docs/html/response_8h.html deleted file mode 100644 index 1b3c73b..0000000 --- a/docs/html/response_8h.html +++ /dev/null @@ -1,174 +0,0 @@ - - - - -server: include/http/response.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/http/response.h File Reference

-
-
-
#include "class.h"
-
-Include dependency graph for response.h:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - -

-Classes

struct  HttpResponse

-Functions

char * httpRequestHeaderGet (HttpRequest this, const char *name)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
char* httpRequestHeaderGet (HttpRequest this,
const char * name 
)
-
-
- -

Definition at line 31 of file header_get.c.

-
{
-        unsigned long              hash = sdbm((unsigned char *)name);
-        struct HttpRequestHeader * header;
-
-        header = bsearch(
-                        &hash,
-                        this->header,
-                        this->nheader,
-                        sizeof(struct HttpRequestHeader),
-                        comp);
-
-        return (NULL != header)? header->value : NULL;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/response_8h__incl.map b/docs/html/response_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/response_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/response_8h__incl.md5 b/docs/html/response_8h__incl.md5 deleted file mode 100644 index 432c763..0000000 --- a/docs/html/response_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d4b6e620123079b7ee192f507594654b \ No newline at end of file diff --git a/docs/html/response_8h__incl.png b/docs/html/response_8h__incl.png deleted file mode 100644 index d481149..0000000 Binary files a/docs/html/response_8h__incl.png and /dev/null differ diff --git a/docs/html/response_8h_source.html b/docs/html/response_8h_source.html deleted file mode 100644 index 6199b9b..0000000 --- a/docs/html/response_8h_source.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - -server: include/http/response.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/http/response.h

-
-
-Go to the documentation of this file.
00001 #ifndef __HTTP_RESPONSE_H__
-00002 #define __HTTP_RESPONSE_H__
-00003 
-00004 #include "class.h"
-00005 
-00006 CLASS(HttpResponse) {
-00007         char *     http_version;
-00008         char *     status;
-00009         char *     reson;
-00010         
-00011         HttpHeader header[128];
-00012         int        nheader;
-00013 
-00014         char *     body;
-00015         int        nbody;
-00016 };
-00017 
-00018 char *
-00019 httpRequestHeaderGet(HttpRequest this, const char * name);
-00020 
-00021 #endif /* __HTTP_RESPONSE_H__ */
-00022 
-00023 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/run_8c.html b/docs/html/run_8c.html deleted file mode 100644 index 2c6512d..0000000 --- a/docs/html/run_8c.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - -server: src/server/run.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/server/run.c File Reference

-
-
-
#include <poll.h>
-#include <string.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <unistd.h>
-#include <time.h>
-#include "server.h"
-#include "socket.h"
-#include "logger.h"
-#include "signalHandling.h"
-#include "interface/class.h"
-#include "interface/stream_reader.h"
-#include "interface/logger.h"
-#include "http/request.h"
-#include "http/request_parser.h"
-#include "http/request_queue.h"
-#include "poll.c"
-#include "handle_accept.c"
-#include "read.c"
-
-Include dependency graph for run.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - -

-Defines

#define MAX(x, y)   ((x) > (y) ? (x) : (y))
#define RESP_HEAD
#define RESP_DATA

-Functions

void serverRun (Server this)
-

Define Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
#define MAX( x,
 
)   ((x) > (y) ? (x) : (y))
-
-
- -

Definition at line 23 of file run.c.

- -
-
- -
-
- - - - -
#define RESP_DATA
-
-
-Value:
"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" \
-                                                        "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" \
-                                                        " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" \
-                                                        "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" \
-                                                        "<head><title>404 - Not Found</title></head>" \
-                                                        "<body><h1>404 - Not Found</h1></body>" \
-                                                        "</html>"
-
-
-
- -
-
- - - - -
#define RESP_HEAD
-
-
-Value:
"HTTP/1.1 404 Not Found\r\n" \
-                                                        "Content-Type: text/html\r\n" \
-                                                        "Content-Length: %lu\r\n" \
-                                                        "Date: %s\r\n" \
-                                                        "Server: testserver\r\n"
-
-
-
-

Function Documentation

- -
-
- - - - - - - - -
void serverRun (Server this)
-
-
- -

: actually this is the main loop of my server. When stuff becomes more complicated it might be feasabible to split stuff into separate processes. This will definetly involve some IPC and syncing. Right now as this is actually only a simple HTTP server implementation we go on with this single process. What we can first do to get some processing between read/write cicles is to use the poll timeout.

-

handle accept

-

handle reads

-

do some other processing : actually this will hard assume that our stream reader is a http parser and it has its queue...think about more generalizing here.

-

: for now simply remove request and send not found. Make this sane.

-

: the complete response stuff have to be removed here.

-

: just to send an answer and be able to make some apache benchs i do it here...this definetly MUST BE moved

-

handle writes

-

- -

Definition at line 30 of file run.c.

-
{
-    loggerLog(this->logger, LOGGER_INFO, "service started");
-
-    while (!doShutdown) /* until error or signal  */
-    {
-                int          events;
-                unsigned int i;
-
-                events = serverPoll(this);
-                if (doShutdown) break;
-
-                for (i=0; i < events; i++) {
-                        int fd = (this->fds)[i].fd;
-                        //int nreads = 0, nwrites = 0;
-
-                        if (0 != ((this->fds)[i].revents & POLLIN)) {
-                                if (this->sock->handle == (this->fds)[i].fd) {
-                                        serverHandleAccept(this);
-                                }
-
-                                else {
-                                        int size;
-                                        if (0 < (size=serverRead(this, i))) {
-                                                int              j;
-                                                HttpRequestQueue queue =
-                                                        ((HttpRequestParser)(this->conns)[fd].reader)->request_queue;
-
-                                                for (j=0; j<queue->nrequests; j++) {
-                                                        HttpRequest request = queue->requests[j];
-
-                                                        //if (NULL != request->body) {
-                                                        //      puts("==REQUEST BODY==");
-                                                        //      puts(request->body);
-                                                        //}
-
-                                                        delete(&request);
-
-                                                        time_t t;
-                                                        struct tm * tmp;
-                                                        char timestr[200];
-
-#define RESP_HEAD "HTTP/1.1 404 Not Found\r\n" \
-                                                        "Content-Type: text/html\r\n" \
-                                                        "Content-Length: %lu\r\n" \
-                                                        "Date: %s\r\n" \
-                                                        "Server: testserver\r\n"
-
-#define RESP_DATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" \
-                                                        "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" \
-                                                        " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" \
-                                                        "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" \
-                                                        "<head><title>404 - Not Found</title></head>" \
-                                                        "<body><h1>404 - Not Found</h1></body>" \
-                                                        "</html>"
-
-                                                        t = time(NULL);
-                                                        tmp = localtime(&t);
-                                                        strftime(timestr, sizeof(timestr), "%a, %d %b %Y %T %Z", tmp);
-
-                                                        sprintf((this->conns)[fd].wbuf, RESP_HEAD "\r\n" RESP_DATA, sizeof(RESP_DATA), timestr);
-                                                        (this->fds)[i].events = (this->fds)[i].events | POLLOUT;
-                                                }
-
-                                                queue->nrequests = 0;
-                                        }
-                                }
-                        }
-
-                        if (0 != ((this->fds)[i].revents & POLLOUT)) {
-                                int size;
-
-                                size = write(
-                                                (this->fds)[i].fd,
-                                                (this->conns)[fd].wbuf,
-                                                strlen((this->conns)[fd].wbuf));
-
-                                if (size == strlen((this->conns)[fd].wbuf) ||
-                                                -1 == size) {
-                                        if (-1 == size) {
-                                                loggerLog(this->logger, LOGGER_ERR,
-                                                                "write error, closing connection");
-                                        }
-
-                                        serverCloseConn(this, i);
-                                }
-                                else {
-                                        memmove((this->conns)[fd].wbuf,
-                                                        (this->conns)[fd].wbuf + size,
-                                                        strlen((this->conns)[fd].wbuf) - size + 1);
-                                }
-                        }
-                }
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/run_8c__incl.map b/docs/html/run_8c__incl.map deleted file mode 100644 index 4fb7311..0000000 --- a/docs/html/run_8c__incl.map +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/html/run_8c__incl.md5 b/docs/html/run_8c__incl.md5 deleted file mode 100644 index 3f29d75..0000000 --- a/docs/html/run_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -fc8b35c96924aa38195cea520e874d26 \ No newline at end of file diff --git a/docs/html/run_8c__incl.png b/docs/html/run_8c__incl.png deleted file mode 100644 index 98e73d1..0000000 Binary files a/docs/html/run_8c__incl.png and /dev/null differ diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map deleted file mode 100644 index 5153be1..0000000 --- a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 deleted file mode 100644 index 73df168..0000000 --- a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -7a132c7f4a071fc3ade2758932a38a64 \ No newline at end of file diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png deleted file mode 100644 index 2743798..0000000 Binary files a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png and /dev/null differ diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map deleted file mode 100644 index faed6bd..0000000 --- a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 deleted file mode 100644 index e321b7b..0000000 --- a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -ce960d181d782373295747cea9ba8363 \ No newline at end of file diff --git a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png b/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png deleted file mode 100644 index eb08ad7..0000000 Binary files a/docs/html/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png and /dev/null differ diff --git a/docs/html/run_8c_source.html b/docs/html/run_8c_source.html deleted file mode 100644 index 88f3086..0000000 --- a/docs/html/run_8c_source.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - -server: src/server/run.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server/run.c

-
-
-Go to the documentation of this file.
00001 #include <poll.h> /* for poll system call and related */
-00002 #include <string.h>     /* for memset and stuff */
-00003 #include <stdlib.h>     /* for exit */
-00004 #include <errno.h>      /* for errno */
-00005 #include <unistd.h>
-00006 #include <time.h>
-00007 
-00008 #include "server.h"
-00009 #include "socket.h"
-00010 #include "logger.h"
-00011 #include "signalHandling.h"
-00012 #include "interface/class.h"
-00013 #include "interface/stream_reader.h"
-00014 #include "interface/logger.h"
-00015 
-00016 //* @TODO: to be removed
-00017 #include "http/request.h"
-00018 #include "http/request_parser.h"
-00019 #include "http/request_queue.h"
-00020 //* until here
-00021 
-00022 #undef  MAX
-00023 #define MAX(x,y) ((x) > (y) ? (x) : (y))
-00024 
-00025 #include "poll.c"
-00026 #include "handle_accept.c"
-00027 #include "read.c"
-00028 
-00029 void
-00030 serverRun(Server this)
-00031 {
-00032     loggerLog(this->logger, LOGGER_INFO, "service started");
-00033 
-00044     while (!doShutdown) /* until error or signal  */
-00045     {
-00046                 int          events;
-00047                 unsigned int i;
-00048 
-00049                 events = serverPoll(this);
-00050                 if (doShutdown) break;
-00051 
-00052                 for (i=0; i < events; i++) {
-00053                         int fd = (this->fds)[i].fd;
-00054                         //int nreads = 0, nwrites = 0;
-00055 
-00056                         if (0 != ((this->fds)[i].revents & POLLIN)) {
-00060                                 if (this->sock->handle == (this->fds)[i].fd) {
-00061                                         serverHandleAccept(this);
-00062                                 }
-00063 
-00067                                 else {
-00074                                         int size;
-00075                                         if (0 < (size=serverRead(this, i))) {
-00076                                                 int              j;
-00077                                                 HttpRequestQueue queue =
-00078                                                         ((HttpRequestParser)(this->conns)[fd].reader)->request_queue;
-00079 
-00080                                                 for (j=0; j<queue->nrequests; j++) {
-00081                                                         HttpRequest request = queue->requests[j];
-00082 
-00083                                                         //if (NULL != request->body) {
-00084                                                         //      puts("==REQUEST BODY==");
-00085                                                         //      puts(request->body);
-00086                                                         //}
-00087 
-00092                                                         delete(&request);
-00093 
-00097                                                         time_t t;
-00098                                                         struct tm * tmp;
-00099                                                         char timestr[200];
-00100 
-00101 #define RESP_HEAD "HTTP/1.1 404 Not Found\r\n" \
-00102                                                         "Content-Type: text/html\r\n" \
-00103                                                         "Content-Length: %lu\r\n" \
-00104                                                         "Date: %s\r\n" \
-00105                                                         "Server: testserver\r\n"
-00106 
-00107 #define RESP_DATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" \
-00108                                                         "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" \
-00109                                                         " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" \
-00110                                                         "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" \
-00111                                                         "<head><title>404 - Not Found</title></head>" \
-00112                                                         "<body><h1>404 - Not Found</h1></body>" \
-00113                                                         "</html>"
-00114 
-00115                                                         t = time(NULL);
-00116                                                         tmp = localtime(&t);
-00117                                                         strftime(timestr, sizeof(timestr), "%a, %d %b %Y %T %Z", tmp);
-00118 
-00123                                                         sprintf((this->conns)[fd].wbuf, RESP_HEAD "\r\n" RESP_DATA, sizeof(RESP_DATA), timestr);
-00124                                                         (this->fds)[i].events = (this->fds)[i].events | POLLOUT;
-00125                                                 }
-00126 
-00127                                                 queue->nrequests = 0;
-00128                                         }
-00129                                 }
-00130                         }
-00131 
-00135                         if (0 != ((this->fds)[i].revents & POLLOUT)) {
-00136                                 int size;
-00137 
-00138                                 size = write(
-00139                                                 (this->fds)[i].fd,
-00140                                                 (this->conns)[fd].wbuf,
-00141                                                 strlen((this->conns)[fd].wbuf));
-00142 
-00143                                 if (size == strlen((this->conns)[fd].wbuf) ||
-00144                                                 -1 == size) {
-00145                                         if (-1 == size) {
-00146                                                 loggerLog(this->logger, LOGGER_ERR,
-00147                                                                 "write error, closing connection");
-00148                                         }
-00149 
-00150                                         serverCloseConn(this, i);
-00151                                 }
-00152                                 else {
-00153                                         memmove((this->conns)[fd].wbuf,
-00154                                                         (this->conns)[fd].wbuf + size,
-00155                                                         strlen((this->conns)[fd].wbuf) - size + 1);
-00156                                 }
-00157                         }
-00158                 }
-00159     }
-00160 }
-00161 
-00162 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/search/all_5f.html b/docs/html/search/all_5f.html deleted file mode 100644 index f0d663b..0000000 --- a/docs/html/search/all_5f.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- _CALL - class.h -
-
-
-
- _ISOC99_SOURCE - class.h -
-
-
-
- _NULL - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_61.html b/docs/html/search/all_61.html deleted file mode 100644 index 2889d36..0000000 --- a/docs/html/search/all_61.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- accept.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_62.html b/docs/html/search/all_62.html deleted file mode 100644 index c2906b3..0000000 --- a/docs/html/search/all_62.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- buffer - HttpRequestParser -
-
-
-
- buffer_size - HttpRequestParser -
-
-
-
- buffer_used - HttpRequestParser -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_63.html b/docs/html/search/all_63.html deleted file mode 100644 index ba05754..0000000 --- a/docs/html/search/all_63.html +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- CALL - class.h -
-
-
- -
-
-
- class.c -
-
-
-
- class.c -
-
-
-
- class.h -
-
-
-
- class.h -
-
- - -
-
- CLASS_MAGIC - class.h -
-
-
-
- class_ptr - class.h -
-
- - - -
-
- CLEAR_CONN - server.h -
-
- -
- -
-
-
- config.h -
-
-
-
- connect.c -
-
-
-
- conns - Server -
-
- -
-
- CREATE_IMPL - interface.h -
-
-
-
- ctor - i_Class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_64.html b/docs/html/search/all_64.html deleted file mode 100644 index e56583b..0000000 --- a/docs/html/search/all_64.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- daemonize - daemonize.c -
-
-
- -
-
-
- delete - class.h -
-
- -
-
- dtor - i_Class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_65.html b/docs/html/search/all_65.html deleted file mode 100644 index addb332..0000000 --- a/docs/html/search/all_65.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- e_HttpRequestState - request_parser.h -
-
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_66.html b/docs/html/search/all_66.html deleted file mode 100644 index d9b30d1..0000000 --- a/docs/html/search/all_66.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- fptr_classInit - class.h -
-
-
-
- fptr_clone - class.h -
-
-
-
- fptr_ctor - class.h -
-
-
-
- fptr_dtor - class.h -
-
-
-
- fptr_log - logger.h -
-
-
-
- fptr_streamReaderRead - stream_reader.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_67.html b/docs/html/search/all_67.html deleted file mode 100644 index 89b46d3..0000000 --- a/docs/html/search/all_67.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- get.c -
-
-
- -
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_68.html b/docs/html/search/all_68.html deleted file mode 100644 index b043355..0000000 --- a/docs/html/search/all_68.html +++ /dev/null @@ -1,312 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- handle - Sock -
-
- -
-
- HAS_PARENT - class.h -
-
-
-
- hash - HttpHeader -
-
-
-
- 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 -
-
- -
-
- header.c -
-
-
-
- header.h -
-
-
- -
-
-
- HTTP_REQUEST_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_GARBAGE - request_parser.h -
-
-
-
- HTTP_REQUEST_HEADERS_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_PARSER_READ_CHUNK - request_parser.h -
-
-
-
- HTTP_REQUEST_QUEUE_MAX - request_queue.h -
-
-
-
- HTTP_REQUEST_REQUEST_LINE_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_START - request_parser.h -
-
-
-
- http_version - HttpResponse -
-
-
- -
- -
-
- httpHeaderParse - header.h -
-
- -
- -
- - -
-
- httpRequestParserGetHeader - get_header.c -
-
- - - -
-
- HttpRequestState - request_parser.h -
-
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_69.html b/docs/html/search/all_69.html deleted file mode 100644 index c936d2b..0000000 --- a/docs/html/search/all_69.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- i_Class -
-
-
-
- i_Logger -
-
- -
-
- IFACE - interface.h -
-
-
-
- IFACE_EXISTS - class.h -
-
-
-
- IFACE_GET - class.h -
-
-
- -
-
-
- iface_impl_ptr - interface.h -
-
-
-
- iface_ptr - interface.h -
-
-
-
- impl - iface_impl -
-
-
-
- init - class -
-
- -
-
- INIT_IMPL - interface.h -
-
- -
-
- interface -
-
-
- -
-
- -
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_6c.html b/docs/html/search/all_6c.html deleted file mode 100644 index 8667f68..0000000 --- a/docs/html/search/all_6c.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- listen.c -
-
- -
- -
-
-
- logger.c -
-
-
-
- logger.c -
-
-
-
- logger.h -
-
-
-
- logger.h -
-
-
-
- LOGGER_ALERT - logger.h -
-
-
-
- LOGGER_CRIT - logger.h -
-
-
-
- LOGGER_DEBUG - logger.h -
-
-
-
- LOGGER_EMERG - logger.h -
-
-
-
- LOGGER_ERR - logger.h -
-
-
-
- LOGGER_INFO - logger.h -
-
- - -
-
- LOGGER_NOTICE - logger.h -
-
-
-
- LOGGER_WARNING - logger.h -
-
- -
- -
-
- -
-
-
- LT_OBJDIR - config.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_6d.html b/docs/html/search/all_6d.html deleted file mode 100644 index 5755fb3..0000000 --- a/docs/html/search/all_6d.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- magic - class -
-
-
-
- main - testserver.c -
-
-
-
- MAX - run.c -
-
-
-
- MAX_IFACE - interface.h -
-
-
-
- method - HttpRequest -
-
-
-
- METHOD_GET - interface.h -
-
-
-
- min_level - Logger -
-
-
-
- MOVE_SIZE - server.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_6e.html b/docs/html/search/all_6e.html deleted file mode 100644 index 48db090..0000000 --- a/docs/html/search/all_6e.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - -
-
Loading...
- - -
-
- ndel - Server -
-
-
-
- new - class.h -
-
-
-
- nfds - Server -
-
- -
-
- nimpl - iface_impl -
-
-
-
- nmethods - interface -
-
-
-
- nrequests - HttpRequestQueue -
-
-
-
- NUMARGS - interface.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_6f.html b/docs/html/search/all_6f.html deleted file mode 100644 index 2a9bfcb..0000000 --- a/docs/html/search/all_6f.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- object_size - class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_70.html b/docs/html/search/all_70.html deleted file mode 100644 index a122c04..0000000 --- a/docs/html/search/all_70.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- PACKAGE - config.h -
-
-
-
- PACKAGE_BUGREPORT - config.h -
-
-
-
- PACKAGE_NAME - config.h -
-
-
-
- PACKAGE_STRING - config.h -
-
-
-
- PACKAGE_TARNAME - config.h -
-
-
-
- PACKAGE_URL - config.h -
-
-
-
- PACKAGE_VERSION - config.h -
-
-
-
- parent - class -
-
-
-
- parse.c -
-
-
-
- parser.c -
-
-
-
- poll.c -
-
-
-
- POLL_FD_NSIZE - server.h -
-
-
-
- POLL_FD_SIZE - server.h -
-
-
-
- POLLFD - poll.c -
-
-
-
- port - Sock -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_71.html b/docs/html/search/all_71.html deleted file mode 100644 index a510829..0000000 --- a/docs/html/search/all_71.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- queue.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_72.html b/docs/html/search/all_72.html deleted file mode 100644 index 98ec8f2..0000000 --- a/docs/html/search/all_72.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- rbuf - Server -
-
-
-
- read - i_StreamReader -
-
-
-
- read.c -
-
-
-
- reader - Server -
-
-
-
- REMAINS - parse.c -
-
-
-
- request.c -
-
-
-
- request.h -
-
- -
-
- request_queue - HttpRequestParser -
-
- -
-
- requests - HttpRequestQueue -
-
-
-
- reson - HttpResponse -
-
-
-
- RESP_DATA - run.c -
-
-
-
- RESP_HEAD - run.c -
-
-
- -
-
-
- RETCALL - class.h -
-
-
-
- rpos - Server -
-
-
-
- run.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_73.html b/docs/html/search/all_73.html deleted file mode 100644 index 0ae855f..0000000 --- a/docs/html/search/all_73.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- Server -
-
-
-
- server.c -
-
-
-
- server.h -
-
- - - - -
-
- simpl - iface_impl -
-
-
-
- Sock - -
-
-
-
- socket.c -
-
-
-
- socket.h -
-
- - - -
-
- sort.c -
-
-
-
- state - HttpRequestParser -
-
-
-
- status - HttpResponse -
-
-
-
- STDC_HEADERS - config.h -
-
-
-
- stderr.c -
-
- - - -
-
- syslog.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_74.html b/docs/html/search/all_74.html deleted file mode 100644 index 943f30e..0000000 --- a/docs/html/search/all_74.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - -
-
Loading...
- -
- -
-
-
- TRUE - interface.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_75.html b/docs/html/search/all_75.html deleted file mode 100644 index 8e06639..0000000 --- a/docs/html/search/all_75.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- uri - HttpRequest -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_76.html b/docs/html/search/all_76.html deleted file mode 100644 index d6fe14a..0000000 --- a/docs/html/search/all_76.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- value - HttpHeader -
-
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/all_77.html b/docs/html/search/all_77.html deleted file mode 100644 index e31298c..0000000 --- a/docs/html/search/all_77.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- wbuf - Server -
-
-
-
- wpos - Server -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/classes_63.html b/docs/html/search/classes_63.html deleted file mode 100644 index 8ff1d78..0000000 --- a/docs/html/search/classes_63.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/classes_68.html b/docs/html/search/classes_68.html deleted file mode 100644 index ddfbbdc..0000000 --- a/docs/html/search/classes_68.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
-
Loading...
-
- -
-
- -
- - -
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/classes_69.html b/docs/html/search/classes_69.html deleted file mode 100644 index 95a7f98..0000000 --- a/docs/html/search/classes_69.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- i_Class -
-
-
-
- i_Logger -
-
- -
- -
-
-
- interface -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/classes_6c.html b/docs/html/search/classes_6c.html deleted file mode 100644 index 253f5b9..0000000 --- a/docs/html/search/classes_6c.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- Logger -
-
-
- -
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/classes_73.html b/docs/html/search/classes_73.html deleted file mode 100644 index bc7ef9b..0000000 --- a/docs/html/search/classes_73.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- Server -
-
-
-
- Sock -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/close.png b/docs/html/search/close.png deleted file mode 100644 index 9342d3d..0000000 Binary files a/docs/html/search/close.png and /dev/null differ diff --git a/docs/html/search/defines_5f.html b/docs/html/search/defines_5f.html deleted file mode 100644 index 805a4b7..0000000 --- a/docs/html/search/defines_5f.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- _CALL - class.h -
-
-
-
- _ISOC99_SOURCE - class.h -
-
-
-
- _NULL - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_63.html b/docs/html/search/defines_63.html deleted file mode 100644 index 180ff4c..0000000 --- a/docs/html/search/defines_63.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- CALL - class.h -
-
-
-
- CLASS - class.h -
-
-
-
- CLASS_MAGIC - class.h -
-
-
-
- CLEAR_CONN - server.h -
-
-
-
- clone - class.h -
-
-
-
- CREATE_CLASS - class.h -
-
-
-
- CREATE_IMPL - interface.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_64.html b/docs/html/search/defines_64.html deleted file mode 100644 index 5c5d81b..0000000 --- a/docs/html/search/defines_64.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- delete - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_65.html b/docs/html/search/defines_65.html deleted file mode 100644 index 194b08b..0000000 --- a/docs/html/search/defines_65.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- EXTENDS - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_68.html b/docs/html/search/defines_68.html deleted file mode 100644 index f00c4d1..0000000 --- a/docs/html/search/defines_68.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- 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 -
-
-
-
- HTTP_REQUEST_QUEUE_MAX - request_queue.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_69.html b/docs/html/search/defines_69.html deleted file mode 100644 index ca7d70c..0000000 --- a/docs/html/search/defines_69.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- IFACE - interface.h -
-
-
-
- IFACE_EXISTS - class.h -
-
-
-
- IFACE_GET - class.h -
-
-
-
- INIT_IFACE - interface.h -
-
-
-
- INIT_IMPL - interface.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_6c.html b/docs/html/search/defines_6c.html deleted file mode 100644 index ff4649f..0000000 --- a/docs/html/search/defines_6c.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- LT_OBJDIR - config.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_6d.html b/docs/html/search/defines_6d.html deleted file mode 100644 index 5d0afbe..0000000 --- a/docs/html/search/defines_6d.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- MAX - run.c -
-
-
-
- MAX_IFACE - interface.h -
-
-
-
- METHOD_GET - interface.h -
-
-
-
- MOVE_SIZE - server.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_6e.html b/docs/html/search/defines_6e.html deleted file mode 100644 index 18c753e..0000000 --- a/docs/html/search/defines_6e.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- new - class.h -
-
-
-
- NUMARGS - interface.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_70.html b/docs/html/search/defines_70.html deleted file mode 100644 index 6faa430..0000000 --- a/docs/html/search/defines_70.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- PACKAGE - config.h -
-
-
-
- PACKAGE_BUGREPORT - config.h -
-
-
-
- PACKAGE_NAME - config.h -
-
-
-
- PACKAGE_STRING - config.h -
-
-
-
- PACKAGE_TARNAME - config.h -
-
-
-
- PACKAGE_URL - config.h -
-
-
-
- PACKAGE_VERSION - config.h -
-
-
-
- POLL_FD_NSIZE - server.h -
-
-
-
- POLL_FD_SIZE - server.h -
-
-
-
- POLLFD - poll.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_72.html b/docs/html/search/defines_72.html deleted file mode 100644 index e3c598d..0000000 --- a/docs/html/search/defines_72.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- REMAINS - parse.c -
-
-
-
- RESP_DATA - run.c -
-
-
-
- RESP_HEAD - run.c -
-
-
-
- RETCALL - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_73.html b/docs/html/search/defines_73.html deleted file mode 100644 index efb4f12..0000000 --- a/docs/html/search/defines_73.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- STDC_HEADERS - config.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_74.html b/docs/html/search/defines_74.html deleted file mode 100644 index 7548888..0000000 --- a/docs/html/search/defines_74.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- TRUE - interface.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/defines_76.html b/docs/html/search/defines_76.html deleted file mode 100644 index 05ed933..0000000 --- a/docs/html/search/defines_76.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- VERSION - config.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/enums_65.html b/docs/html/search/enums_65.html deleted file mode 100644 index ce50024..0000000 --- a/docs/html/search/enums_65.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- e_HttpRequestState - request_parser.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/enums_6c.html b/docs/html/search/enums_6c.html deleted file mode 100644 index 1379cc0..0000000 --- a/docs/html/search/enums_6c.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- logger_level - logger.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/enumvalues_68.html b/docs/html/search/enumvalues_68.html deleted file mode 100644 index 5d17b26..0000000 --- a/docs/html/search/enumvalues_68.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- HTTP_REQUEST_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_GARBAGE - request_parser.h -
-
-
-
- HTTP_REQUEST_HEADERS_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_REQUEST_LINE_DONE - request_parser.h -
-
-
-
- HTTP_REQUEST_START - request_parser.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/enumvalues_6c.html b/docs/html/search/enumvalues_6c.html deleted file mode 100644 index c12c70e..0000000 --- a/docs/html/search/enumvalues_6c.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- LOGGER_ALERT - logger.h -
-
-
-
- LOGGER_CRIT - logger.h -
-
-
-
- LOGGER_DEBUG - logger.h -
-
-
-
- LOGGER_EMERG - logger.h -
-
-
-
- LOGGER_ERR - logger.h -
-
-
-
- LOGGER_INFO - logger.h -
-
-
-
- LOGGER_NOTICE - logger.h -
-
-
-
- LOGGER_WARNING - logger.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_61.html b/docs/html/search/files_61.html deleted file mode 100644 index 2889d36..0000000 --- a/docs/html/search/files_61.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- accept.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_63.html b/docs/html/search/files_63.html deleted file mode 100644 index c85fd6d..0000000 --- a/docs/html/search/files_63.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- class.c -
-
-
-
- class.c -
-
-
-
- class.h -
-
-
-
- class.h -
-
-
- -
-
-
- config.h -
-
-
-
- connect.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_64.html b/docs/html/search/files_64.html deleted file mode 100644 index e9109a8..0000000 --- a/docs/html/search/files_64.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_67.html b/docs/html/search/files_67.html deleted file mode 100644 index 89b46d3..0000000 --- a/docs/html/search/files_67.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- get.c -
-
-
- -
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_68.html b/docs/html/search/files_68.html deleted file mode 100644 index 7e2e52b..0000000 --- a/docs/html/search/files_68.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- header.c -
-
-
-
- header.h -
-
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_69.html b/docs/html/search/files_69.html deleted file mode 100644 index 835fcbb..0000000 --- a/docs/html/search/files_69.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
Loading...
-
- -
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_6c.html b/docs/html/search/files_6c.html deleted file mode 100644 index 46aee43..0000000 --- a/docs/html/search/files_6c.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- listen.c -
-
-
-
- logger.c -
-
-
-
- logger.c -
-
-
-
- logger.h -
-
-
-
- logger.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_70.html b/docs/html/search/files_70.html deleted file mode 100644 index f4608d2..0000000 --- a/docs/html/search/files_70.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- parse.c -
-
-
-
- parser.c -
-
-
-
- poll.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_71.html b/docs/html/search/files_71.html deleted file mode 100644 index a510829..0000000 --- a/docs/html/search/files_71.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- queue.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_72.html b/docs/html/search/files_72.html deleted file mode 100644 index 2db828d..0000000 --- a/docs/html/search/files_72.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- read.c -
-
-
-
- request.c -
-
-
-
- request.h -
-
- - -
- -
-
-
- run.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_73.html b/docs/html/search/files_73.html deleted file mode 100644 index 8134300..0000000 --- a/docs/html/search/files_73.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- server.c -
-
-
-
- server.h -
-
- - -
-
- socket.c -
-
-
-
- socket.h -
-
-
-
- sort.c -
-
-
-
- stderr.c -
-
- - -
-
- syslog.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/files_74.html b/docs/html/search/files_74.html deleted file mode 100644 index 3df9933..0000000 --- a/docs/html/search/files_74.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - -
-
Loading...
-
- -
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/functions_63.html b/docs/html/search/functions_63.html deleted file mode 100644 index eaf93b3..0000000 --- a/docs/html/search/functions_63.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - - - - - - diff --git a/docs/html/search/functions_64.html b/docs/html/search/functions_64.html deleted file mode 100644 index 36558f7..0000000 --- a/docs/html/search/functions_64.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- daemonize - daemonize.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/functions_65.html b/docs/html/search/functions_65.html deleted file mode 100644 index 0c365f3..0000000 --- a/docs/html/search/functions_65.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - -
-
Loading...
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/functions_68.html b/docs/html/search/functions_68.html deleted file mode 100644 index 2c9f09a..0000000 --- a/docs/html/search/functions_68.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - diff --git a/docs/html/search/functions_69.html b/docs/html/search/functions_69.html deleted file mode 100644 index f858a3e..0000000 --- a/docs/html/search/functions_69.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - diff --git a/docs/html/search/functions_6c.html b/docs/html/search/functions_6c.html deleted file mode 100644 index f526453..0000000 --- a/docs/html/search/functions_6c.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - -
-
Loading...
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/functions_6d.html b/docs/html/search/functions_6d.html deleted file mode 100644 index 34e44da..0000000 --- a/docs/html/search/functions_6d.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- main - testserver.c -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/functions_73.html b/docs/html/search/functions_73.html deleted file mode 100644 index 128b80d..0000000 --- a/docs/html/search/functions_73.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - diff --git a/docs/html/search/functions_74.html b/docs/html/search/functions_74.html deleted file mode 100644 index a99358c..0000000 --- a/docs/html/search/functions_74.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - -
-
Loading...
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/mag_sel.png b/docs/html/search/mag_sel.png deleted file mode 100644 index 81f6040..0000000 Binary files a/docs/html/search/mag_sel.png and /dev/null differ diff --git a/docs/html/search/nomatches.html b/docs/html/search/nomatches.html deleted file mode 100644 index b1ded27..0000000 --- a/docs/html/search/nomatches.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - -
-
No Matches
-
- - diff --git a/docs/html/search/search.css b/docs/html/search/search.css deleted file mode 100644 index 50249e5..0000000 --- a/docs/html/search/search.css +++ /dev/null @@ -1,240 +0,0 @@ -/*---------------- Search Box */ - -#FSearchBox { - float: left; -} - -#searchli { - float: right; - display: block; - width: 170px; - height: 36px; -} - -#MSearchBox { - white-space : nowrap; - position: absolute; - float: none; - display: inline; - margin-top: 8px; - right: 0px; - width: 170px; - z-index: 102; -} - -#MSearchBox .left -{ - display:block; - position:absolute; - left:10px; - width:20px; - height:19px; - background:url('search_l.png') no-repeat; - background-position:right; -} - -#MSearchSelect { - display:block; - position:absolute; - width:20px; - height:19px; -} - -.left #MSearchSelect { - left:4px; -} - -.right #MSearchSelect { - right:5px; -} - -#MSearchField { - display:block; - position:absolute; - height:19px; - background:url('search_m.png') repeat-x; - border:none; - width:116px; - margin-left:20px; - padding-left:4px; - color: #909090; - outline: none; - font: 9pt Arial, Verdana, sans-serif; -} - -#FSearchBox #MSearchField { - margin-left:15px; -} - -#MSearchBox .right { - display:block; - position:absolute; - right:10px; - top:0px; - width:20px; - height:19px; - background:url('search_r.png') no-repeat; - background-position:left; -} - -#MSearchClose { - display: none; - position: absolute; - top: 4px; - background : none; - border: none; - margin: 0px 4px 0px 0px; - padding: 0px 0px; - outline: none; -} - -.left #MSearchClose { - left: 6px; -} - -.right #MSearchClose { - right: 2px; -} - -.MSearchBoxActive #MSearchField { - color: #000000; -} - -/*---------------- Search filter selection */ - -#MSearchSelectWindow { - display: none; - position: absolute; - left: 0; top: 0; - border: 1px solid #90A5CE; - background-color: #F9FAFC; - z-index: 1; - padding-top: 4px; - padding-bottom: 4px; - -moz-border-radius: 4px; - -webkit-border-top-left-radius: 4px; - -webkit-border-top-right-radius: 4px; - -webkit-border-bottom-left-radius: 4px; - -webkit-border-bottom-right-radius: 4px; - -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -} - -.SelectItem { - font: 8pt Arial, Verdana, sans-serif; - padding-left: 2px; - padding-right: 12px; - border: 0px; -} - -span.SelectionMark { - margin-right: 4px; - font-family: monospace; - outline-style: none; - text-decoration: none; -} - -a.SelectItem { - display: block; - outline-style: none; - color: #000000; - text-decoration: none; - padding-left: 6px; - padding-right: 12px; -} - -a.SelectItem:focus, -a.SelectItem:active { - color: #000000; - outline-style: none; - text-decoration: none; -} - -a.SelectItem:hover { - color: #FFFFFF; - background-color: #3D578C; - outline-style: none; - text-decoration: none; - cursor: pointer; - display: block; -} - -/*---------------- Search results window */ - -iframe#MSearchResults { - width: 60ex; - height: 15em; -} - -#MSearchResultsWindow { - display: none; - position: absolute; - left: 0; top: 0; - border: 1px solid #000; - background-color: #EEF1F7; -} - -/* ----------------------------------- */ - - -#SRIndex { - clear:both; - padding-bottom: 15px; -} - -.SREntry { - font-size: 10pt; - padding-left: 1ex; -} - -.SRPage .SREntry { - font-size: 8pt; - padding: 1px 5px; -} - -body.SRPage { - margin: 5px 2px; -} - -.SRChildren { - padding-left: 3ex; padding-bottom: .5em -} - -.SRPage .SRChildren { - display: none; -} - -.SRSymbol { - font-weight: bold; - color: #425E97; - font-family: Arial, Verdana, sans-serif; - text-decoration: none; - outline: none; -} - -a.SRScope { - display: block; - color: #425E97; - font-family: Arial, Verdana, sans-serif; - text-decoration: none; - outline: none; -} - -a.SRSymbol:focus, a.SRSymbol:active, -a.SRScope:focus, a.SRScope:active { - text-decoration: underline; -} - -.SRPage .SRStatus { - padding: 2px 5px; - font-size: 8pt; - font-style: italic; -} - -.SRResult { - display: none; -} - -DIV.searchresults { - margin-left: 10px; - margin-right: 10px; -} diff --git a/docs/html/search/search.js b/docs/html/search/search.js deleted file mode 100644 index 2e9976f..0000000 --- a/docs/html/search/search.js +++ /dev/null @@ -1,742 +0,0 @@ -// Search script generated by doxygen -// Copyright (C) 2009 by Dimitri van Heesch. - -// The code in this file is loosly based on main.js, part of Natural Docs, -// which is Copyright (C) 2003-2008 Greg Valure -// Natural Docs is licensed under the GPL. - -var indexSectionsWithContent = -{ - 0: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010111111111001111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 1: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000011001000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 2: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000101100111001000111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 3: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001110011001100000110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 4: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010011100011001111101101110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 5: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001001011001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 6: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 7: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", - 8: "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001110011001110101110100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" -}; - -var indexSectionNames = -{ - 0: "all", - 1: "classes", - 2: "files", - 3: "functions", - 4: "variables", - 5: "typedefs", - 6: "enums", - 7: "enumvalues", - 8: "defines" -}; - -function convertToId(search) -{ - var result = ''; - for (i=0;i do a search - { - this.Search(); - } - } - - this.OnSearchSelectKey = function(evt) - { - var e = (evt) ? evt : window.event; // for IE - if (e.keyCode==40 && this.searchIndex0) // Up - { - this.searchIndex--; - this.OnSelectItem(this.searchIndex); - } - else if (e.keyCode==13 || e.keyCode==27) - { - this.OnSelectItem(this.searchIndex); - this.CloseSelectionWindow(); - this.DOMSearchField().focus(); - } - return false; - } - - // --------- Actions - - // Closes the results window. - this.CloseResultsWindow = function() - { - this.DOMPopupSearchResultsWindow().style.display = 'none'; - this.DOMSearchClose().style.display = 'none'; - this.Activate(false); - } - - this.CloseSelectionWindow = function() - { - this.DOMSearchSelectWindow().style.display = 'none'; - } - - // Performs a search. - this.Search = function() - { - this.keyTimeout = 0; - - // strip leading whitespace - var searchValue = this.DOMSearchField().value.replace(/^ +/, ""); - - var code = searchValue.toLowerCase().charCodeAt(0); - var hexCode; - if (code<16) - { - hexCode="0"+code.toString(16); - } - else - { - hexCode=code.toString(16); - } - - var resultsPage; - var resultsPageWithSearch; - var hasResultsPage; - - if (indexSectionsWithContent[this.searchIndex].charAt(code) == '1') - { - resultsPage = this.resultsPath + '/' + indexSectionNames[this.searchIndex] + '_' + hexCode + '.html'; - resultsPageWithSearch = resultsPage+'?'+escape(searchValue); - hasResultsPage = true; - } - else // nothing available for this search term - { - resultsPage = this.resultsPath + '/nomatches.html'; - resultsPageWithSearch = resultsPage; - hasResultsPage = false; - } - - window.frames.MSearchResults.location.href = resultsPageWithSearch; - var domPopupSearchResultsWindow = this.DOMPopupSearchResultsWindow(); - - if (domPopupSearchResultsWindow.style.display!='block') - { - var domSearchBox = this.DOMSearchBox(); - this.DOMSearchClose().style.display = 'inline'; - if (this.insideFrame) - { - var domPopupSearchResults = this.DOMPopupSearchResults(); - domPopupSearchResultsWindow.style.position = 'relative'; - domPopupSearchResultsWindow.style.display = 'block'; - var width = document.body.clientWidth - 8; // the -8 is for IE :-( - domPopupSearchResultsWindow.style.width = width + 'px'; - domPopupSearchResults.style.width = width + 'px'; - } - else - { - var domPopupSearchResults = this.DOMPopupSearchResults(); - var left = getXPos(domSearchBox) + 150; // domSearchBox.offsetWidth; - var top = getYPos(domSearchBox) + 20; // domSearchBox.offsetHeight + 1; - domPopupSearchResultsWindow.style.display = 'block'; - left -= domPopupSearchResults.offsetWidth; - domPopupSearchResultsWindow.style.top = top + 'px'; - domPopupSearchResultsWindow.style.left = left + 'px'; - } - } - - this.lastSearchValue = searchValue; - this.lastResultsPage = resultsPage; - } - - // -------- Activation Functions - - // Activates or deactivates the search panel, resetting things to - // their default values if necessary. - this.Activate = function(isActive) - { - if (isActive || // open it - this.DOMPopupSearchResultsWindow().style.display == 'block' - ) - { - this.DOMSearchBox().className = 'MSearchBoxActive'; - - var searchField = this.DOMSearchField(); - - if (searchField.value == this.searchLabel) // clear "Search" term upon entry - { - searchField.value = ''; - this.searchActive = true; - } - } - else if (!isActive) // directly remove the panel - { - this.DOMSearchBox().className = 'MSearchBoxInactive'; - this.DOMSearchField().value = this.searchLabel; - this.searchActive = false; - this.lastSearchValue = '' - this.lastResultsPage = ''; - } - } -} - -// ----------------------------------------------------------------------- - -// The class that handles everything on the search results page. -function SearchResults(name) -{ - // The number of matches from the last run of . - this.lastMatchCount = 0; - this.lastKey = 0; - this.repeatOn = false; - - // Toggles the visibility of the passed element ID. - this.FindChildElement = function(id) - { - var parentElement = document.getElementById(id); - var element = parentElement.firstChild; - - while (element && element!=parentElement) - { - if (element.nodeName == 'DIV' && element.className == 'SRChildren') - { - return element; - } - - if (element.nodeName == 'DIV' && element.hasChildNodes()) - { - element = element.firstChild; - } - else if (element.nextSibling) - { - element = element.nextSibling; - } - else - { - do - { - element = element.parentNode; - } - while (element && element!=parentElement && !element.nextSibling); - - if (element && element!=parentElement) - { - element = element.nextSibling; - } - } - } - } - - this.Toggle = function(id) - { - var element = this.FindChildElement(id); - if (element) - { - if (element.style.display == 'block') - { - element.style.display = 'none'; - } - else - { - element.style.display = 'block'; - } - } - } - - // Searches for the passed string. If there is no parameter, - // it takes it from the URL query. - // - // Always returns true, since other documents may try to call it - // and that may or may not be possible. - this.Search = function(search) - { - if (!search) // get search word from URL - { - search = window.location.search; - search = search.substring(1); // Remove the leading '?' - search = unescape(search); - } - - search = search.replace(/^ +/, ""); // strip leading spaces - search = search.replace(/ +$/, ""); // strip trailing spaces - search = search.toLowerCase(); - search = convertToId(search); - - var resultRows = document.getElementsByTagName("div"); - var matches = 0; - - var i = 0; - while (i < resultRows.length) - { - var row = resultRows.item(i); - if (row.className == "SRResult") - { - var rowMatchName = row.id.toLowerCase(); - rowMatchName = rowMatchName.replace(/^sr\d*_/, ''); // strip 'sr123_' - - if (search.length<=rowMatchName.length && - rowMatchName.substr(0, search.length)==search) - { - row.style.display = 'block'; - matches++; - } - else - { - row.style.display = 'none'; - } - } - i++; - } - document.getElementById("Searching").style.display='none'; - if (matches == 0) // no results - { - document.getElementById("NoMatches").style.display='block'; - } - else // at least one result - { - document.getElementById("NoMatches").style.display='none'; - } - this.lastMatchCount = matches; - return true; - } - - // return the first item with index index or higher that is visible - this.NavNext = function(index) - { - var focusItem; - while (1) - { - var focusName = 'Item'+index; - focusItem = document.getElementById(focusName); - if (focusItem && focusItem.parentNode.parentNode.style.display=='block') - { - break; - } - else if (!focusItem) // last element - { - break; - } - focusItem=null; - index++; - } - return focusItem; - } - - this.NavPrev = function(index) - { - var focusItem; - while (1) - { - var focusName = 'Item'+index; - focusItem = document.getElementById(focusName); - if (focusItem && focusItem.parentNode.parentNode.style.display=='block') - { - break; - } - else if (!focusItem) // last element - { - break; - } - focusItem=null; - index--; - } - return focusItem; - } - - this.ProcessKeys = function(e) - { - if (e.type == "keydown") - { - this.repeatOn = false; - this.lastKey = e.keyCode; - } - else if (e.type == "keypress") - { - if (!this.repeatOn) - { - if (this.lastKey) this.repeatOn = true; - return false; // ignore first keypress after keydown - } - } - else if (e.type == "keyup") - { - this.lastKey = 0; - this.repeatOn = false; - } - return this.lastKey!=0; - } - - this.Nav = function(evt,itemIndex) - { - var e = (evt) ? evt : window.event; // for IE - if (e.keyCode==13) return true; - if (!this.ProcessKeys(e)) return false; - - if (this.lastKey==38) // Up - { - var newIndex = itemIndex-1; - var focusItem = this.NavPrev(newIndex); - if (focusItem) - { - var child = this.FindChildElement(focusItem.parentNode.parentNode.id); - if (child && child.style.display == 'block') // children visible - { - var n=0; - var tmpElem; - while (1) // search for last child - { - tmpElem = document.getElementById('Item'+newIndex+'_c'+n); - if (tmpElem) - { - focusItem = tmpElem; - } - else // found it! - { - break; - } - n++; - } - } - } - if (focusItem) - { - focusItem.focus(); - } - else // return focus to search field - { - parent.document.getElementById("MSearchField").focus(); - } - } - else if (this.lastKey==40) // Down - { - var newIndex = itemIndex+1; - var focusItem; - var item = document.getElementById('Item'+itemIndex); - var elem = this.FindChildElement(item.parentNode.parentNode.id); - if (elem && elem.style.display == 'block') // children visible - { - focusItem = document.getElementById('Item'+itemIndex+'_c0'); - } - if (!focusItem) focusItem = this.NavNext(newIndex); - if (focusItem) focusItem.focus(); - } - else if (this.lastKey==39) // Right - { - var item = document.getElementById('Item'+itemIndex); - var elem = this.FindChildElement(item.parentNode.parentNode.id); - if (elem) elem.style.display = 'block'; - } - else if (this.lastKey==37) // Left - { - var item = document.getElementById('Item'+itemIndex); - var elem = this.FindChildElement(item.parentNode.parentNode.id); - if (elem) elem.style.display = 'none'; - } - else if (this.lastKey==27) // Escape - { - parent.searchBox.CloseResultsWindow(); - parent.document.getElementById("MSearchField").focus(); - } - else if (this.lastKey==13) // Enter - { - return true; - } - return false; - } - - this.NavChild = function(evt,itemIndex,childIndex) - { - var e = (evt) ? evt : window.event; // for IE - if (e.keyCode==13) return true; - if (!this.ProcessKeys(e)) return false; - - if (this.lastKey==38) // Up - { - if (childIndex>0) - { - var newIndex = childIndex-1; - document.getElementById('Item'+itemIndex+'_c'+newIndex).focus(); - } - else // already at first child, jump to parent - { - document.getElementById('Item'+itemIndex).focus(); - } - } - else if (this.lastKey==40) // Down - { - var newIndex = childIndex+1; - var elem = document.getElementById('Item'+itemIndex+'_c'+newIndex); - if (!elem) // last child, jump to parent next parent - { - elem = this.NavNext(itemIndex+1); - } - if (elem) - { - elem.focus(); - } - } - else if (this.lastKey==27) // Escape - { - parent.searchBox.CloseResultsWindow(); - parent.document.getElementById("MSearchField").focus(); - } - else if (this.lastKey==13) // Enter - { - return true; - } - return false; - } -} diff --git a/docs/html/search/search_l.png b/docs/html/search/search_l.png deleted file mode 100644 index c872f4d..0000000 Binary files a/docs/html/search/search_l.png and /dev/null differ diff --git a/docs/html/search/search_m.png b/docs/html/search/search_m.png deleted file mode 100644 index b429a16..0000000 Binary files a/docs/html/search/search_m.png and /dev/null differ diff --git a/docs/html/search/search_r.png b/docs/html/search/search_r.png deleted file mode 100644 index 97ee8b4..0000000 Binary files a/docs/html/search/search_r.png and /dev/null differ diff --git a/docs/html/search/typedefs_63.html b/docs/html/search/typedefs_63.html deleted file mode 100644 index b1f0d31..0000000 --- a/docs/html/search/typedefs_63.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- class_ptr - class.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/typedefs_66.html b/docs/html/search/typedefs_66.html deleted file mode 100644 index d9b30d1..0000000 --- a/docs/html/search/typedefs_66.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- fptr_classInit - class.h -
-
-
-
- fptr_clone - class.h -
-
-
-
- fptr_ctor - class.h -
-
-
-
- fptr_dtor - class.h -
-
-
-
- fptr_log - logger.h -
-
-
-
- fptr_streamReaderRead - stream_reader.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/typedefs_68.html b/docs/html/search/typedefs_68.html deleted file mode 100644 index 7df19cd..0000000 --- a/docs/html/search/typedefs_68.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- HttpRequestState - request_parser.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/typedefs_69.html b/docs/html/search/typedefs_69.html deleted file mode 100644 index ff27746..0000000 --- a/docs/html/search/typedefs_69.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- iface_impl_ptr - interface.h -
-
-
-
- iface_ptr - interface.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/typedefs_6c.html b/docs/html/search/typedefs_6c.html deleted file mode 100644 index 1488b10..0000000 --- a/docs/html/search/typedefs_6c.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- logger_level - logger.h -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_5f.html b/docs/html/search/variables_5f.html deleted file mode 100644 index c8468c4..0000000 --- a/docs/html/search/variables_5f.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
Loading...
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_62.html b/docs/html/search/variables_62.html deleted file mode 100644 index c2906b3..0000000 --- a/docs/html/search/variables_62.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- buffer - HttpRequestParser -
-
-
-
- buffer_size - HttpRequestParser -
-
-
-
- buffer_used - HttpRequestParser -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_63.html b/docs/html/search/variables_63.html deleted file mode 100644 index e16b223..0000000 --- a/docs/html/search/variables_63.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- clone - i_Class -
-
-
-
- conns - Server -
-
-
-
- ctor - i_Class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_64.html b/docs/html/search/variables_64.html deleted file mode 100644 index f531abf..0000000 --- a/docs/html/search/variables_64.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- dtor - i_Class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_68.html b/docs/html/search/variables_68.html deleted file mode 100644 index 9043832..0000000 --- a/docs/html/search/variables_68.html +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- handle - Sock -
-
-
-
- hash - HttpHeader -
-
- -
-
- http_version - HttpResponse -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_69.html b/docs/html/search/variables_69.html deleted file mode 100644 index 8743d8c..0000000 --- a/docs/html/search/variables_69.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- impl - iface_impl -
-
-
-
- init - class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_6c.html b/docs/html/search/variables_6c.html deleted file mode 100644 index 3b0f05c..0000000 --- a/docs/html/search/variables_6c.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -
-
Loading...
- -
-
- logger - Server -
-
- -
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_6d.html b/docs/html/search/variables_6d.html deleted file mode 100644 index 1e33682..0000000 --- a/docs/html/search/variables_6d.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- magic - class -
-
-
-
- method - HttpRequest -
-
-
-
- min_level - Logger -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_6e.html b/docs/html/search/variables_6e.html deleted file mode 100644 index 85b64de..0000000 --- a/docs/html/search/variables_6e.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - -
-
Loading...
- - -
-
- ndel - Server -
-
-
-
- nfds - Server -
-
- -
-
- nimpl - iface_impl -
-
-
-
- nmethods - interface -
-
-
-
- nrequests - HttpRequestQueue -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_6f.html b/docs/html/search/variables_6f.html deleted file mode 100644 index 2a9bfcb..0000000 --- a/docs/html/search/variables_6f.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- object_size - class -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_70.html b/docs/html/search/variables_70.html deleted file mode 100644 index 01c91ab..0000000 --- a/docs/html/search/variables_70.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- parent - class -
-
-
-
- port - Sock -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_72.html b/docs/html/search/variables_72.html deleted file mode 100644 index 690eca7..0000000 --- a/docs/html/search/variables_72.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- rbuf - Server -
-
-
-
- read - i_StreamReader -
-
-
-
- reader - Server -
-
-
-
- request_queue - HttpRequestParser -
-
-
-
- requests - HttpRequestQueue -
-
-
-
- reson - HttpResponse -
-
-
-
- rpos - Server -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_73.html b/docs/html/search/variables_73.html deleted file mode 100644 index 6239802..0000000 --- a/docs/html/search/variables_73.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- simpl - iface_impl -
-
-
-
- sock - Server -
-
-
-
- state - HttpRequestParser -
-
-
-
- status - HttpResponse -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_75.html b/docs/html/search/variables_75.html deleted file mode 100644 index 8e06639..0000000 --- a/docs/html/search/variables_75.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- uri - HttpRequest -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_76.html b/docs/html/search/variables_76.html deleted file mode 100644 index 5bee369..0000000 --- a/docs/html/search/variables_76.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- value - HttpHeader -
-
-
-
- version - HttpRequest -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/search/variables_77.html b/docs/html/search/variables_77.html deleted file mode 100644 index e31298c..0000000 --- a/docs/html/search/variables_77.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
-
Loading...
-
-
- wbuf - Server -
-
-
-
- wpos - Server -
-
-
Searching...
-
No Matches
- -
- - diff --git a/docs/html/server_8c.html b/docs/html/server_8c.html deleted file mode 100644 index 546c20d..0000000 --- a/docs/html/server_8c.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - -server: src/server.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/server.c File Reference

-
-
-
#include <poll.h>
-#include <string.h>
-#include <stdlib.h>
-#include "class.h"
-#include "server.h"
-#include "socket.h"
-#include "logger.h"
-#include "interface/class.h"
-
-Include dependency graph for server.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (Server, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (Server ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/server_8c__incl.map b/docs/html/server_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/server_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/server_8c__incl.md5 b/docs/html/server_8c__incl.md5 deleted file mode 100644 index aa06484..0000000 --- a/docs/html/server_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -84d1b67b8aa97e8c7b1dbb4906d52108 \ No newline at end of file diff --git a/docs/html/server_8c__incl.png b/docs/html/server_8c__incl.png deleted file mode 100644 index cb3e9c4..0000000 Binary files a/docs/html/server_8c__incl.png and /dev/null differ diff --git a/docs/html/server_8c_source.html b/docs/html/server_8c_source.html deleted file mode 100644 index 5fdd9c4..0000000 --- a/docs/html/server_8c_source.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - -server: src/server.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/server.c

-
-
-Go to the documentation of this file.
00001 #include <poll.h> /* for select system call and related */
-00002 #include <string.h>     /* for memset and stuff */
-00003 #include <stdlib.h>     /* for getopt */
-00004 
-00005 #include "class.h"
-00006 #include "server.h"
-00007 #include "socket.h"
-00008 #include "logger.h"
-00009 #include "interface/class.h"
-00010 
-00011 static
-00012 void
-00013 ctor(void * _this, va_list * params)
-00014 {
-00015         Server       this = _this;
-00016         in_port_t    port;
-00017         unsigned int backlog;
-00018 
-00019         this->logger = va_arg(* params, Logger);
-00020         this->reader = va_arg(* params, void*);
-00021         port         = va_arg(* params, int);
-00022         backlog      = va_arg(* params, unsigned int);
-00023 
-00024         this->sock = new(Sock, this->logger, port);
-00025         socketListen(this->sock, backlog);
-00026 
-00027         (this->fds)[0].fd     = this->sock->handle;
-00028         (this->fds)[0].events = POLLIN;
-00029         this->nfds = 1;
-00030 }
-00031 
-00032 static
-00033 void
-00034 dtor(void * _this)
-00035 {
-00036         Server this = _this;
-00037     int    i;
-00038 
-00039     for (i=1; i<this->nfds; i++) {
-00040                 /*
-00041                  * @TODO do some finalization...buffer handling...etc.
-00042                  */
-00043                 delete(&(this->conns[i]).sock);
-00044                 delete(&(this->conns[i]).reader);
-00045     }
-00046 
-00047         delete(&this->sock);
-00048 }
-00049 
-00050 INIT_IFACE(Class, ctor, dtor, NULL);
-00051 CREATE_CLASS(Server, NULL, IFACE(Class));
-00052 
-00053 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/server_8h.html b/docs/html/server_8h.html deleted file mode 100644 index e967da6..0000000 --- a/docs/html/server_8h.html +++ /dev/null @@ -1,431 +0,0 @@ - - - - -server: include/server.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/server.h File Reference

-
-
-
#include <stdio.h>
-#include <poll.h>
-#include "class.h"
-#include "socket.h"
-#include "logger.h"
-
-Include dependency graph for server.h:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - - - - - -

-Classes

struct  Server

-Defines

#define POLL_FD_NSIZE   1024
#define POLL_FD_SIZE   (sizeof(struct pollfd) * POLL_FD_NSIZE)
#define MOVE_SIZE(size, idx)   ((size) * (POLL_FD_NSIZE-((idx)+1)))
#define CLEAR_CONN(server, idx)

-Functions

void serverRun (Server this)
void serverCloseConn (Server this, unsigned int handle)
-

Define Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
#define CLEAR_CONN( server,
 idx 
)
-
-
-Value:
memmove(&(((server)->fds)[(idx)]), \
-                        &(((server)->fds)[(idx)+1]), \
-                        MOVE_SIZE(sizeof(((server)->fds)[0]),(idx))); \
-        memmove(&(((server)->conns)[(idx)]), \
-                        &(((server)->conns)[(idx)+1]), \
-                        MOVE_SIZE(sizeof(((server)->conns)[0]),(idx)))
-
-

Definition at line 15 of file server.h.

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
#define MOVE_SIZE( size,
 idx 
)   ((size) * (POLL_FD_NSIZE-((idx)+1)))
-
-
- -

Definition at line 14 of file server.h.

- -
-
- -
-
- - - - -
#define POLL_FD_NSIZE   1024
-
-
- -

Definition at line 11 of file server.h.

- -
-
- -
-
- - - - -
#define POLL_FD_SIZE   (sizeof(struct pollfd) * POLL_FD_NSIZE)
-
-
- -

Definition at line 12 of file server.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void serverCloseConn (Server this,
unsigned int handle 
)
-
-
- -

Definition at line 7 of file close_conn.c.

-
{
-        int fd = (this->fds)[i].fd;
-
-        delete(&((this->conns)[fd].sock));
-        delete(&((this->conns)[fd].reader));
-        memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf));
-        (this->fds)[i].events = 0;
-        (this->fds)[i].revents = 0;
-        (this->fds)[i].fd = 0;
-        this->ndel++;
-//      CLEAR_CONN(this, i);
-//      this->nfds--;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void serverRun (Server this)
-
-
- -

: actually this is the main loop of my server. When stuff becomes more complicated it might be feasabible to split stuff into separate processes. This will definetly involve some IPC and syncing. Right now as this is actually only a simple HTTP server implementation we go on with this single process. What we can first do to get some processing between read/write cicles is to use the poll timeout.

-

handle accept

-

handle reads

-

do some other processing : actually this will hard assume that our stream reader is a http parser and it has its queue...think about more generalizing here.

-

: for now simply remove request and send not found. Make this sane.

-

: the complete response stuff have to be removed here.

-

: just to send an answer and be able to make some apache benchs i do it here...this definetly MUST BE moved

-

handle writes

-

- -

Definition at line 30 of file run.c.

-
{
-    loggerLog(this->logger, LOGGER_INFO, "service started");
-
-    while (!doShutdown) /* until error or signal  */
-    {
-                int          events;
-                unsigned int i;
-
-                events = serverPoll(this);
-                if (doShutdown) break;
-
-                for (i=0; i < events; i++) {
-                        int fd = (this->fds)[i].fd;
-                        //int nreads = 0, nwrites = 0;
-
-                        if (0 != ((this->fds)[i].revents & POLLIN)) {
-                                if (this->sock->handle == (this->fds)[i].fd) {
-                                        serverHandleAccept(this);
-                                }
-
-                                else {
-                                        int size;
-                                        if (0 < (size=serverRead(this, i))) {
-                                                int              j;
-                                                HttpRequestQueue queue =
-                                                        ((HttpRequestParser)(this->conns)[fd].reader)->request_queue;
-
-                                                for (j=0; j<queue->nrequests; j++) {
-                                                        HttpRequest request = queue->requests[j];
-
-                                                        //if (NULL != request->body) {
-                                                        //      puts("==REQUEST BODY==");
-                                                        //      puts(request->body);
-                                                        //}
-
-                                                        delete(&request);
-
-                                                        time_t t;
-                                                        struct tm * tmp;
-                                                        char timestr[200];
-
-#define RESP_HEAD "HTTP/1.1 404 Not Found\r\n" \
-                                                        "Content-Type: text/html\r\n" \
-                                                        "Content-Length: %lu\r\n" \
-                                                        "Date: %s\r\n" \
-                                                        "Server: testserver\r\n"
-
-#define RESP_DATA "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" \
-                                                        "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n" \
-                                                        " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n" \
-                                                        "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n" \
-                                                        "<head><title>404 - Not Found</title></head>" \
-                                                        "<body><h1>404 - Not Found</h1></body>" \
-                                                        "</html>"
-
-                                                        t = time(NULL);
-                                                        tmp = localtime(&t);
-                                                        strftime(timestr, sizeof(timestr), "%a, %d %b %Y %T %Z", tmp);
-
-                                                        sprintf((this->conns)[fd].wbuf, RESP_HEAD "\r\n" RESP_DATA, sizeof(RESP_DATA), timestr);
-                                                        (this->fds)[i].events = (this->fds)[i].events | POLLOUT;
-                                                }
-
-                                                queue->nrequests = 0;
-                                        }
-                                }
-                        }
-
-                        if (0 != ((this->fds)[i].revents & POLLOUT)) {
-                                int size;
-
-                                size = write(
-                                                (this->fds)[i].fd,
-                                                (this->conns)[fd].wbuf,
-                                                strlen((this->conns)[fd].wbuf));
-
-                                if (size == strlen((this->conns)[fd].wbuf) ||
-                                                -1 == size) {
-                                        if (-1 == size) {
-                                                loggerLog(this->logger, LOGGER_ERR,
-                                                                "write error, closing connection");
-                                        }
-
-                                        serverCloseConn(this, i);
-                                }
-                                else {
-                                        memmove((this->conns)[fd].wbuf,
-                                                        (this->conns)[fd].wbuf + size,
-                                                        strlen((this->conns)[fd].wbuf) - size + 1);
-                                }
-                        }
-                }
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/server_8h__incl.map b/docs/html/server_8h__incl.map deleted file mode 100644 index 80903a5..0000000 --- a/docs/html/server_8h__incl.map +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/docs/html/server_8h__incl.md5 b/docs/html/server_8h__incl.md5 deleted file mode 100644 index 61931ce..0000000 --- a/docs/html/server_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -aa704eb82919e8440dce9f03f3c53cc2 \ No newline at end of file diff --git a/docs/html/server_8h__incl.png b/docs/html/server_8h__incl.png deleted file mode 100644 index c323b15..0000000 Binary files a/docs/html/server_8h__incl.png and /dev/null differ diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map deleted file mode 100644 index 5153be1..0000000 --- a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 deleted file mode 100644 index 73df168..0000000 --- a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -7a132c7f4a071fc3ade2758932a38a64 \ No newline at end of file diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png deleted file mode 100644 index 2743798..0000000 Binary files a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.png and /dev/null differ diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map deleted file mode 100644 index faed6bd..0000000 --- a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 deleted file mode 100644 index e321b7b..0000000 --- a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -ce960d181d782373295747cea9ba8363 \ No newline at end of file diff --git a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png b/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png deleted file mode 100644 index eb08ad7..0000000 Binary files a/docs/html/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.png and /dev/null differ diff --git a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.map b/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.map deleted file mode 100644 index 18438a9..0000000 --- a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 b/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 deleted file mode 100644 index 7ae5cd5..0000000 --- a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -ec0f0d34bf543ab4e0985794d4eb997c \ No newline at end of file diff --git a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.png b/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.png deleted file mode 100644 index 054f982..0000000 Binary files a/docs/html/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.png and /dev/null differ diff --git a/docs/html/server_8h_source.html b/docs/html/server_8h_source.html deleted file mode 100644 index 6b3cb88..0000000 --- a/docs/html/server_8h_source.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - -server: include/server.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/server.h

-
-
-Go to the documentation of this file.
00001 #ifndef __SERVER_H__
-00002 #define __SERVER_H__
-00003 
-00004 #include <stdio.h>      /* for printf() and fprintf() */
-00005 #include <poll.h> /* for select system call and related */
-00006 
-00007 #include "class.h"
-00008 #include "socket.h"
-00009 #include "logger.h"
-00010 
-00011 #define POLL_FD_NSIZE           1024
-00012 #define POLL_FD_SIZE            (sizeof(struct pollfd) * POLL_FD_NSIZE)
-00013 
-00014 #define MOVE_SIZE(size,idx)     ((size) * (POLL_FD_NSIZE-((idx)+1)))
-00015 #define CLEAR_CONN(server,idx)  \
-00016         memmove(&(((server)->fds)[(idx)]), \
-00017                         &(((server)->fds)[(idx)+1]), \
-00018                         MOVE_SIZE(sizeof(((server)->fds)[0]),(idx))); \
-00019         memmove(&(((server)->conns)[(idx)]), \
-00020                         &(((server)->conns)[(idx)+1]), \
-00021                         MOVE_SIZE(sizeof(((server)->conns)[0]),(idx)))
-00022 
-00023 
-00024 CLASS(Server) {
-00025         Logger        logger;
-00026         Sock          sock;
-00027         void *        reader;
-00028 
-00037         nfds_t        nfds;
-00038         nfds_t        ndel;
-00039         struct pollfd fds[POLL_FD_NSIZE];
-00040 
-00041         struct {
-00042                 Sock         sock;
-00043                 void *       reader;
-00044 
-00045                 char         wbuf[2048];
-00046                 char *       rbuf;
-00047                 unsigned int rpos;
-00048                 unsigned int wpos;
-00049         } conns[POLL_FD_NSIZE];
-00050 };
-00051 
-00052 void serverRun(Server this);
-00053 void serverCloseConn(Server this, unsigned int handle);
-00054 
-00055 #endif // __SERVER_H__
-00056 
-00057 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/signalHandling_8c.html b/docs/html/signalHandling_8c.html deleted file mode 100644 index 3693745..0000000 --- a/docs/html/signalHandling_8c.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - -server: src/signalHandling.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/signalHandling.c File Reference

-
-
-
#include <signal.h>
-
-Include dependency graph for signalHandling.c:
-
-
-
-
-

Go to the source code of this file.

- - - - - - -

-Functions

void terminate (int signum)
void init_signals (void)

-Variables

volatile int doShutdown
-

Function Documentation

- -
-
- - - - - - - - -
void init_signals (void )
-
-
- -

Definition at line 14 of file signalHandling.c.

-
{
-    signal(SIGTERM, terminate);
-    signal(SIGHUP, SIG_IGN);
-    signal(SIGINT, terminate);
-    signal(SIGQUIT, terminate);
-    signal(SIGABRT, terminate);
-    signal(SIGALRM, SIG_IGN);
-    signal(SIGURG, SIG_IGN);
-
-    signal(SIGPIPE, SIG_IGN);
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void terminate (int signum)
-
-
- -

Definition at line 5 of file signalHandling.c.

-
{
-    signal(signum, SIG_IGN);
-    /*
-     * @TODO do logging here
-     */
-    doShutdown = 1;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-

Variable Documentation

- -
-
- - - - -
volatile int doShutdown
-
-
- -

Definition at line 3 of file signalHandling.c.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/signalHandling_8c__incl.map b/docs/html/signalHandling_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/signalHandling_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/signalHandling_8c__incl.md5 b/docs/html/signalHandling_8c__incl.md5 deleted file mode 100644 index 60a7a98..0000000 --- a/docs/html/signalHandling_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -3538ad32acaa8a47394aa089a58b6b07 \ No newline at end of file diff --git a/docs/html/signalHandling_8c__incl.png b/docs/html/signalHandling_8c__incl.png deleted file mode 100644 index bb7e9a2..0000000 Binary files a/docs/html/signalHandling_8c__incl.png and /dev/null differ diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.map b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.map deleted file mode 100644 index 9709800..0000000 --- a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 deleted file mode 100644 index dfd9b04..0000000 --- a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -64ea50b0262594aadd93ea6a859a3baf \ No newline at end of file diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.png b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.png deleted file mode 100644 index bf6b207..0000000 Binary files a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.map b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.map deleted file mode 100644 index 460d46e..0000000 --- a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 deleted file mode 100644 index c7b3cd2..0000000 --- a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -f543007a99a67765a17c0102419a3407 \ No newline at end of file diff --git a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.png b/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.png deleted file mode 100644 index 7cfec8c..0000000 Binary files a/docs/html/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.map b/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.map deleted file mode 100644 index 2144eee..0000000 --- a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 b/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 deleted file mode 100644 index 187d21f..0000000 --- a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -98b0cf0447ba9fddf6a8d7d86f2f02eb \ No newline at end of file diff --git a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.png b/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.png deleted file mode 100644 index 2885cca..0000000 Binary files a/docs/html/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8c_source.html b/docs/html/signalHandling_8c_source.html deleted file mode 100644 index 4dcc690..0000000 --- a/docs/html/signalHandling_8c_source.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - -server: src/signalHandling.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/signalHandling.c

-
-
-Go to the documentation of this file.
00001 #include <signal.h>     /* for signal() and signal names */
-00002 
-00003 volatile int doShutdown;
-00004 
-00005 void terminate(int signum)
-00006 {
-00007     signal(signum, SIG_IGN);
-00008     /*
-00009      * @TODO do logging here
-00010      */
-00011     doShutdown = 1;
-00012 }
-00013 
-00014 void init_signals(void)
-00015 {
-00016     signal(SIGTERM, terminate);
-00017     signal(SIGHUP, SIG_IGN);
-00018     signal(SIGINT, terminate);
-00019     signal(SIGQUIT, terminate);
-00020     signal(SIGABRT, terminate);
-00021     signal(SIGALRM, SIG_IGN);
-00022     signal(SIGURG, SIG_IGN);
-00023 
-00024     signal(SIGPIPE, SIG_IGN);
-00025 }
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/signalHandling_8h.html b/docs/html/signalHandling_8h.html deleted file mode 100644 index d9c6ccf..0000000 --- a/docs/html/signalHandling_8h.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - -server: include/signalHandling.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/signalHandling.h File Reference

-
-
- -

Go to the source code of this file.

- - - - - - -

-Functions

void terminate (int signum)
void init_signals (void)

-Variables

volatile int doShutdown
-

Function Documentation

- -
-
- - - - - - - - -
void init_signals (void )
-
-
- -

Definition at line 14 of file signalHandling.c.

-
{
-    signal(SIGTERM, terminate);
-    signal(SIGHUP, SIG_IGN);
-    signal(SIGINT, terminate);
-    signal(SIGQUIT, terminate);
-    signal(SIGABRT, terminate);
-    signal(SIGALRM, SIG_IGN);
-    signal(SIGURG, SIG_IGN);
-
-    signal(SIGPIPE, SIG_IGN);
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - -
void terminate (int signum)
-
-
- -

Definition at line 5 of file signalHandling.c.

-
{
-    signal(signum, SIG_IGN);
-    /*
-     * @TODO do logging here
-     */
-    doShutdown = 1;
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-

Variable Documentation

- -
-
- - - - -
volatile int doShutdown
-
-
- -

Definition at line 3 of file signalHandling.c.

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.map b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.map deleted file mode 100644 index 9709800..0000000 --- a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 deleted file mode 100644 index dfd9b04..0000000 --- a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -64ea50b0262594aadd93ea6a859a3baf \ No newline at end of file diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.png b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.png deleted file mode 100644 index bf6b207..0000000 Binary files a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.map b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.map deleted file mode 100644 index 460d46e..0000000 --- a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 deleted file mode 100644 index c7b3cd2..0000000 --- a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -f543007a99a67765a17c0102419a3407 \ No newline at end of file diff --git a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.png b/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.png deleted file mode 100644 index 7cfec8c..0000000 Binary files a/docs/html/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.map b/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.map deleted file mode 100644 index 2144eee..0000000 --- a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 b/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 deleted file mode 100644 index 187d21f..0000000 --- a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -98b0cf0447ba9fddf6a8d7d86f2f02eb \ No newline at end of file diff --git a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.png b/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.png deleted file mode 100644 index 2885cca..0000000 Binary files a/docs/html/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.png and /dev/null differ diff --git a/docs/html/signalHandling_8h_source.html b/docs/html/signalHandling_8h_source.html deleted file mode 100644 index 420bfc2..0000000 --- a/docs/html/signalHandling_8h_source.html +++ /dev/null @@ -1,120 +0,0 @@ - - - - -server: include/signalHandling.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/signalHandling.h

-
-
-Go to the documentation of this file.
00001 #ifndef __SIGNAL_HANDLING_H__
-00002 #define __SIGNAL_HANDLING_H__
-00003 
-00004 extern volatile int doShutdown;
-00005 
-00006 void terminate(int signum);
-00007 void init_signals(void);
-00008 
-00009 #endif // __SIGNAL_HANDLING_H__
-00010 
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/socket_8c.html b/docs/html/socket_8c.html deleted file mode 100644 index 0c005cb..0000000 --- a/docs/html/socket_8c.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - -server: src/socket.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/socket.c File Reference

-
-
-
#include <errno.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include "socket.h"
-#include "logger.h"
-#include "interface/class.h"
-#include "interface/logger.h"
-
-Include dependency graph for socket.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Class, ctor, dtor, NULL)
 CREATE_CLASS (Sock, NULL, IFACE(Class))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (Sock ,
NULL ,
IFACE(Class)  
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INIT_IFACE (Class ,
ctor ,
dtor ,
NULL  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/socket_8c__incl.map b/docs/html/socket_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/socket_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/socket_8c__incl.md5 b/docs/html/socket_8c__incl.md5 deleted file mode 100644 index 8d33a8e..0000000 --- a/docs/html/socket_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -2470698c6348eafacde34d6d8f8fda9c \ No newline at end of file diff --git a/docs/html/socket_8c__incl.png b/docs/html/socket_8c__incl.png deleted file mode 100644 index 1d8903c..0000000 Binary files a/docs/html/socket_8c__incl.png and /dev/null differ diff --git a/docs/html/socket_8c_source.html b/docs/html/socket_8c_source.html deleted file mode 100644 index ab3edf4..0000000 --- a/docs/html/socket_8c_source.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - -server: src/socket.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/socket.c

-
-
-Go to the documentation of this file.
00001 #include <errno.h>
-00002 #include <stdlib.h>
-00003 #include <unistd.h>
-00004 
-00005 #include "socket.h"
-00006 #include "logger.h"
-00007 #include "interface/class.h"
-00008 #include "interface/logger.h"
-00009 
-00010 static
-00011 void
-00012 ctor(void * _this, va_list * params)
-00013 {
-00014         Sock this = _this;
-00015         int reUse   = 1;     /* TODO: make this configurable */
-00016 
-00017         this->log  = va_arg(* params, Logger);
-00018         this->port = va_arg(* params, int);
-00019 
-00020         /* Create socket for incoming connections */
-00021         if (-1 == (this->handle = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP))) {
-00022                 loggerLog(this->log, LOGGER_CRIT,
-00023                                 "error opening socket: %s - service terminated",
-00024                                 strerror(errno));
-00025                 //exit(EXIT_FAILURE);
-00032                 return;
-00033         }
-00034 
-00035         /* Make the socket REUSE a TIME_WAIT socket */
-00036         setsockopt(this->handle, SOL_SOCKET, SO_REUSEADDR, &reUse, sizeof (reUse));
-00037 }
-00038 
-00039 static
-00040 void
-00041 dtor(void * _this)
-00042 {
-00043         Sock this = _this;
-00044 
-00045         if (0 != this->handle) {
-00046                 shutdown(this->handle, SHUT_RDWR);
-00047                 close(this->handle);
-00048         }
-00049 }
-00050 
-00051 INIT_IFACE(Class, ctor, dtor, NULL);
-00052 CREATE_CLASS(Sock, NULL, IFACE(Class));
-00053 
-00054 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/socket_8h.html b/docs/html/socket_8h.html deleted file mode 100644 index ccbdb4c..0000000 --- a/docs/html/socket_8h.html +++ /dev/null @@ -1,315 +0,0 @@ - - - - -server: include/socket.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/socket.h File Reference

-
-
-
#include <arpa/inet.h>
-#include "class.h"
-#include "logger.h"
-
-Include dependency graph for socket.h:
-
-
- - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - -
-
-

Go to the source code of this file.

- - - - - - - -

-Classes

struct  Sock

-Functions

void socketConnect (Sock this, const char *addr)
void socketListen (Sock this, int backlog)
Sock socketAccept (Sock this, char remoteAddr[16])
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
Sock socketAccept (Sock this,
char remoteAddr[16] 
)
-
-
- -

: Uhh, this is bad. we open a new socket additionally to the one we get from the accept call. i have to change the socket constructor to be able to create the data structure without creation of a socket at all. For now i simply close the socket here.... :D

-

: change port to remote port on success

-

- -

Definition at line 9 of file accept.c.

-
{
-    Sock         sock;   /* Socket for client */
-    unsigned int len;    /* Length of client address data structure */
-
-    /* Set the size of the in-out parameter */
-    len = sizeof(this->addr);
-
-        sock = new(Sock, this->log, this->port);
-        close(sock->handle);
-    /* Wait for a client to connect */
-    sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len);
-    if (-1 == sock->handle) {
-        loggerLog(this->log, LOGGER_WARNING,
-                "error accepting connection: %s", strerror(errno));
-    } else {
-        loggerLog(this->log, LOGGER_INFO,
-                                "handling client %s\n", inet_ntoa((sock->addr).sin_addr));
-    }
-
-    return sock;
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void socketConnect (Sock this,
const char * addr 
)
-
-
- -

Definition at line 10 of file connect.c.

-
{
-        inet_pton(AF_INET, addr, &((this->addr).sin_addr));
-    (this->addr).sin_family = AF_INET;           /* Internet address family */
-    (this->addr).sin_port   = htons(this->port); /* Local port */
-
-        if (-1 == connect(this->handle, (struct sockaddr*) &(this->addr), sizeof(this->addr))) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error connection socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
void socketListen (Sock this,
int backlog 
)
-
-
- -

Definition at line 10 of file listen.c.

-
{
-    (this->addr).sin_family      = AF_INET;           /* Internet address family */
-    (this->addr).sin_addr.s_addr = htonl(INADDR_ANY); /* Any incoming interface */
-    (this->addr).sin_port        = htons(this->port); /* Local port */
-
-    /* Bind to the local address */
-    if (-1 == bind(this->handle, (struct sockaddr *) &(this->addr), sizeof(this->addr))) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error binding socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-
-    /* Mark the socket so it will listen for incoming connections */
-    if (-1 == listen(this->handle, backlog)) {
-        loggerLog(this->log, LOGGER_CRIT,
-                "error binding socket: %s - service terminated",
-                strerror(errno));
-        exit(EXIT_FAILURE);
-    }
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/socket_8h__dep__incl.map b/docs/html/socket_8h__dep__incl.map deleted file mode 100644 index 54b15a3..0000000 --- a/docs/html/socket_8h__dep__incl.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/socket_8h__dep__incl.md5 b/docs/html/socket_8h__dep__incl.md5 deleted file mode 100644 index b436909..0000000 --- a/docs/html/socket_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -20effb8f72c0f50407e141d8ee2593fe \ No newline at end of file diff --git a/docs/html/socket_8h__dep__incl.png b/docs/html/socket_8h__dep__incl.png deleted file mode 100644 index bc0ce44..0000000 Binary files a/docs/html/socket_8h__dep__incl.png and /dev/null differ diff --git a/docs/html/socket_8h__incl.map b/docs/html/socket_8h__incl.map deleted file mode 100644 index f9c9f4a..0000000 --- a/docs/html/socket_8h__incl.map +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/html/socket_8h__incl.md5 b/docs/html/socket_8h__incl.md5 deleted file mode 100644 index db45875..0000000 --- a/docs/html/socket_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -4951f308a7a6703f369d2af2519b9e75 \ No newline at end of file diff --git a/docs/html/socket_8h__incl.png b/docs/html/socket_8h__incl.png deleted file mode 100644 index 6bd9b8b..0000000 Binary files a/docs/html/socket_8h__incl.png and /dev/null differ diff --git a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map b/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map deleted file mode 100644 index 26da2f8..0000000 --- a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 b/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 deleted file mode 100644 index 9a38935..0000000 --- a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -fa824e3c68242e391222394188b16371 \ No newline at end of file diff --git a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png b/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png deleted file mode 100644 index 631e47c..0000000 Binary files a/docs/html/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.png and /dev/null differ diff --git a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.map b/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.map deleted file mode 100644 index 2fd1014..0000000 --- a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 b/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 deleted file mode 100644 index 8831f43..0000000 --- a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -8abcb500cd410e634be8b7931a7e0a32 \ No newline at end of file diff --git a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.png b/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.png deleted file mode 100644 index 41e24eb..0000000 Binary files a/docs/html/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.png and /dev/null differ diff --git a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map b/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map deleted file mode 100644 index 59d72ce..0000000 --- a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 b/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 deleted file mode 100644 index 995511b..0000000 --- a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -407886eba5bb27f4936db6d792217edc \ No newline at end of file diff --git a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png b/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png deleted file mode 100644 index 17319e9..0000000 Binary files a/docs/html/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.png and /dev/null differ diff --git a/docs/html/socket_8h_source.html b/docs/html/socket_8h_source.html deleted file mode 100644 index 4e5be69..0000000 --- a/docs/html/socket_8h_source.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - -server: include/socket.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/socket.h

-
-
-Go to the documentation of this file.
00001 #ifndef __SOCKET_H__
-00002 #define __SOCKET_H__
-00003 
-00004 #include <arpa/inet.h>  /* for in_port_t */ 
-00005 
-00006 #include "class.h"
-00007 #include "logger.h"
-00008 
-00009 CLASS(Sock) {
-00010         Logger             log;
-00011         in_port_t          port;
-00012         struct sockaddr_in addr;
-00013         int                handle;
-00014 };
-00015 
-00016 void socketConnect(Sock this, const char * addr);
-00017 void socketListen(Sock this, int backlog);
-00018 Sock socketAccept(Sock this, char remoteAddr[16]);
-00019 
-00020 #endif // __SOCKET_H__
-00021 
-00022 // vim: set ts=4 sw=4:
-00023 
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/sort_8c.html b/docs/html/sort_8c.html deleted file mode 100644 index 8d2094e..0000000 --- a/docs/html/sort_8c.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - -server: src/http/header/sort.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/http/header/sort.c File Reference

-
-
-
#include "http/header.h"
-
-Include dependency graph for sort.c:
-
-
- - -
-
-

Go to the source code of this file.

- - - -

-Functions

void httpHeaderSort (const HttpHeader header[], int nheader)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
void httpHeaderSort (const HttpHeader header[],
int nheader 
)
-
-
- -

Definition at line 14 of file sort.c.

-
{
-        qsort(header, nheader, sizeof(HttpHeader), comp);
-}
-
-

-Here is the caller graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/sort_8c__incl.map b/docs/html/sort_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/sort_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/sort_8c__incl.md5 b/docs/html/sort_8c__incl.md5 deleted file mode 100644 index fefb6c7..0000000 --- a/docs/html/sort_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -6e0a230d16d4d4f42c6fe14f89fdd0a9 \ No newline at end of file diff --git a/docs/html/sort_8c__incl.png b/docs/html/sort_8c__incl.png deleted file mode 100644 index 06e5d01..0000000 Binary files a/docs/html/sort_8c__incl.png and /dev/null differ diff --git a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.map b/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.map deleted file mode 100644 index e10b7bb..0000000 --- a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 b/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 deleted file mode 100644 index b4ac569..0000000 --- a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -71394d12b5a7b8762f9e0e79e33ef3c6 \ No newline at end of file diff --git a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.png b/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.png deleted file mode 100644 index 825f7b7..0000000 Binary files a/docs/html/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.png and /dev/null differ diff --git a/docs/html/sort_8c_source.html b/docs/html/sort_8c_source.html deleted file mode 100644 index 7fef0c4..0000000 --- a/docs/html/sort_8c_source.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - -server: src/http/header/sort.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/http/header/sort.c

-
-
-Go to the documentation of this file.
00001 #include "http/header.h"
-00002 
-00003 static
-00004 inline
-00005 int
-00006 comp (const void * _a, const void * _b)
-00007 {
-00008         const HttpHeader a = *(const HttpHeader *)_a;
-00009         const HttpHeader b = *(const HttpHeader *)_b;
-00010         return (a->hash < b->hash)? -1 : (a->hash > b->hash)? 1 : 0;
-00011 }
-00012 
-00013 void
-00014 httpHeaderSort(const HttpHeader header[], int nheader)
-00015 {
-00016         qsort(header, nheader, sizeof(HttpHeader), comp);
-00017 }
-00018 
-00019 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stderr_8c.html b/docs/html/stderr_8c.html deleted file mode 100644 index c0b24b7..0000000 --- a/docs/html/stderr_8c.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -server: src/logger/stderr.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/logger/stderr.c File Reference

-
-
-
#include <stdio.h>
-#include "logger.h"
-#include "interface/logger.h"
-
-Include dependency graph for stderr.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Logger, logStderr)
 CREATE_CLASS (LoggerStderr, Logger, IFACE(Logger))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (LoggerStderr ,
Logger ,
IFACE(Logger 
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
INIT_IFACE (Logger ,
logStderr  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stderr_8c__incl.map b/docs/html/stderr_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/stderr_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/stderr_8c__incl.md5 b/docs/html/stderr_8c__incl.md5 deleted file mode 100644 index 23dd257..0000000 --- a/docs/html/stderr_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -2dd12998a19c1802c0021c537586eae8 \ No newline at end of file diff --git a/docs/html/stderr_8c__incl.png b/docs/html/stderr_8c__incl.png deleted file mode 100644 index c397d68..0000000 Binary files a/docs/html/stderr_8c__incl.png and /dev/null differ diff --git a/docs/html/stderr_8c_source.html b/docs/html/stderr_8c_source.html deleted file mode 100644 index 8de65cf..0000000 --- a/docs/html/stderr_8c_source.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - -server: src/logger/stderr.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/logger/stderr.c

-
-
-Go to the documentation of this file.
00001 #include <stdio.h>
-00002 
-00003 #include "logger.h"
-00004 #include "interface/logger.h"
-00005 
-00006 static
-00007 void
-00008 logStderr(void * this, logger_level level, const char * const msg)
-00009 {
-00010         fprintf(stderr, "[%s] %s\n", logger_level_str[level], msg);
-00011 }
-00012 
-00013 INIT_IFACE(Logger, logStderr);
-00014 CREATE_CLASS(LoggerStderr, Logger, IFACE(Logger));
-00015 
-00016 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stream__reader_8c.html b/docs/html/stream__reader_8c.html deleted file mode 100644 index 9ea88f5..0000000 --- a/docs/html/stream__reader_8c.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - -server: src/interface/stream_reader.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/interface/stream_reader.c File Reference

-
-
-
#include "class.h"
-#include "interface/stream_reader.h"
-
-Include dependency graph for stream_reader.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

size_t streamReaderRead (void *object, int fd)
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
size_t streamReaderRead (void * object,
int fd 
)
-
-
- -

Definition at line 10 of file stream_reader.c.

-
{
-        size_t ret;
-
-        RETCALL(object, StreamReader, read, ret, fd);
-
-        return ret;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stream__reader_8c__incl.map b/docs/html/stream__reader_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/stream__reader_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/stream__reader_8c__incl.md5 b/docs/html/stream__reader_8c__incl.md5 deleted file mode 100644 index 7bba341..0000000 --- a/docs/html/stream__reader_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -547901cfad96e8bfc046fa0bc79607ec \ No newline at end of file diff --git a/docs/html/stream__reader_8c__incl.png b/docs/html/stream__reader_8c__incl.png deleted file mode 100644 index 14f31c4..0000000 Binary files a/docs/html/stream__reader_8c__incl.png and /dev/null differ diff --git a/docs/html/stream__reader_8c_source.html b/docs/html/stream__reader_8c_source.html deleted file mode 100644 index dcaae10..0000000 --- a/docs/html/stream__reader_8c_source.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - -server: src/interface/stream_reader.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/interface/stream_reader.c

-
-
-Go to the documentation of this file.
00001 #include "class.h"
-00002 #include "interface/stream_reader.h"
-00003 
-00004 const struct interface i_StreamReader = {
-00005         "streamReader",
-00006         1
-00007 };
-00008 
-00009 size_t
-00010 streamReaderRead(void * object, int fd)
-00011 {
-00012         size_t ret;
-00013 
-00014         RETCALL(object, StreamReader, read, ret, fd);
-00015 
-00016         return ret;
-00017 }
-00018 
-00019 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stream__reader_8h.html b/docs/html/stream__reader_8h.html deleted file mode 100644 index 67f1a3b..0000000 --- a/docs/html/stream__reader_8h.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - -server: include/interface/stream_reader.h File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

include/interface/stream_reader.h File Reference

-
-
-
#include <sys/types.h>
-
-Include dependency graph for stream_reader.h:
-
-
-
-
-

Go to the source code of this file.

- - - - - - - -

-Classes

struct  i_StreamReader

-Typedefs

typedef size_t(* fptr_streamReaderRead )(void *, int fd)

-Functions

size_t streamReaderRead (void *, int fd)
-

Typedef Documentation

- -
-
- - - - -
typedef size_t(* fptr_streamReaderRead)(void *, int fd)
-
-
- -

Definition at line 6 of file stream_reader.h.

- -
-
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - -
size_t streamReaderRead (void * ,
int fd 
)
-
-
- -

Definition at line 10 of file stream_reader.c.

-
{
-        size_t ret;
-
-        RETCALL(object, StreamReader, read, ret, fd);
-
-        return ret;
-}
-
-
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/stream__reader_8h__incl.map b/docs/html/stream__reader_8h__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/stream__reader_8h__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/stream__reader_8h__incl.md5 b/docs/html/stream__reader_8h__incl.md5 deleted file mode 100644 index efb7d08..0000000 --- a/docs/html/stream__reader_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -def8f9b18283885b545e52922e90bd94 \ No newline at end of file diff --git a/docs/html/stream__reader_8h__incl.png b/docs/html/stream__reader_8h__incl.png deleted file mode 100644 index 4799265..0000000 Binary files a/docs/html/stream__reader_8h__incl.png and /dev/null differ diff --git a/docs/html/stream__reader_8h_source.html b/docs/html/stream__reader_8h_source.html deleted file mode 100644 index 893b2cf..0000000 --- a/docs/html/stream__reader_8h_source.html +++ /dev/null @@ -1,129 +0,0 @@ - - - - -server: include/interface/stream_reader.h Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

include/interface/stream_reader.h

-
-
-Go to the documentation of this file.
00001 #ifndef __STREAM_READER_H__
-00002 #define __STREAM_READER_H__
-00003 
-00004 #include <sys/types.h>
-00005 
-00006 typedef size_t (* fptr_streamReaderRead)(void *, int fd);
-00007 
-00008 extern const struct interface i_StreamReader;
-00009 
-00010 struct i_StreamReader {
-00011         const struct interface * const _;
-00012         fptr_streamReaderRead          read;
-00013 };
-00014 
-00015 extern size_t streamReaderRead(void *, int fd);
-00016 
-00017 #endif // __STREAM_READER_H__
-00018 
-00019 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpHeader-members.html b/docs/html/structHttpHeader-members.html deleted file mode 100644 index e3c88c7..0000000 --- a/docs/html/structHttpHeader-members.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

HttpHeader Member List

-
-
-This is the complete list of members for HttpHeader, including all inherited members. - - - -
hashHttpHeader
nameHttpHeader
valueHttpHeader
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpHeader.html b/docs/html/structHttpHeader.html deleted file mode 100644 index 93e5f1b..0000000 --- a/docs/html/structHttpHeader.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - -server: HttpHeader Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

HttpHeader Struct Reference

-
-
- -

#include <header.h>

- -

List of all members.

- - - - - -

-Public Attributes

unsigned long hash
char * name
char * value
-

Detailed Description

-
-

Definition at line 6 of file header.h.

-

Member Data Documentation

- -
-
- - - - -
unsigned long HttpHeader::hash
-
-
- -

Definition at line 21 of file header.h.

- -
-
- -
-
- - - - -
char* HttpHeader::name
-
-
- -

Definition at line 22 of file header.h.

- -
-
- -
-
- - - - -
char* HttpHeader::value
-
-
- -

Definition at line 23 of file header.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequest-members.html b/docs/html/structHttpRequest-members.html deleted file mode 100644 index 0361d42..0000000 --- a/docs/html/structHttpRequest-members.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

HttpRequest Member List

-
-
-This is the complete list of members for HttpRequest, including all inherited members. - - - - - - - -
bodyHttpRequest
headerHttpRequest
methodHttpRequest
nbodyHttpRequest
nheaderHttpRequest
uriHttpRequest
versionHttpRequest
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequest.html b/docs/html/structHttpRequest.html deleted file mode 100644 index 0c27178..0000000 --- a/docs/html/structHttpRequest.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - -server: HttpRequest Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

HttpRequest Struct Reference

-
-
- -

#include <request.h>

-
-Collaboration diagram for HttpRequest:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - - - - - -

-Public Attributes

char * method
char * uri
char * version
HttpHeader header [128]
int nheader
char * body
int nbody
-

Detailed Description

-
-

Definition at line 7 of file request.h.

-

Member Data Documentation

- -
-
- - - - -
char* HttpRequest::body
-
-
- -

Definition at line 34 of file request.h.

- -
-
- -
- -
- -

Definition at line 31 of file request.h.

- -
-
- -
-
- - - - -
char* HttpRequest::method
-
-
- -

Definition at line 27 of file request.h.

- -
-
- -
-
- - - - -
int HttpRequest::nbody
-
-
- -

Definition at line 35 of file request.h.

- -
-
- -
-
- - - - -
int HttpRequest::nheader
-
-
- -

Definition at line 32 of file request.h.

- -
-
- -
-
- - - - -
char* HttpRequest::uri
-
-
- -

Definition at line 28 of file request.h.

- -
-
- -
-
- - - - -
char* HttpRequest::version
-
-
- -

Definition at line 29 of file request.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequestParser-members.html b/docs/html/structHttpRequestParser-members.html deleted file mode 100644 index eb3575f..0000000 --- a/docs/html/structHttpRequestParser-members.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

HttpRequestParser Member List

-
- -
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequestParser.html b/docs/html/structHttpRequestParser.html deleted file mode 100644 index f550d3d..0000000 --- a/docs/html/structHttpRequestParser.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - -server: HttpRequestParser Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

HttpRequestParser Struct Reference

-
-
- -

#include <request_parser.h>

-
-Collaboration diagram for HttpRequestParser:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - - - -

-Public Attributes

char * buffer
size_t buffer_used
size_t buffer_size
HttpRequestQueue request_queue
HttpRequestState state
-

Detailed Description

-
-

Definition at line 18 of file request_parser.h.

-

Member Data Documentation

- -
-
- - - - -
char* HttpRequestParser::buffer
-
-
- -

Definition at line 32 of file request_parser.h.

- -
-
- -
-
- - - - -
size_t HttpRequestParser::buffer_size
-
-
- -

Definition at line 34 of file request_parser.h.

- -
-
- -
-
- - - - -
size_t HttpRequestParser::buffer_used
-
-
- -

Definition at line 33 of file request_parser.h.

- -
-
- -
- -
- -

Definition at line 36 of file request_parser.h.

- -
-
- -
- -
- -

Definition at line 37 of file request_parser.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequestParser__coll__graph.map b/docs/html/structHttpRequestParser__coll__graph.map deleted file mode 100644 index 431e904..0000000 --- a/docs/html/structHttpRequestParser__coll__graph.map +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/docs/html/structHttpRequestParser__coll__graph.md5 b/docs/html/structHttpRequestParser__coll__graph.md5 deleted file mode 100644 index e030b42..0000000 --- a/docs/html/structHttpRequestParser__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -1b14c6095cb219d80d14ca665c62ef36 \ No newline at end of file diff --git a/docs/html/structHttpRequestParser__coll__graph.png b/docs/html/structHttpRequestParser__coll__graph.png deleted file mode 100644 index f099f87..0000000 Binary files a/docs/html/structHttpRequestParser__coll__graph.png and /dev/null differ diff --git a/docs/html/structHttpRequestQueue-members.html b/docs/html/structHttpRequestQueue-members.html deleted file mode 100644 index 7e14344..0000000 --- a/docs/html/structHttpRequestQueue-members.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

HttpRequestQueue Member List

-
-
-This is the complete list of members for HttpRequestQueue, including all inherited members. - - -
nrequestsHttpRequestQueue
requestsHttpRequestQueue
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequestQueue.html b/docs/html/structHttpRequestQueue.html deleted file mode 100644 index 5d3781b..0000000 --- a/docs/html/structHttpRequestQueue.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -server: HttpRequestQueue Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

HttpRequestQueue Struct Reference

-
-
- -

#include <request_queue.h>

-
-Collaboration diagram for HttpRequestQueue:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - -

-Public Attributes

HttpRequest requests [HTTP_REQUEST_QUEUE_MAX]
size_t nrequests
-

Detailed Description

-
-

Definition at line 10 of file request_queue.h.

-

Member Data Documentation

- -
-
- - - - -
size_t HttpRequestQueue::nrequests
-
-
- -

Definition at line 21 of file request_queue.h.

- -
-
- -
-
- - - - -
HttpRequest HttpRequestQueue::requests[HTTP_REQUEST_QUEUE_MAX]
-
-
- -

Definition at line 20 of file request_queue.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpRequestQueue__coll__graph.map b/docs/html/structHttpRequestQueue__coll__graph.map deleted file mode 100644 index b22e01f..0000000 --- a/docs/html/structHttpRequestQueue__coll__graph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/structHttpRequestQueue__coll__graph.md5 b/docs/html/structHttpRequestQueue__coll__graph.md5 deleted file mode 100644 index 827aa29..0000000 --- a/docs/html/structHttpRequestQueue__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -2cdf6f1300ba4e6c3750e92badb74426 \ No newline at end of file diff --git a/docs/html/structHttpRequestQueue__coll__graph.png b/docs/html/structHttpRequestQueue__coll__graph.png deleted file mode 100644 index c8032fe..0000000 Binary files a/docs/html/structHttpRequestQueue__coll__graph.png and /dev/null differ diff --git a/docs/html/structHttpRequest__coll__graph.map b/docs/html/structHttpRequest__coll__graph.map deleted file mode 100644 index 8e1decb..0000000 --- a/docs/html/structHttpRequest__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structHttpRequest__coll__graph.md5 b/docs/html/structHttpRequest__coll__graph.md5 deleted file mode 100644 index acb940a..0000000 --- a/docs/html/structHttpRequest__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -5168704888675f4c24eaae1b6321e578 \ No newline at end of file diff --git a/docs/html/structHttpRequest__coll__graph.png b/docs/html/structHttpRequest__coll__graph.png deleted file mode 100644 index 16e6347..0000000 Binary files a/docs/html/structHttpRequest__coll__graph.png and /dev/null differ diff --git a/docs/html/structHttpResponse-members.html b/docs/html/structHttpResponse-members.html deleted file mode 100644 index 21a6a24..0000000 --- a/docs/html/structHttpResponse-members.html +++ /dev/null @@ -1,118 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

HttpResponse Member List

-
- -
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpResponse.html b/docs/html/structHttpResponse.html deleted file mode 100644 index d789082..0000000 --- a/docs/html/structHttpResponse.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - -server: HttpResponse Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

HttpResponse Struct Reference

-
-
- -

#include <response.h>

-
-Collaboration diagram for HttpResponse:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - - - - - -

-Public Attributes

char * http_version
char * status
char * reson
HttpHeader header [128]
int nheader
char * body
int nbody
-

Detailed Description

-
-

Definition at line 6 of file response.h.

-

Member Data Documentation

- -
-
- - - - -
char* HttpResponse::body
-
-
- -

Definition at line 33 of file response.h.

- -
-
- -
- -
- -

Definition at line 30 of file response.h.

- -
-
- -
-
- - - - -
char* HttpResponse::http_version
-
-
- -

Definition at line 26 of file response.h.

- -
-
- -
-
- - - - -
int HttpResponse::nbody
-
-
- -

Definition at line 34 of file response.h.

- -
-
- -
-
- - - - -
int HttpResponse::nheader
-
-
- -

Definition at line 31 of file response.h.

- -
-
- -
-
- - - - -
char* HttpResponse::reson
-
-
- -

Definition at line 28 of file response.h.

- -
-
- -
-
- - - - -
char* HttpResponse::status
-
-
- -

Definition at line 27 of file response.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structHttpResponse__coll__graph.map b/docs/html/structHttpResponse__coll__graph.map deleted file mode 100644 index fd1ecfc..0000000 --- a/docs/html/structHttpResponse__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structHttpResponse__coll__graph.md5 b/docs/html/structHttpResponse__coll__graph.md5 deleted file mode 100644 index ad4d0f0..0000000 --- a/docs/html/structHttpResponse__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -0692ac9c7f2236a1919dcdf8f90c39f3 \ No newline at end of file diff --git a/docs/html/structHttpResponse__coll__graph.png b/docs/html/structHttpResponse__coll__graph.png deleted file mode 100644 index b70d265..0000000 Binary files a/docs/html/structHttpResponse__coll__graph.png and /dev/null differ diff --git a/docs/html/structLogger-members.html b/docs/html/structLogger-members.html deleted file mode 100644 index e6e858b..0000000 --- a/docs/html/structLogger-members.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

Logger Member List

-
-
-This is the complete list of members for Logger, including all inherited members. - -
min_levelLogger
-
- - - - - -
- -
- - - - diff --git a/docs/html/structLogger.html b/docs/html/structLogger.html deleted file mode 100644 index 3d214ed..0000000 --- a/docs/html/structLogger.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - -server: Logger Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

Logger Struct Reference

-
-
- -

#include <logger.h>

- -

List of all members.

- - - -

-Public Attributes

logger_level min_level
-

Detailed Description

-
-

Definition at line 19 of file logger.h.

-

Member Data Documentation

- -
- -
- -

Definition at line 36 of file logger.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structLoggerStderr-members.html b/docs/html/structLoggerStderr-members.html deleted file mode 100644 index c707bec..0000000 --- a/docs/html/structLoggerStderr-members.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

LoggerStderr Member List

-
-
-This is the complete list of members for LoggerStderr, including all inherited members. - -
EXTENDS(Logger)LoggerStderr
-
- - - - - -
- -
- - - - diff --git a/docs/html/structLoggerStderr.html b/docs/html/structLoggerStderr.html deleted file mode 100644 index 1d47721..0000000 --- a/docs/html/structLoggerStderr.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -server: LoggerStderr Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

LoggerStderr Struct Reference

-
-
- -

#include <logger.h>

- -

List of all members.

- - - -

-Public Member Functions

 EXTENDS (Logger)
-

Detailed Description

-
-

Definition at line 39 of file logger.h.

-

Member Function Documentation

- -
-
- - - - - - - - -
LoggerStderr::EXTENDS (Logger )
-
-
- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structLoggerSyslog-members.html b/docs/html/structLoggerSyslog-members.html deleted file mode 100644 index 7480d6c..0000000 --- a/docs/html/structLoggerSyslog-members.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

LoggerSyslog Member List

-
-
-This is the complete list of members for LoggerSyslog, including all inherited members. - -
EXTENDS(Logger)LoggerSyslog
-
- - - - - -
- -
- - - - diff --git a/docs/html/structLoggerSyslog.html b/docs/html/structLoggerSyslog.html deleted file mode 100644 index 6a5a586..0000000 --- a/docs/html/structLoggerSyslog.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - -server: LoggerSyslog Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

LoggerSyslog Struct Reference

-
-
- -

#include <logger.h>

- -

List of all members.

- - - -

-Public Member Functions

 EXTENDS (Logger)
-

Detailed Description

-
-

Definition at line 55 of file logger.h.

-

Member Function Documentation

- -
-
- - - - - - - - -
LoggerSyslog::EXTENDS (Logger )
-
-
- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structServer-members.html b/docs/html/structServer-members.html deleted file mode 100644 index d1a0032..0000000 --- a/docs/html/structServer-members.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

Server Member List

-
-
-This is the complete list of members for Server, including all inherited members. - - - - - - - - - - -
connsServer
loggerServer
ndelServer
nfdsServer
rbufServer
readerServer
rposServer
sockServer
wbufServer
wposServer
-
- - - - - -
- -
- - - - diff --git a/docs/html/structServer.html b/docs/html/structServer.html deleted file mode 100644 index 5acf58d..0000000 --- a/docs/html/structServer.html +++ /dev/null @@ -1,297 +0,0 @@ - - - - -server: Server Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

Server Struct Reference

-
-
- -

#include <server.h>

-
-Collaboration diagram for Server:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - - - - - - - - - - - -

-Public Attributes

Logger logger
Sock sock
void * reader
nfds_t nfds
nfds_t ndel
struct {
   Sock   sock
   void *   reader
   char   wbuf [2048]
   char *   rbuf
   unsigned int   rpos
   unsigned int   wpos
conns [POLL_FD_NSIZE]
-

Detailed Description

-
-

Definition at line 24 of file server.h.

-

Member Data Documentation

- -
-
- - - - -
struct { ... } Server::conns[POLL_FD_NSIZE]
-
-
- -
-
- -
-
- - - - -
Logger Server::logger
-
-
- -

Definition at line 60 of file server.h.

- -
-
- -
-
- - - - -
nfds_t Server::ndel
-
-
- -

Definition at line 73 of file server.h.

- -
-
- -
-
- - - - -
nfds_t Server::nfds
-
-
-

loeschen: fds[i].event auf 0 dann nfds um die anzahl der geloeschten elemente verkleinern. die in close pending stehenden socket schliessen. vor jedem poll qsort auf fds ueber event. nach dem poll qsort auf fds ueber revent und reuckgebewert von poll beruecksichtigen.

- -

Definition at line 72 of file server.h.

- -
-
- -
-
- - - - -
char* Server::rbuf
-
-
- -

Definition at line 81 of file server.h.

- -
-
- -
-
- - - - -
void* Server::reader
-
-
- -

Definition at line 62 of file server.h.

- -
-
- -
-
- - - - -
unsigned int Server::rpos
-
-
- -

Definition at line 82 of file server.h.

- -
-
- -
-
- - - - -
Sock Server::sock
-
-
- -

Definition at line 61 of file server.h.

- -
-
- -
-
- - - - -
char Server::wbuf[2048]
-
-
- -

Definition at line 80 of file server.h.

- -
-
- -
-
- - - - -
unsigned int Server::wpos
-
-
- -

Definition at line 83 of file server.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structServer__coll__graph.map b/docs/html/structServer__coll__graph.map deleted file mode 100644 index fa84913..0000000 --- a/docs/html/structServer__coll__graph.map +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/docs/html/structServer__coll__graph.md5 b/docs/html/structServer__coll__graph.md5 deleted file mode 100644 index 2f3839d..0000000 --- a/docs/html/structServer__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -502aed3e17470956fc544249031f8768 \ No newline at end of file diff --git a/docs/html/structServer__coll__graph.png b/docs/html/structServer__coll__graph.png deleted file mode 100644 index 8568c72..0000000 Binary files a/docs/html/structServer__coll__graph.png and /dev/null differ diff --git a/docs/html/structSock-members.html b/docs/html/structSock-members.html deleted file mode 100644 index bffc936..0000000 --- a/docs/html/structSock-members.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

Sock Member List

-
-
-This is the complete list of members for Sock, including all inherited members. - - - -
handleSock
logSock
portSock
-
- - - - - -
- -
- - - - diff --git a/docs/html/structSock.html b/docs/html/structSock.html deleted file mode 100644 index 3aaa72c..0000000 --- a/docs/html/structSock.html +++ /dev/null @@ -1,183 +0,0 @@ - - - - -server: Sock Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

Sock Struct Reference

-
-
- -

#include <socket.h>

-
-Collaboration diagram for Sock:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - -

-Public Attributes

Logger log
in_port_t port
int handle
-

Detailed Description

-
-

Definition at line 9 of file socket.h.

-

Member Data Documentation

- -
-
- - - - -
int Sock::handle
-
-
- -

Definition at line 29 of file socket.h.

- -
-
- -
-
- - - - -
Logger Sock::log
-
-
- -

Definition at line 26 of file socket.h.

- -
-
- -
-
- - - - -
in_port_t Sock::port
-
-
- -

Definition at line 27 of file socket.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structSock__coll__graph.map b/docs/html/structSock__coll__graph.map deleted file mode 100644 index ab12394..0000000 --- a/docs/html/structSock__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structSock__coll__graph.md5 b/docs/html/structSock__coll__graph.md5 deleted file mode 100644 index fe6f674..0000000 --- a/docs/html/structSock__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -6470cafe03b7c0829d96bf9dd7ebb44f \ No newline at end of file diff --git a/docs/html/structSock__coll__graph.png b/docs/html/structSock__coll__graph.png deleted file mode 100644 index 1bde024..0000000 Binary files a/docs/html/structSock__coll__graph.png and /dev/null differ diff --git a/docs/html/structclass-members.html b/docs/html/structclass-members.html deleted file mode 100644 index 3fcc712..0000000 --- a/docs/html/structclass-members.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

class Member List

-
-
-This is the complete list of members for class, including all inherited members. - - - - -
initclass
magicclass
object_sizeclass
parentclass
-
- - - - - -
- -
- - - - diff --git a/docs/html/structclass.html b/docs/html/structclass.html deleted file mode 100644 index 3876346..0000000 --- a/docs/html/structclass.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - -server: class Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

class Struct Reference

-
-
- -

#include <class.h>

-
-Collaboration diagram for class:
-
-
Collaboration graph
-
[legend]
- -

List of all members.

- - - - - - -

-Public Attributes

const int magic
class_ptr parent
size_t object_size
fptr_classInit init
-

Detailed Description

-
-

Definition at line 77 of file class.h.

-

Member Data Documentation

- -
- -
- -

Definition at line 81 of file class.h.

- -
-
- -
-
- - - - -
const int class::magic
-
-
- -

Definition at line 78 of file class.h.

- -
-
- -
-
- - - - -
size_t class::object_size
-
-
- -

Definition at line 80 of file class.h.

- -
-
- -
- -
- -

Definition at line 79 of file class.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structclass__coll__graph.map b/docs/html/structclass__coll__graph.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/structclass__coll__graph.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/structclass__coll__graph.md5 b/docs/html/structclass__coll__graph.md5 deleted file mode 100644 index d3a7d75..0000000 --- a/docs/html/structclass__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -cfe38766fa447080e8b0ee009f97dda1 \ No newline at end of file diff --git a/docs/html/structclass__coll__graph.png b/docs/html/structclass__coll__graph.png deleted file mode 100644 index a2b6b89..0000000 Binary files a/docs/html/structclass__coll__graph.png and /dev/null differ diff --git a/docs/html/structi__Class-members.html b/docs/html/structi__Class-members.html deleted file mode 100644 index 82fa314..0000000 --- a/docs/html/structi__Class-members.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

i_Class Member List

-
-
-This is the complete list of members for i_Class, including all inherited members. - - - - -
_i_Class
clonei_Class
ctori_Class
dtori_Class
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__Class.html b/docs/html/structi__Class.html deleted file mode 100644 index 5fad7eb..0000000 --- a/docs/html/structi__Class.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - -server: i_Class Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

i_Class Struct Reference

-
-
- -

#include <class.h>

-
-Collaboration diagram for i_Class:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - - - -

-Public Attributes

struct interface *const _
fptr_ctor ctor
fptr_dtor dtor
fptr_clone clone
-

Detailed Description

-
-

Definition at line 15 of file class.h.

-

Member Data Documentation

- -
-
- - - - -
struct interface* const i_Class::_
-
-
- -

Definition at line 16 of file class.h.

- -
-
- -
- -
- -

Definition at line 19 of file class.h.

- -
-
- -
- -
- -

Definition at line 17 of file class.h.

- -
-
- -
- -
- -

Definition at line 18 of file class.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__Class__coll__graph.map b/docs/html/structi__Class__coll__graph.map deleted file mode 100644 index 20a5b89..0000000 --- a/docs/html/structi__Class__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structi__Class__coll__graph.md5 b/docs/html/structi__Class__coll__graph.md5 deleted file mode 100644 index 5edad58..0000000 --- a/docs/html/structi__Class__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -71dfb0e4a9fbabe8867117a275509a55 \ No newline at end of file diff --git a/docs/html/structi__Class__coll__graph.png b/docs/html/structi__Class__coll__graph.png deleted file mode 100644 index c4505ac..0000000 Binary files a/docs/html/structi__Class__coll__graph.png and /dev/null differ diff --git a/docs/html/structi__Logger-members.html b/docs/html/structi__Logger-members.html deleted file mode 100644 index f0d4358..0000000 --- a/docs/html/structi__Logger-members.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

i_Logger Member List

-
-
-This is the complete list of members for i_Logger, including all inherited members. - - -
_i_Logger
logi_Logger
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__Logger.html b/docs/html/structi__Logger.html deleted file mode 100644 index 5f6d641..0000000 --- a/docs/html/structi__Logger.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -server: i_Logger Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

i_Logger Struct Reference

-
-
- -

#include <logger.h>

-
-Collaboration diagram for i_Logger:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - -

-Public Attributes

struct interface *const _
fptr_log log
-

Detailed Description

-
-

Definition at line 13 of file logger.h.

-

Member Data Documentation

- -
-
- - - - -
struct interface* const i_Logger::_
-
-
- -

Definition at line 14 of file logger.h.

- -
-
- -
-
- - - - -
fptr_log i_Logger::log
-
-
- -

Definition at line 15 of file logger.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__Logger__coll__graph.map b/docs/html/structi__Logger__coll__graph.map deleted file mode 100644 index 20a5b89..0000000 --- a/docs/html/structi__Logger__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structi__Logger__coll__graph.md5 b/docs/html/structi__Logger__coll__graph.md5 deleted file mode 100644 index 8da8ddd..0000000 --- a/docs/html/structi__Logger__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -c38324069e4681b971b9142640e73015 \ No newline at end of file diff --git a/docs/html/structi__Logger__coll__graph.png b/docs/html/structi__Logger__coll__graph.png deleted file mode 100644 index f63b1a7..0000000 Binary files a/docs/html/structi__Logger__coll__graph.png and /dev/null differ diff --git a/docs/html/structi__StreamReader-members.html b/docs/html/structi__StreamReader-members.html deleted file mode 100644 index 5bae492..0000000 --- a/docs/html/structi__StreamReader-members.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

i_StreamReader Member List

-
-
-This is the complete list of members for i_StreamReader, including all inherited members. - - -
_i_StreamReader
readi_StreamReader
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__StreamReader.html b/docs/html/structi__StreamReader.html deleted file mode 100644 index 85a8536..0000000 --- a/docs/html/structi__StreamReader.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - -server: i_StreamReader Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

i_StreamReader Struct Reference

-
-
- -

#include <stream_reader.h>

-
-Collaboration diagram for i_StreamReader:
-
-
Collaboration graph
- - -
[legend]
- -

List of all members.

- - - - -

-Public Attributes

struct interface *const _
fptr_streamReaderRead read
-

Detailed Description

-
-

Definition at line 10 of file stream_reader.h.

-

Member Data Documentation

- -
-
- - - - -
struct interface* const i_StreamReader::_
-
-
- -

Definition at line 11 of file stream_reader.h.

- -
-
- -
- -
- -

Definition at line 12 of file stream_reader.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structi__StreamReader__coll__graph.map b/docs/html/structi__StreamReader__coll__graph.map deleted file mode 100644 index 1fe8984..0000000 --- a/docs/html/structi__StreamReader__coll__graph.map +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/docs/html/structi__StreamReader__coll__graph.md5 b/docs/html/structi__StreamReader__coll__graph.md5 deleted file mode 100644 index 4374504..0000000 --- a/docs/html/structi__StreamReader__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -913fb486afb7b429b609ad386b347751 \ No newline at end of file diff --git a/docs/html/structi__StreamReader__coll__graph.png b/docs/html/structi__StreamReader__coll__graph.png deleted file mode 100644 index 61e7b4b..0000000 Binary files a/docs/html/structi__StreamReader__coll__graph.png and /dev/null differ diff --git a/docs/html/structiface__impl-members.html b/docs/html/structiface__impl-members.html deleted file mode 100644 index 2a360ac..0000000 --- a/docs/html/structiface__impl-members.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

iface_impl Member List

-
-
-This is the complete list of members for iface_impl, including all inherited members. - - - -
impliface_impl
nimpliface_impl
simpliface_impl
-
- - - - - -
- -
- - - - diff --git a/docs/html/structiface__impl.html b/docs/html/structiface__impl.html deleted file mode 100644 index ecfb9c3..0000000 --- a/docs/html/structiface__impl.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - -server: iface_impl Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

iface_impl Struct Reference

-
-
- -

#include <interface.h>

- -

List of all members.

- - - - - -

-Public Attributes

const size_t nimpl
char simpl
const void * impl [MAX_IFACE]
-

Detailed Description

-
-

Definition at line 28 of file interface.h.

-

Member Data Documentation

- -
-
- - - - -
const void* iface_impl::impl[MAX_IFACE]
-
-
- -

Definition at line 31 of file interface.h.

- -
-
- -
-
- - - - -
const size_t iface_impl::nimpl
-
-
- -

Definition at line 29 of file interface.h.

- -
-
- -
-
- - - - -
char iface_impl::simpl
-
-
- -

Definition at line 30 of file interface.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/structinterface-members.html b/docs/html/structinterface-members.html deleted file mode 100644 index 2683b30..0000000 --- a/docs/html/structinterface-members.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - -server: Member List - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

interface Member List

-
-
-This is the complete list of members for interface, including all inherited members. - - -
nameinterface
nmethodsinterface
-
- - - - - -
- -
- - - - diff --git a/docs/html/structinterface.html b/docs/html/structinterface.html deleted file mode 100644 index 0e0d0b7..0000000 --- a/docs/html/structinterface.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - -server: interface Struct Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

interface Struct Reference

-
-
- -

#include <interface.h>

- -

List of all members.

- - - - -

-Public Attributes

const char * name
const size_t nmethods
-

Detailed Description

-
-

Definition at line 22 of file interface.h.

-

Member Data Documentation

- -
-
- - - - -
const char* interface::name
-
-
- -

Definition at line 23 of file interface.h.

- -
-
- -
-
- - - - -
const size_t interface::nmethods
-
-
- -

Definition at line 24 of file interface.h.

- -
-
-
The documentation for this struct was generated from the following file: -
-
- - - - - -
- -
- - - - diff --git a/docs/html/syslog_8c.html b/docs/html/syslog_8c.html deleted file mode 100644 index c8f88ce..0000000 --- a/docs/html/syslog_8c.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - -server: src/logger/syslog.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/logger/syslog.c File Reference

-
-
-
#include <syslog.h>
-#include "logger.h"
-#include "interface/logger.h"
-
-Include dependency graph for syslog.c:
-
-
-
-
-

Go to the source code of this file.

- - - - -

-Functions

 INIT_IFACE (Logger, logSyslog)
 CREATE_CLASS (LoggerSyslog, Logger, IFACE(Logger))
-

Function Documentation

- -
-
- - - - - - - - - - - - - - - - - - - - - - - - -
CREATE_CLASS (LoggerSyslog ,
Logger ,
IFACE(Logger 
)
-
-
- -
-
- -
-
- - - - - - - - - - - - - - - - - - -
INIT_IFACE (Logger ,
logSyslog  
)
-
-
- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/syslog_8c__incl.map b/docs/html/syslog_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/syslog_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/syslog_8c__incl.md5 b/docs/html/syslog_8c__incl.md5 deleted file mode 100644 index 06be950..0000000 --- a/docs/html/syslog_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -e0d1e341f19b834baa7a71a9cc09b41d \ No newline at end of file diff --git a/docs/html/syslog_8c__incl.png b/docs/html/syslog_8c__incl.png deleted file mode 100644 index 24d01e1..0000000 Binary files a/docs/html/syslog_8c__incl.png and /dev/null differ diff --git a/docs/html/syslog_8c_source.html b/docs/html/syslog_8c_source.html deleted file mode 100644 index eaf5da9..0000000 --- a/docs/html/syslog_8c_source.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - -server: src/logger/syslog.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/logger/syslog.c

-
-
-Go to the documentation of this file.
00001 #include <syslog.h>
-00002 
-00003 #include "logger.h"
-00004 #include "interface/logger.h"
-00005 
-00006 static
-00007 const
-00008 int syslog_priority[] = {
-00009     LOG_USER | LOG_DEBUG,
-00010     LOG_USER | LOG_INFO,
-00011     LOG_USER | LOG_NOTICE,
-00012     LOG_USER | LOG_WARNING,
-00013     LOG_USER | LOG_ERR,
-00014     LOG_USER | LOG_CRIT,
-00015     LOG_USER | LOG_ALERT,
-00016     LOG_USER | LOG_EMERG
-00017 };
-00018 
-00019 static
-00020 void
-00021 logSyslog(void * this, logger_level level, const char * const msg)
-00022 {
-00023     syslog(syslog_priority[level], "[%s] %s", logger_level_str[level], msg);
-00024 }
-00025 
-00026 INIT_IFACE(Logger, logSyslog);
-00027 CREATE_CLASS(LoggerSyslog, Logger, IFACE(Logger));
-00028 
-00029 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/tab_a.png b/docs/html/tab_a.png deleted file mode 100644 index 2d99ef2..0000000 Binary files a/docs/html/tab_a.png and /dev/null differ diff --git a/docs/html/tab_b.png b/docs/html/tab_b.png deleted file mode 100644 index b2c3d2b..0000000 Binary files a/docs/html/tab_b.png and /dev/null differ diff --git a/docs/html/tab_h.png b/docs/html/tab_h.png deleted file mode 100644 index c11f48f..0000000 Binary files a/docs/html/tab_h.png and /dev/null differ diff --git a/docs/html/tab_s.png b/docs/html/tab_s.png deleted file mode 100644 index 978943a..0000000 Binary files a/docs/html/tab_s.png and /dev/null differ diff --git a/docs/html/tabs.css b/docs/html/tabs.css deleted file mode 100644 index 2192056..0000000 --- a/docs/html/tabs.css +++ /dev/null @@ -1,59 +0,0 @@ -.tabs, .tabs2, .tabs3 { - background-image: url('tab_b.png'); - width: 100%; - z-index: 101; - font-size: 13px; -} - -.tabs2 { - font-size: 10px; -} -.tabs3 { - font-size: 9px; -} - -.tablist { - margin: 0; - padding: 0; - display: table; -} - -.tablist li { - float: left; - display: table-cell; - background-image: url('tab_b.png'); - line-height: 36px; - list-style: none; -} - -.tablist a { - display: block; - padding: 0 20px; - font-weight: bold; - background-image:url('tab_s.png'); - background-repeat:no-repeat; - background-position:right; - color: #283A5D; - text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); - text-decoration: none; - outline: none; -} - -.tabs3 .tablist a { - padding: 0 10px; -} - -.tablist a:hover { - background-image: url('tab_h.png'); - background-repeat:repeat-x; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); - text-decoration: none; -} - -.tablist li.current a { - background-image: url('tab_a.png'); - background-repeat:repeat-x; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); -} diff --git a/docs/html/testserver_8c.html b/docs/html/testserver_8c.html deleted file mode 100644 index b285057..0000000 --- a/docs/html/testserver_8c.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - -server: src/testserver.c File Reference - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
- -
-

src/testserver.c File Reference

-
-
-
#include <stdio.h>
-#include <socket.h>
-#include <string.h>
-#include "server.h"
-#include "logger.h"
-#include "http/request_parser.h"
-#include "signalHandling.h"
-#include "interface/class.h"
-
-Include dependency graph for testserver.c:
-
-
-
-
-

Go to the source code of this file.

- - - -

-Functions

int main ()
-

Function Documentation

- -
-
- - - - - - - -
int main ()
-
-
- -

Definition at line 14 of file testserver.c.

-
{
-        Logger            logger = new(LoggerStderr, LOGGER_ERR);
-        HttpRequestParser parser = new(HttpRequestParser);
-        Server            server = new(Server, logger, parser, 11212, SOMAXCONN);
-        //Server            server = new(Server, logger, parser, 11212, 20);
-
-        init_signals();
-        serverRun(server);
-
-        delete(&server);
-        delete(&logger);
-        delete(&parser);
-
-        return 0;
-}
-
-

-Here is the call graph for this function:
-
-
- - -
-

- -
-
-
-
- - - - - -
- -
- - - - diff --git a/docs/html/testserver_8c__incl.map b/docs/html/testserver_8c__incl.map deleted file mode 100644 index 8be6a30..0000000 --- a/docs/html/testserver_8c__incl.map +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/docs/html/testserver_8c__incl.md5 b/docs/html/testserver_8c__incl.md5 deleted file mode 100644 index d5c11e9..0000000 --- a/docs/html/testserver_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -8688f87e920ceb1680eb04bbc589ac2e \ No newline at end of file diff --git a/docs/html/testserver_8c__incl.png b/docs/html/testserver_8c__incl.png deleted file mode 100644 index 5a32e86..0000000 Binary files a/docs/html/testserver_8c__incl.png and /dev/null differ diff --git a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map b/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map deleted file mode 100644 index d42047b..0000000 --- a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 b/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 deleted file mode 100644 index 0bb1b99..0000000 --- a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -13bd7eb33e05d633c1ace99188c41a6f \ No newline at end of file diff --git a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.png b/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.png deleted file mode 100644 index 0c8bde4..0000000 Binary files a/docs/html/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.png and /dev/null differ diff --git a/docs/html/testserver_8c_source.html b/docs/html/testserver_8c_source.html deleted file mode 100644 index 31b531c..0000000 --- a/docs/html/testserver_8c_source.html +++ /dev/null @@ -1,141 +0,0 @@ - - - - -server: src/testserver.c Source File - - - - - - - - - - - - - -
-
- - - - - - -
-
server 0.0.1
-
basicserverinfrastructure
-
-
- - -
-
- -
-
-
- -
-
-
-

src/testserver.c

-
-
-Go to the documentation of this file.
00001 #include <stdio.h>
-00002 #include <socket.h>
-00003 #include <string.h>
-00004 
-00005 #include "server.h"
-00006 #include "logger.h"
-00007 #include "http/request_parser.h"
-00008 
-00009 #include "signalHandling.h"
-00010 
-00011 #include "interface/class.h"
-00012 
-00013 int
-00014 main()
-00015 {
-00016         Logger            logger = new(LoggerStderr, LOGGER_ERR);
-00017         HttpRequestParser parser = new(HttpRequestParser);
-00018         Server            server = new(Server, logger, parser, 11212, SOMAXCONN);
-00019         //Server            server = new(Server, logger, parser, 11212, 20);
-00020 
-00021         init_signals();
-00022         serverRun(server);
-00023 
-00024         delete(&server);
-00025         delete(&logger);
-00026         delete(&parser);
-00027 
-00028         return 0;
-00029 }
-00030 
-00031 // vim: set ts=4 sw=4:
-
-
- - - - - -
- -
- - - - diff --git a/docs/latex/Makefile b/docs/latex/Makefile deleted file mode 100644 index 8b7c89a..0000000 --- a/docs/latex/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -all: clean refman.pdf - -pdf: refman.pdf - -refman.pdf: refman.tex - pdflatex refman.tex - makeindex refman.idx - pdflatex refman.tex - latex_count=5 ; \ - while egrep -s 'Rerun (LaTeX|to get cross-references right)' refman.log && [ $$latex_count -gt 0 ] ;\ - do \ - echo "Rerunning latex...." ;\ - pdflatex refman.tex ;\ - latex_count=`expr $$latex_count - 1` ;\ - done - - -clean: - rm -f *.ps *.dvi *.aux *.toc *.idx *.ind *.ilg *.log *.out refman.pdf diff --git a/docs/latex/accept_8c.tex b/docs/latex/accept_8c.tex deleted file mode 100644 index 6f4ce2e..0000000 --- a/docs/latex/accept_8c.tex +++ /dev/null @@ -1,69 +0,0 @@ -\hypertarget{accept_8c}{ -\section{src/socket/accept.c File Reference} -\label{accept_8c}\index{src/socket/accept.c@{src/socket/accept.c}} -} -{\ttfamily \#include $<$errno.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for accept.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{structSock}{Sock} \hyperlink{accept_8c_a46aa6b495ccf752e844f93bf46c9edd6}{socketAccept} (\hyperlink{structSock}{Sock} this, char remoteAddr\mbox{[}16\mbox{]}) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{accept_8c_a46aa6b495ccf752e844f93bf46c9edd6}{ -\index{accept.c@{accept.c}!socketAccept@{socketAccept}} -\index{socketAccept@{socketAccept}!accept.c@{accept.c}} -\subsubsection[{socketAccept}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Sock} socketAccept ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{char}]{remoteAddr\mbox{[}16\mbox{]}} -\end{DoxyParamCaption} -)}} -\label{accept_8c_a46aa6b495ccf752e844f93bf46c9edd6} - - -: Uhh, this is bad. we open a new socket additionally to the one we get from the accept call. i have to change the socket constructor to be able to create the data structure without creation of a socket at all. For now i simply close the socket here.... :D - -: change port to remote port on success - - - -Definition at line 9 of file accept.c. - - -\begin{DoxyCode} -{ - Sock sock; /* Socket for client */ - unsigned int len; /* Length of client address data structure */ - - /* Set the size of the in-out parameter */ - len = sizeof(this->addr); - - sock = new(Sock, this->log, this->port); - close(sock->handle); - /* Wait for a client to connect */ - sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len); - - if (-1 == sock->handle) { - loggerLog(this->log, LOGGER_WARNING, - "error accepting connection: %s", strerror(errno)); - } else { - loggerLog(this->log, LOGGER_INFO, - "handling client %s\n", inet_ntoa((sock->addr).si - n_addr)); - } - - return sock; -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/accept_8c__incl.dot b/docs/latex/accept_8c__incl.dot deleted file mode 100644 index f6306b1..0000000 --- a/docs/latex/accept_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/socket/accept.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="errno.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/accept_8c__incl.md5 b/docs/latex/accept_8c__incl.md5 deleted file mode 100644 index 497d4fe..0000000 --- a/docs/latex/accept_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -fde41efb8dc00cab5cb2d1abd1282b58 \ No newline at end of file diff --git a/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot b/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot deleted file mode 100644 index 8db5343..0000000 --- a/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketAccept",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 b/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 deleted file mode 100644 index 30c94d1..0000000 --- a/docs/latex/accept_8c_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -a87e97e5a05cbb8f89e4bc27d3257053 \ No newline at end of file diff --git a/docs/latex/annotated.tex b/docs/latex/annotated.tex deleted file mode 100644 index 2261788..0000000 --- a/docs/latex/annotated.tex +++ /dev/null @@ -1,19 +0,0 @@ -\section{Class List} -Here are the classes, structs, unions and interfaces with brief descriptions:\begin{DoxyCompactList} -\item\contentsline{section}{\hyperlink{structclass}{class} }{\pageref{structclass}}{} -\item\contentsline{section}{\hyperlink{structHttpHeader}{HttpHeader} }{\pageref{structHttpHeader}}{} -\item\contentsline{section}{\hyperlink{structHttpRequest}{HttpRequest} }{\pageref{structHttpRequest}}{} -\item\contentsline{section}{\hyperlink{structHttpRequestParser}{HttpRequestParser} }{\pageref{structHttpRequestParser}}{} -\item\contentsline{section}{\hyperlink{structHttpRequestQueue}{HttpRequestQueue} }{\pageref{structHttpRequestQueue}}{} -\item\contentsline{section}{\hyperlink{structHttpResponse}{HttpResponse} }{\pageref{structHttpResponse}}{} -\item\contentsline{section}{\hyperlink{structi__Class}{i\_\-Class} }{\pageref{structi__Class}}{} -\item\contentsline{section}{\hyperlink{structi__Logger}{i\_\-Logger} }{\pageref{structi__Logger}}{} -\item\contentsline{section}{\hyperlink{structi__StreamReader}{i\_\-StreamReader} }{\pageref{structi__StreamReader}}{} -\item\contentsline{section}{\hyperlink{structiface__impl}{iface\_\-impl} }{\pageref{structiface__impl}}{} -\item\contentsline{section}{\hyperlink{structinterface}{interface} }{\pageref{structinterface}}{} -\item\contentsline{section}{\hyperlink{structLogger}{Logger} }{\pageref{structLogger}}{} -\item\contentsline{section}{\hyperlink{structLoggerStderr}{LoggerStderr} }{\pageref{structLoggerStderr}}{} -\item\contentsline{section}{\hyperlink{structLoggerSyslog}{LoggerSyslog} }{\pageref{structLoggerSyslog}}{} -\item\contentsline{section}{\hyperlink{structServer}{Server} }{\pageref{structServer}}{} -\item\contentsline{section}{\hyperlink{structSock}{Sock} }{\pageref{structSock}}{} -\end{DoxyCompactList} diff --git a/docs/latex/class_8c.tex b/docs/latex/class_8c.tex deleted file mode 100644 index 9c04af3..0000000 --- a/docs/latex/class_8c.tex +++ /dev/null @@ -1,70 +0,0 @@ -\hypertarget{class_8c}{ -\section{src/class.c File Reference} -\label{class_8c}\index{src/class.c@{src/class.c}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface.h\char`\"{}}\par -Include dependency graph for class.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void $\ast$ \hyperlink{class_8c_a30ee53043e30a6f7517952a07b9dad83}{class\_\-getInterface} (\hyperlink{structclass}{class\_\-ptr} $\ast$\hyperlink{structclass}{class}, \hyperlink{structinterface}{iface\_\-ptr} \_\-iface) -\item -\hyperlink{structclass}{class\_\-ptr} \hyperlink{class_8c_a4571582148d8bd8a9387e89843e1904a}{class\_\-getClass} (void $\ast$object) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{class_8c_a4571582148d8bd8a9387e89843e1904a}{ -\index{class.c@{class.c}!class\_\-getClass@{class\_\-getClass}} -\index{class\_\-getClass@{class\_\-getClass}!class.c@{class.c}} -\subsubsection[{class\_\-getClass}]{\setlength{\rightskip}{0pt plus 5cm}{\bf class\_\-ptr} class\_\-getClass ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{object} -\end{DoxyParamCaption} -)}} -\label{class_8c_a4571582148d8bd8a9387e89843e1904a} - - -Definition at line 21 of file class.c. - - -\begin{DoxyCode} -{ - return *(class_ptr *)(object - sizeof(void*)); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - -\hypertarget{class_8c_a30ee53043e30a6f7517952a07b9dad83}{ -\index{class.c@{class.c}!class\_\-getInterface@{class\_\-getInterface}} -\index{class\_\-getInterface@{class\_\-getInterface}!class.c@{class.c}} -\subsubsection[{class\_\-getInterface}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ class\_\-getInterface ( -\begin{DoxyParamCaption} -\item[{{\bf class\_\-ptr} $\ast$}]{class, } -\item[{{\bf iface\_\-ptr}}]{\_\-iface} -\end{DoxyParamCaption} -)}} -\label{class_8c_a30ee53043e30a6f7517952a07b9dad83} - - -Definition at line 8 of file class.c. - - -\begin{DoxyCode} -{ - void * iface = (void *)IFACE_GET(*class, _iface); - - while(NULL == iface && HAS_PARENT(*class)) { - *class = (*class)->parent; - iface = (void *)IFACE_GET(*class, _iface); - } - - return iface; -} -\end{DoxyCode} diff --git a/docs/latex/class_8c__incl.dot b/docs/latex/class_8c__incl.dot deleted file mode 100644 index af193e4..0000000 --- a/docs/latex/class_8c__incl.dot +++ /dev/null @@ -1,15 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/class.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/class_8c__incl.md5 b/docs/latex/class_8c__incl.md5 deleted file mode 100644 index 3bd0211..0000000 --- a/docs/latex/class_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -1922e487506377dd7f0f97faac6a74d4 \ No newline at end of file diff --git a/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.dot b/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.dot deleted file mode 100644 index de9064a..0000000 --- a/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="class_getClass",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="classClone",height=0.2,width=0.4,color="black",URL="$interface_2class_8c.html#ada46f0179448063a30f6f219270bf1e0"]; -} diff --git a/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 b/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 deleted file mode 100644 index 4fd005c..0000000 --- a/docs/latex/class_8c_a4571582148d8bd8a9387e89843e1904a_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e3784e6b850239e78fddc5ad8dd02142 \ No newline at end of file diff --git a/docs/latex/class_8h.tex b/docs/latex/class_8h.tex deleted file mode 100644 index 142ac5f..0000000 --- a/docs/latex/class_8h.tex +++ /dev/null @@ -1,350 +0,0 @@ -\hypertarget{class_8h}{ -\section{include/class.h File Reference} -\label{class_8h}\index{include/class.h@{include/class.h}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include $<$sys/types.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$assert.h$>$}\par -{\ttfamily \#include \char`\"{}interface.h\char`\"{}}\par -Include dependency graph for class.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structclass}{class} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{class_8h_a04ec2c53aa9fcdb5b58dc8e9d552dec0}{\_\-ISOC99\_\-SOURCE} -\item -\#define \hyperlink{class_8h_a28c4c4c1ebf62795262a3553d59e8bff}{CLASS\_\-MAGIC}~0xFEFE -\item -\#define \hyperlink{class_8h_ab12c2142e0ec3f4f19a03b3879c67f32}{CLASS}(name) -\item -\#define \hyperlink{class_8h_a45e588b871b5b73461805ab4a5c59aa5}{EXTENDS}(parent)~const char \_\-\mbox{[}sizeof(struct c\_\-\#\#parent)\mbox{]} -\item -\#define \hyperlink{class_8h_ab9f9098d95379c04d979721396dabf68}{\_\-NULL}~NULL -\item -\#define \hyperlink{class_8h_a509b4880afb25bb862c448d7a71e7afe}{CREATE\_\-CLASS}(name, \_\-parent,...) -\item -\#define \hyperlink{class_8h_a2e9a0b177e4115cc7e547b51ac35c5af}{\_\-CALL}(object, \_\-iface, method,...) -\item -\#define \hyperlink{class_8h_ada752d9d1fdbf84e978606e8999c762d}{CALL}(object, \_\-iface, method,...) -\item -\#define \hyperlink{class_8h_a06fb0f2e08d1cbacbed6784319e7c3fc}{RETCALL}(object, \_\-iface, method, ret,...) -\item -\#define \hyperlink{class_8h_adb99542d8748b5108322ccb26bb367e0}{IFACE\_\-GET}(\hyperlink{structclass}{class}, iface)~(interfaceGet(\&((\hyperlink{structclass}{class})-\/$>$impl),(iface))) -\item -\#define \hyperlink{class_8h_a80e924aca338b869530dde0a9389e916}{IFACE\_\-EXISTS}(\hyperlink{structclass}{class}, iface)~(NULL != IFACE\_\-GET((\hyperlink{structclass}{class}),(iface))) -\item -\#define \hyperlink{class_8h_a5ea9893a0e62748b9d1154d5b77abed1}{HAS\_\-PARENT}(\hyperlink{structclass}{class})~(NULL != ((\hyperlink{structclass}{class})-\/$>$parent)) -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef void($\ast$ \hyperlink{class_8h_aa0ba47bce818b20155a8ef17a1fdc35c}{fptr\_\-classInit} )(void) -\item -typedef struct \hyperlink{structclass}{class} $\ast$ \hyperlink{class_8h_a68df9f6e346c5fad9f61bb2557d1d832}{class\_\-ptr} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void $\ast$ \hyperlink{class_8h_ad96186de45579eb423ab318a5caaf62f}{class\_\-getInterface} (\hyperlink{structclass}{class\_\-ptr} $\ast$, \hyperlink{structinterface}{iface\_\-ptr}) -\item -\hyperlink{structclass}{class\_\-ptr} \hyperlink{class_8h_a1f382a42de272d5cc4d6bb5b17db6ede}{class\_\-getClass} (void $\ast$) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{class_8h_a2e9a0b177e4115cc7e547b51ac35c5af}{ -\index{class.h@{class.h}!\_\-CALL@{\_\-CALL}} -\index{\_\-CALL@{\_\-CALL}!class.h@{class.h}} -\subsubsection[{\_\-CALL}]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-CALL( -\begin{DoxyParamCaption} -\item[{}]{object, } -\item[{}]{\_\-iface, } -\item[{}]{method, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{class_8h_a2e9a0b177e4115cc7e547b51ac35c5af} -{\bfseries Value:} -\begin{DoxyCode} -class_ptr class = class_getClass((object)); \ - struct i_##_iface * iface; - \ - if (class->init) class->init(); - \ - iface = (struct i_##_iface *)class_getInterface(&class, &i_##_iface); - \ - while ((NULL == iface || NULL == iface->method) && HAS_PARENT(class)) { - \ - class = class->parent; - \ - if (class->init) class->init(); - \ - iface = (struct i_##_iface *)class_getInterface(&class, &i_##_ifa - ce); \ - }; - \ - assert(NULL != iface->method); -\end{DoxyCode} -: actually i use gcc feature \#\# for variadoc... think about a way to make this standard. - -Definition at line 43 of file class.h. - -\hypertarget{class_8h_a04ec2c53aa9fcdb5b58dc8e9d552dec0}{ -\index{class.h@{class.h}!\_\-ISOC99\_\-SOURCE@{\_\-ISOC99\_\-SOURCE}} -\index{\_\-ISOC99\_\-SOURCE@{\_\-ISOC99\_\-SOURCE}!class.h@{class.h}} -\subsubsection[{\_\-ISOC99\_\-SOURCE}]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-ISOC99\_\-SOURCE}} -\label{class_8h_a04ec2c53aa9fcdb5b58dc8e9d552dec0} - - -Definition at line 11 of file class.h. - -\hypertarget{class_8h_ab9f9098d95379c04d979721396dabf68}{ -\index{class.h@{class.h}!\_\-NULL@{\_\-NULL}} -\index{\_\-NULL@{\_\-NULL}!class.h@{class.h}} -\subsubsection[{\_\-NULL}]{\setlength{\rightskip}{0pt plus 5cm}\#define \_\-NULL~NULL}} -\label{class_8h_ab9f9098d95379c04d979721396dabf68} - - -Definition at line 24 of file class.h. - -\hypertarget{class_8h_ada752d9d1fdbf84e978606e8999c762d}{ -\index{class.h@{class.h}!CALL@{CALL}} -\index{CALL@{CALL}!class.h@{class.h}} -\subsubsection[{CALL}]{\setlength{\rightskip}{0pt plus 5cm}\#define CALL( -\begin{DoxyParamCaption} -\item[{}]{object, } -\item[{}]{\_\-iface, } -\item[{}]{method, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{class_8h_ada752d9d1fdbf84e978606e8999c762d} -{\bfseries Value:} -\begin{DoxyCode} -do { \ - _CALL(object, _iface, method, ##__VA_ARGS__); \ - iface->method(object, ##__VA_ARGS__); \ - } while(0) -\end{DoxyCode} - - -Definition at line 55 of file class.h. - -\hypertarget{class_8h_ab12c2142e0ec3f4f19a03b3879c67f32}{ -\index{class.h@{class.h}!CLASS@{CLASS}} -\index{CLASS@{CLASS}!class.h@{class.h}} -\subsubsection[{CLASS}]{\setlength{\rightskip}{0pt plus 5cm}\#define CLASS( -\begin{DoxyParamCaption} -\item[{}]{name} -\end{DoxyParamCaption} -)}} -\label{class_8h_ab12c2142e0ec3f4f19a03b3879c67f32} -{\bfseries Value:} -\begin{DoxyCode} -struct c_##name; \ - typedef struct c_##name * name; \ - extern struct class * const _##name; \ - struct c_##name -\end{DoxyCode} - - -Definition at line 15 of file class.h. - -\hypertarget{class_8h_a28c4c4c1ebf62795262a3553d59e8bff}{ -\index{class.h@{class.h}!CLASS\_\-MAGIC@{CLASS\_\-MAGIC}} -\index{CLASS\_\-MAGIC@{CLASS\_\-MAGIC}!class.h@{class.h}} -\subsubsection[{CLASS\_\-MAGIC}]{\setlength{\rightskip}{0pt plus 5cm}\#define CLASS\_\-MAGIC~0xFEFE}} -\label{class_8h_a28c4c4c1ebf62795262a3553d59e8bff} - - -Definition at line 13 of file class.h. - -\hypertarget{class_8h_a509b4880afb25bb862c448d7a71e7afe}{ -\index{class.h@{class.h}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!class.h@{class.h}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}\#define CREATE\_\-CLASS( -\begin{DoxyParamCaption} -\item[{}]{name, } -\item[{}]{\_\-parent, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{class_8h_a509b4880afb25bb862c448d7a71e7afe} -{\bfseries Value:} -\begin{DoxyCode} -static struct class c_##name; \ - static void _classInit_(void) { \ - c_##name.parent = _##_parent; \ - c_##name.init = NULL; \ - } \ - static struct class c_##name = { \ - CLASS_MAGIC, \ - NULL, \ - sizeof(struct c_##name), \ - _classInit_, \ - INIT_IMPL(__VA_ARGS__) \ - }; struct class * const _##name = &c_##name -\end{DoxyCode} - - -Definition at line 25 of file class.h. - -\hypertarget{class_8h_a45e588b871b5b73461805ab4a5c59aa5}{ -\index{class.h@{class.h}!EXTENDS@{EXTENDS}} -\index{EXTENDS@{EXTENDS}!class.h@{class.h}} -\subsubsection[{EXTENDS}]{\setlength{\rightskip}{0pt plus 5cm}\#define EXTENDS( -\begin{DoxyParamCaption} -\item[{}]{parent} -\end{DoxyParamCaption} -)~const char \_\-\mbox{[}sizeof(struct c\_\-\#\#parent)\mbox{]}}} -\label{class_8h_a45e588b871b5b73461805ab4a5c59aa5} - - -Definition at line 21 of file class.h. - -\hypertarget{class_8h_a5ea9893a0e62748b9d1154d5b77abed1}{ -\index{class.h@{class.h}!HAS\_\-PARENT@{HAS\_\-PARENT}} -\index{HAS\_\-PARENT@{HAS\_\-PARENT}!class.h@{class.h}} -\subsubsection[{HAS\_\-PARENT}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAS\_\-PARENT( -\begin{DoxyParamCaption} -\item[{}]{{\bf class}} -\end{DoxyParamCaption} -)~(NULL != (({\bf class})-\/$>$parent))}} -\label{class_8h_a5ea9893a0e62748b9d1154d5b77abed1} - - -Definition at line 71 of file class.h. - -\hypertarget{class_8h_a80e924aca338b869530dde0a9389e916}{ -\index{class.h@{class.h}!IFACE\_\-EXISTS@{IFACE\_\-EXISTS}} -\index{IFACE\_\-EXISTS@{IFACE\_\-EXISTS}!class.h@{class.h}} -\subsubsection[{IFACE\_\-EXISTS}]{\setlength{\rightskip}{0pt plus 5cm}\#define IFACE\_\-EXISTS( -\begin{DoxyParamCaption} -\item[{}]{{\bf class}, } -\item[{}]{iface} -\end{DoxyParamCaption} -)~(NULL != IFACE\_\-GET(({\bf class}),(iface)))}} -\label{class_8h_a80e924aca338b869530dde0a9389e916} - - -Definition at line 69 of file class.h. - -\hypertarget{class_8h_adb99542d8748b5108322ccb26bb367e0}{ -\index{class.h@{class.h}!IFACE\_\-GET@{IFACE\_\-GET}} -\index{IFACE\_\-GET@{IFACE\_\-GET}!class.h@{class.h}} -\subsubsection[{IFACE\_\-GET}]{\setlength{\rightskip}{0pt plus 5cm}\#define IFACE\_\-GET( -\begin{DoxyParamCaption} -\item[{}]{{\bf class}, } -\item[{}]{iface} -\end{DoxyParamCaption} -)~(interfaceGet(\&(({\bf class})-\/$>$impl),(iface)))}} -\label{class_8h_adb99542d8748b5108322ccb26bb367e0} - - -Definition at line 68 of file class.h. - -\hypertarget{class_8h_a06fb0f2e08d1cbacbed6784319e7c3fc}{ -\index{class.h@{class.h}!RETCALL@{RETCALL}} -\index{RETCALL@{RETCALL}!class.h@{class.h}} -\subsubsection[{RETCALL}]{\setlength{\rightskip}{0pt plus 5cm}\#define RETCALL( -\begin{DoxyParamCaption} -\item[{}]{object, } -\item[{}]{\_\-iface, } -\item[{}]{method, } -\item[{}]{ret, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{class_8h_a06fb0f2e08d1cbacbed6784319e7c3fc} -{\bfseries Value:} -\begin{DoxyCode} -do { \ - _CALL(object, _iface, method, ##__VA_ARGS__); \ - ret = iface->method(object, ##__VA_ARGS__); \ - } while(0) -\end{DoxyCode} - - -Definition at line 61 of file class.h. - - - -\subsection{Typedef Documentation} -\hypertarget{class_8h_a68df9f6e346c5fad9f61bb2557d1d832}{ -\index{class.h@{class.h}!class\_\-ptr@{class\_\-ptr}} -\index{class\_\-ptr@{class\_\-ptr}!class.h@{class.h}} -\subsubsection[{class\_\-ptr}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf class}$\ast$ {\bf class\_\-ptr}}} -\label{class_8h_a68df9f6e346c5fad9f61bb2557d1d832} - - -Definition at line 76 of file class.h. - -\hypertarget{class_8h_aa0ba47bce818b20155a8ef17a1fdc35c}{ -\index{class.h@{class.h}!fptr\_\-classInit@{fptr\_\-classInit}} -\index{fptr\_\-classInit@{fptr\_\-classInit}!class.h@{class.h}} -\subsubsection[{fptr\_\-classInit}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf fptr\_\-classInit})(void)}} -\label{class_8h_aa0ba47bce818b20155a8ef17a1fdc35c} - - -Definition at line 73 of file class.h. - - - -\subsection{Function Documentation} -\hypertarget{class_8h_a1f382a42de272d5cc4d6bb5b17db6ede}{ -\index{class.h@{class.h}!class\_\-getClass@{class\_\-getClass}} -\index{class\_\-getClass@{class\_\-getClass}!class.h@{class.h}} -\subsubsection[{class\_\-getClass}]{\setlength{\rightskip}{0pt plus 5cm}{\bf class\_\-ptr} class\_\-getClass ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{} -\end{DoxyParamCaption} -)}} -\label{class_8h_a1f382a42de272d5cc4d6bb5b17db6ede} - - -Definition at line 21 of file class.c. - - -\begin{DoxyCode} -{ - return *(class_ptr *)(object - sizeof(void*)); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - -\hypertarget{class_8h_ad96186de45579eb423ab318a5caaf62f}{ -\index{class.h@{class.h}!class\_\-getInterface@{class\_\-getInterface}} -\index{class\_\-getInterface@{class\_\-getInterface}!class.h@{class.h}} -\subsubsection[{class\_\-getInterface}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ class\_\-getInterface ( -\begin{DoxyParamCaption} -\item[{{\bf class\_\-ptr} $\ast$}]{, } -\item[{{\bf iface\_\-ptr}}]{} -\end{DoxyParamCaption} -)}} -\label{class_8h_ad96186de45579eb423ab318a5caaf62f} - - -Definition at line 8 of file class.c. - - -\begin{DoxyCode} -{ - void * iface = (void *)IFACE_GET(*class, _iface); - - while(NULL == iface && HAS_PARENT(*class)) { - *class = (*class)->parent; - iface = (void *)IFACE_GET(*class, _iface); - } - - return iface; -} -\end{DoxyCode} diff --git a/docs/latex/class_8h__dep__incl.dot b/docs/latex/class_8h__dep__incl.dot deleted file mode 100644 index c3d7206..0000000 --- a/docs/latex/class_8h__dep__incl.dot +++ /dev/null @@ -1,16 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/class.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="include/logger.h",height=0.2,width=0.4,color="black",URL="$logger_8h.html"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="include/socket.h",height=0.2,width=0.4,color="black",URL="$socket_8h.html"]; - Node3 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="include/server.h",height=0.2,width=0.4,color="black",URL="$server_8h.html"]; - Node2 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/class_8h__dep__incl.md5 b/docs/latex/class_8h__dep__incl.md5 deleted file mode 100644 index 1432a9c..0000000 --- a/docs/latex/class_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -743c0f1a4db49d95196986108d4026e8 \ No newline at end of file diff --git a/docs/latex/class_8h__incl.dot b/docs/latex/class_8h__incl.dot deleted file mode 100644 index 45ad351..0000000 --- a/docs/latex/class_8h__incl.dot +++ /dev/null @@ -1,18 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/class.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="assert.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface.h",height=0.2,width=0.4,color="black",URL="$interface_8h.html"]; - Node6 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/class_8h__incl.md5 b/docs/latex/class_8h__incl.md5 deleted file mode 100644 index 6fc0b0b..0000000 --- a/docs/latex/class_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -e55fd9b295617946e63f2ab649c73115 \ No newline at end of file diff --git a/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.dot b/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.dot deleted file mode 100644 index de9064a..0000000 --- a/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="class_getClass",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="classClone",height=0.2,width=0.4,color="black",URL="$interface_2class_8c.html#ada46f0179448063a30f6f219270bf1e0"]; -} diff --git a/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 b/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 deleted file mode 100644 index 4fd005c..0000000 --- a/docs/latex/class_8h_a1f382a42de272d5cc4d6bb5b17db6ede_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e3784e6b850239e78fddc5ad8dd02142 \ No newline at end of file diff --git a/docs/latex/close__conn_8c.tex b/docs/latex/close__conn_8c.tex deleted file mode 100644 index d937ee6..0000000 --- a/docs/latex/close__conn_8c.tex +++ /dev/null @@ -1,51 +0,0 @@ -\hypertarget{close__conn_8c}{ -\section{src/server/close\_\-conn.c File Reference} -\label{close__conn_8c}\index{src/server/close\_\-conn.c@{src/server/close\_\-conn.c}} -} -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -Include dependency graph for close\_\-conn.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266}{serverCloseConn} (\hyperlink{structServer}{Server} this, unsigned int i) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266}{ -\index{close\_\-conn.c@{close\_\-conn.c}!serverCloseConn@{serverCloseConn}} -\index{serverCloseConn@{serverCloseConn}!close_conn.c@{close\_\-conn.c}} -\subsubsection[{serverCloseConn}]{\setlength{\rightskip}{0pt plus 5cm}void serverCloseConn ( -\begin{DoxyParamCaption} -\item[{{\bf Server}}]{this, } -\item[{unsigned int}]{i} -\end{DoxyParamCaption} -)}} -\label{close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266} - - -Definition at line 7 of file close\_\-conn.c. - - -\begin{DoxyCode} -{ - int fd = (this->fds)[i].fd; - - delete(&((this->conns)[fd].sock)); - delete(&((this->conns)[fd].reader)); - memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf)); - (this->fds)[i].events = 0; - (this->fds)[i].revents = 0; - (this->fds)[i].fd = 0; - this->ndel++; -// CLEAR_CONN(this, i); -// this->nfds--; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/close__conn_8c__incl.dot b/docs/latex/close__conn_8c__incl.dot deleted file mode 100644 index 53eed16..0000000 --- a/docs/latex/close__conn_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server/close_conn.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="server.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/close__conn_8c__incl.md5 b/docs/latex/close__conn_8c__incl.md5 deleted file mode 100644 index e662d9e..0000000 --- a/docs/latex/close__conn_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -ff43219012ef29327905204fcca6a7cd \ No newline at end of file diff --git a/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.dot b/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.dot deleted file mode 100644 index 80a64cb..0000000 --- a/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverCloseConn",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="serverRun",height=0.2,width=0.4,color="black",URL="$run_8c.html#a67a4d9073b80d8ae1459fb11ddd23675"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 b/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 deleted file mode 100644 index f2bc53c..0000000 --- a/docs/latex/close__conn_8c_ad721e61c8676f0b4c3b8fc401e26f266_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e78969226285854db8f53c7299426df2 \ No newline at end of file diff --git a/docs/latex/config_8h.tex b/docs/latex/config_8h.tex deleted file mode 100644 index 368336d..0000000 --- a/docs/latex/config_8h.tex +++ /dev/null @@ -1,318 +0,0 @@ -\hypertarget{config_8h}{ -\section{config.h File Reference} -\label{config_8h}\index{config.h@{config.h}} -} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{config_8h_a0ee1617ff2f6885ef384a3dd46f9b9d7}{HAVE\_\-DLFCN\_\-H}~1 -\item -\#define \hyperlink{config_8h_ab90a030ff2790ebdc176660a6dd2a478}{HAVE\_\-INTTYPES\_\-H}~1 -\item -\#define \hyperlink{config_8h_ac2c863e4e8669bd8c3a403107e2102ad}{HAVE\_\-JSON\_\-JSON\_\-H}~1 -\item -\#define \hyperlink{config_8h_a4bfc3880cce93add473eb1d1751330bf}{HAVE\_\-LIBJSON}~1 -\item -\#define \hyperlink{config_8h_ae93a78f9d076138897af441c9f86f285}{HAVE\_\-MEMORY\_\-H}~1 -\item -\#define \hyperlink{config_8h_a3df52e9809253860c385be6f3a160607}{HAVE\_\-MEMSET}~1 -\item -\#define \hyperlink{config_8h_a3a3f8c7f8da8cac799fb620a2dbf2b15}{HAVE\_\-STDARG\_\-H}~1 -\item -\#define \hyperlink{config_8h_a8c3fa1b2f1be8c6f6929548c548cf50a}{HAVE\_\-STDBOOL\_\-H}~1 -\item -\#define \hyperlink{config_8h_ab6cd6d1c63c1e26ea2d4537b77148354}{HAVE\_\-STDINT\_\-H}~1 -\item -\#define \hyperlink{config_8h_ae021ce4fe74984428cc97427b7358fda}{HAVE\_\-STDIO\_\-H}~1 -\item -\#define \hyperlink{config_8h_a9e0e434ec1a6ddbd97db12b5a32905e0}{HAVE\_\-STDLIB\_\-H}~1 -\item -\#define \hyperlink{config_8h_a405d10d46190bcb0320524c54eafc850}{HAVE\_\-STRINGS\_\-H}~1 -\item -\#define \hyperlink{config_8h_ad4c234dd1625255dc626a15886306e7d}{HAVE\_\-STRING\_\-H}~1 -\item -\#define \hyperlink{config_8h_a695d4e005378df4a1f286cb3d0f4b333}{HAVE\_\-SYSLOG\_\-H}~1 -\item -\#define \hyperlink{config_8h_ace156430ba007d19b4348a950d0c692b}{HAVE\_\-SYS\_\-STAT\_\-H}~1 -\item -\#define \hyperlink{config_8h_a69dc70bea5d1f8bd2be9740e974fa666}{HAVE\_\-SYS\_\-TYPES\_\-H}~1 -\item -\#define \hyperlink{config_8h_a219b06937831d0da94d801ab13987639}{HAVE\_\-UNISTD\_\-H}~1 -\item -\#define \hyperlink{config_8h_a862ffdbac7ac8323712310a418b7d9a3}{HAVE\_\-\_\-BOOL}~1 -\item -\#define \hyperlink{config_8h_ac2d5925d76379847dd9fc4747b061659}{LT\_\-OBJDIR}~\char`\"{}.libs/\char`\"{} -\item -\#define \hyperlink{config_8h_aca8570fb706c81df371b7f9bc454ae03}{PACKAGE}~\char`\"{}cclass\char`\"{} -\item -\#define \hyperlink{config_8h_a1d1d2d7f8d2f95b376954d649ab03233}{PACKAGE\_\-BUGREPORT}~\char`\"{}Georg Hopp $<$georg@steffers.org$>$\char`\"{} -\item -\#define \hyperlink{config_8h_a1c0439e4355794c09b64274849eb0279}{PACKAGE\_\-NAME}~\char`\"{}cclass\char`\"{} -\item -\#define \hyperlink{config_8h_ac73e6f903c16eca7710f92e36e1c6fbf}{PACKAGE\_\-STRING}~\char`\"{}cclass 0.0.1\char`\"{} -\item -\#define \hyperlink{config_8h_af415af6bfede0e8d5453708afe68651c}{PACKAGE\_\-TARNAME}~\char`\"{}cclass\char`\"{} -\item -\#define \hyperlink{config_8h_a5c93853116d5a50307b6744f147840aa}{PACKAGE\_\-URL}~\char`\"{}\char`\"{} -\item -\#define \hyperlink{config_8h_aa326a05d5e30f9e9a4bb0b4469d5d0c0}{PACKAGE\_\-VERSION}~\char`\"{}0.0.1\char`\"{} -\item -\#define \hyperlink{config_8h_a550e5c272cc3cf3814651721167dcd23}{STDC\_\-HEADERS}~1 -\item -\#define \hyperlink{config_8h_a1c6d5de492ac61ad29aec7aa9a436bbf}{VERSION}~\char`\"{}0.0.1\char`\"{} -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{config_8h_a862ffdbac7ac8323712310a418b7d9a3}{ -\index{config.h@{config.h}!HAVE\_\-\_\-BOOL@{HAVE\_\-\_\-BOOL}} -\index{HAVE\_\-\_\-BOOL@{HAVE\_\-\_\-BOOL}!config.h@{config.h}} -\subsubsection[{HAVE\_\-\_\-BOOL}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-\_\-BOOL~1}} -\label{config_8h_a862ffdbac7ac8323712310a418b7d9a3} - - -Definition at line 56 of file config.h. - -\hypertarget{config_8h_a0ee1617ff2f6885ef384a3dd46f9b9d7}{ -\index{config.h@{config.h}!HAVE\_\-DLFCN\_\-H@{HAVE\_\-DLFCN\_\-H}} -\index{HAVE\_\-DLFCN\_\-H@{HAVE\_\-DLFCN\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-DLFCN\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-DLFCN\_\-H~1}} -\label{config_8h_a0ee1617ff2f6885ef384a3dd46f9b9d7} - - -Definition at line 5 of file config.h. - -\hypertarget{config_8h_ab90a030ff2790ebdc176660a6dd2a478}{ -\index{config.h@{config.h}!HAVE\_\-INTTYPES\_\-H@{HAVE\_\-INTTYPES\_\-H}} -\index{HAVE\_\-INTTYPES\_\-H@{HAVE\_\-INTTYPES\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-INTTYPES\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-INTTYPES\_\-H~1}} -\label{config_8h_ab90a030ff2790ebdc176660a6dd2a478} - - -Definition at line 8 of file config.h. - -\hypertarget{config_8h_ac2c863e4e8669bd8c3a403107e2102ad}{ -\index{config.h@{config.h}!HAVE\_\-JSON\_\-JSON\_\-H@{HAVE\_\-JSON\_\-JSON\_\-H}} -\index{HAVE\_\-JSON\_\-JSON\_\-H@{HAVE\_\-JSON\_\-JSON\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-JSON\_\-JSON\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-JSON\_\-JSON\_\-H~1}} -\label{config_8h_ac2c863e4e8669bd8c3a403107e2102ad} - - -Definition at line 11 of file config.h. - -\hypertarget{config_8h_a4bfc3880cce93add473eb1d1751330bf}{ -\index{config.h@{config.h}!HAVE\_\-LIBJSON@{HAVE\_\-LIBJSON}} -\index{HAVE\_\-LIBJSON@{HAVE\_\-LIBJSON}!config.h@{config.h}} -\subsubsection[{HAVE\_\-LIBJSON}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-LIBJSON~1}} -\label{config_8h_a4bfc3880cce93add473eb1d1751330bf} - - -Definition at line 14 of file config.h. - -\hypertarget{config_8h_ae93a78f9d076138897af441c9f86f285}{ -\index{config.h@{config.h}!HAVE\_\-MEMORY\_\-H@{HAVE\_\-MEMORY\_\-H}} -\index{HAVE\_\-MEMORY\_\-H@{HAVE\_\-MEMORY\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-MEMORY\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-MEMORY\_\-H~1}} -\label{config_8h_ae93a78f9d076138897af441c9f86f285} - - -Definition at line 17 of file config.h. - -\hypertarget{config_8h_a3df52e9809253860c385be6f3a160607}{ -\index{config.h@{config.h}!HAVE\_\-MEMSET@{HAVE\_\-MEMSET}} -\index{HAVE\_\-MEMSET@{HAVE\_\-MEMSET}!config.h@{config.h}} -\subsubsection[{HAVE\_\-MEMSET}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-MEMSET~1}} -\label{config_8h_a3df52e9809253860c385be6f3a160607} - - -Definition at line 20 of file config.h. - -\hypertarget{config_8h_a3a3f8c7f8da8cac799fb620a2dbf2b15}{ -\index{config.h@{config.h}!HAVE\_\-STDARG\_\-H@{HAVE\_\-STDARG\_\-H}} -\index{HAVE\_\-STDARG\_\-H@{HAVE\_\-STDARG\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STDARG\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STDARG\_\-H~1}} -\label{config_8h_a3a3f8c7f8da8cac799fb620a2dbf2b15} - - -Definition at line 23 of file config.h. - -\hypertarget{config_8h_a8c3fa1b2f1be8c6f6929548c548cf50a}{ -\index{config.h@{config.h}!HAVE\_\-STDBOOL\_\-H@{HAVE\_\-STDBOOL\_\-H}} -\index{HAVE\_\-STDBOOL\_\-H@{HAVE\_\-STDBOOL\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STDBOOL\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STDBOOL\_\-H~1}} -\label{config_8h_a8c3fa1b2f1be8c6f6929548c548cf50a} - - -Definition at line 26 of file config.h. - -\hypertarget{config_8h_ab6cd6d1c63c1e26ea2d4537b77148354}{ -\index{config.h@{config.h}!HAVE\_\-STDINT\_\-H@{HAVE\_\-STDINT\_\-H}} -\index{HAVE\_\-STDINT\_\-H@{HAVE\_\-STDINT\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STDINT\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STDINT\_\-H~1}} -\label{config_8h_ab6cd6d1c63c1e26ea2d4537b77148354} - - -Definition at line 29 of file config.h. - -\hypertarget{config_8h_ae021ce4fe74984428cc97427b7358fda}{ -\index{config.h@{config.h}!HAVE\_\-STDIO\_\-H@{HAVE\_\-STDIO\_\-H}} -\index{HAVE\_\-STDIO\_\-H@{HAVE\_\-STDIO\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STDIO\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STDIO\_\-H~1}} -\label{config_8h_ae021ce4fe74984428cc97427b7358fda} - - -Definition at line 32 of file config.h. - -\hypertarget{config_8h_a9e0e434ec1a6ddbd97db12b5a32905e0}{ -\index{config.h@{config.h}!HAVE\_\-STDLIB\_\-H@{HAVE\_\-STDLIB\_\-H}} -\index{HAVE\_\-STDLIB\_\-H@{HAVE\_\-STDLIB\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STDLIB\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STDLIB\_\-H~1}} -\label{config_8h_a9e0e434ec1a6ddbd97db12b5a32905e0} - - -Definition at line 35 of file config.h. - -\hypertarget{config_8h_ad4c234dd1625255dc626a15886306e7d}{ -\index{config.h@{config.h}!HAVE\_\-STRING\_\-H@{HAVE\_\-STRING\_\-H}} -\index{HAVE\_\-STRING\_\-H@{HAVE\_\-STRING\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STRING\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STRING\_\-H~1}} -\label{config_8h_ad4c234dd1625255dc626a15886306e7d} - - -Definition at line 41 of file config.h. - -\hypertarget{config_8h_a405d10d46190bcb0320524c54eafc850}{ -\index{config.h@{config.h}!HAVE\_\-STRINGS\_\-H@{HAVE\_\-STRINGS\_\-H}} -\index{HAVE\_\-STRINGS\_\-H@{HAVE\_\-STRINGS\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-STRINGS\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-STRINGS\_\-H~1}} -\label{config_8h_a405d10d46190bcb0320524c54eafc850} - - -Definition at line 38 of file config.h. - -\hypertarget{config_8h_ace156430ba007d19b4348a950d0c692b}{ -\index{config.h@{config.h}!HAVE\_\-SYS\_\-STAT\_\-H@{HAVE\_\-SYS\_\-STAT\_\-H}} -\index{HAVE\_\-SYS\_\-STAT\_\-H@{HAVE\_\-SYS\_\-STAT\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-SYS\_\-STAT\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-SYS\_\-STAT\_\-H~1}} -\label{config_8h_ace156430ba007d19b4348a950d0c692b} - - -Definition at line 47 of file config.h. - -\hypertarget{config_8h_a69dc70bea5d1f8bd2be9740e974fa666}{ -\index{config.h@{config.h}!HAVE\_\-SYS\_\-TYPES\_\-H@{HAVE\_\-SYS\_\-TYPES\_\-H}} -\index{HAVE\_\-SYS\_\-TYPES\_\-H@{HAVE\_\-SYS\_\-TYPES\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-SYS\_\-TYPES\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-SYS\_\-TYPES\_\-H~1}} -\label{config_8h_a69dc70bea5d1f8bd2be9740e974fa666} - - -Definition at line 50 of file config.h. - -\hypertarget{config_8h_a695d4e005378df4a1f286cb3d0f4b333}{ -\index{config.h@{config.h}!HAVE\_\-SYSLOG\_\-H@{HAVE\_\-SYSLOG\_\-H}} -\index{HAVE\_\-SYSLOG\_\-H@{HAVE\_\-SYSLOG\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-SYSLOG\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-SYSLOG\_\-H~1}} -\label{config_8h_a695d4e005378df4a1f286cb3d0f4b333} - - -Definition at line 44 of file config.h. - -\hypertarget{config_8h_a219b06937831d0da94d801ab13987639}{ -\index{config.h@{config.h}!HAVE\_\-UNISTD\_\-H@{HAVE\_\-UNISTD\_\-H}} -\index{HAVE\_\-UNISTD\_\-H@{HAVE\_\-UNISTD\_\-H}!config.h@{config.h}} -\subsubsection[{HAVE\_\-UNISTD\_\-H}]{\setlength{\rightskip}{0pt plus 5cm}\#define HAVE\_\-UNISTD\_\-H~1}} -\label{config_8h_a219b06937831d0da94d801ab13987639} - - -Definition at line 53 of file config.h. - -\hypertarget{config_8h_ac2d5925d76379847dd9fc4747b061659}{ -\index{config.h@{config.h}!LT\_\-OBJDIR@{LT\_\-OBJDIR}} -\index{LT\_\-OBJDIR@{LT\_\-OBJDIR}!config.h@{config.h}} -\subsubsection[{LT\_\-OBJDIR}]{\setlength{\rightskip}{0pt plus 5cm}\#define LT\_\-OBJDIR~\char`\"{}.libs/\char`\"{}}} -\label{config_8h_ac2d5925d76379847dd9fc4747b061659} - - -Definition at line 60 of file config.h. - -\hypertarget{config_8h_aca8570fb706c81df371b7f9bc454ae03}{ -\index{config.h@{config.h}!PACKAGE@{PACKAGE}} -\index{PACKAGE@{PACKAGE}!config.h@{config.h}} -\subsubsection[{PACKAGE}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE~\char`\"{}cclass\char`\"{}}} -\label{config_8h_aca8570fb706c81df371b7f9bc454ae03} - - -Definition at line 66 of file config.h. - -\hypertarget{config_8h_a1d1d2d7f8d2f95b376954d649ab03233}{ -\index{config.h@{config.h}!PACKAGE\_\-BUGREPORT@{PACKAGE\_\-BUGREPORT}} -\index{PACKAGE\_\-BUGREPORT@{PACKAGE\_\-BUGREPORT}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-BUGREPORT}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-BUGREPORT~\char`\"{}Georg Hopp $<$georg@steffers.org$>$\char`\"{}}} -\label{config_8h_a1d1d2d7f8d2f95b376954d649ab03233} - - -Definition at line 69 of file config.h. - -\hypertarget{config_8h_a1c0439e4355794c09b64274849eb0279}{ -\index{config.h@{config.h}!PACKAGE\_\-NAME@{PACKAGE\_\-NAME}} -\index{PACKAGE\_\-NAME@{PACKAGE\_\-NAME}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-NAME}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-NAME~\char`\"{}cclass\char`\"{}}} -\label{config_8h_a1c0439e4355794c09b64274849eb0279} - - -Definition at line 72 of file config.h. - -\hypertarget{config_8h_ac73e6f903c16eca7710f92e36e1c6fbf}{ -\index{config.h@{config.h}!PACKAGE\_\-STRING@{PACKAGE\_\-STRING}} -\index{PACKAGE\_\-STRING@{PACKAGE\_\-STRING}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-STRING}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-STRING~\char`\"{}cclass 0.0.1\char`\"{}}} -\label{config_8h_ac73e6f903c16eca7710f92e36e1c6fbf} - - -Definition at line 75 of file config.h. - -\hypertarget{config_8h_af415af6bfede0e8d5453708afe68651c}{ -\index{config.h@{config.h}!PACKAGE\_\-TARNAME@{PACKAGE\_\-TARNAME}} -\index{PACKAGE\_\-TARNAME@{PACKAGE\_\-TARNAME}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-TARNAME}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-TARNAME~\char`\"{}cclass\char`\"{}}} -\label{config_8h_af415af6bfede0e8d5453708afe68651c} - - -Definition at line 78 of file config.h. - -\hypertarget{config_8h_a5c93853116d5a50307b6744f147840aa}{ -\index{config.h@{config.h}!PACKAGE\_\-URL@{PACKAGE\_\-URL}} -\index{PACKAGE\_\-URL@{PACKAGE\_\-URL}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-URL}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-URL~\char`\"{}\char`\"{}}} -\label{config_8h_a5c93853116d5a50307b6744f147840aa} - - -Definition at line 81 of file config.h. - -\hypertarget{config_8h_aa326a05d5e30f9e9a4bb0b4469d5d0c0}{ -\index{config.h@{config.h}!PACKAGE\_\-VERSION@{PACKAGE\_\-VERSION}} -\index{PACKAGE\_\-VERSION@{PACKAGE\_\-VERSION}!config.h@{config.h}} -\subsubsection[{PACKAGE\_\-VERSION}]{\setlength{\rightskip}{0pt plus 5cm}\#define PACKAGE\_\-VERSION~\char`\"{}0.0.1\char`\"{}}} -\label{config_8h_aa326a05d5e30f9e9a4bb0b4469d5d0c0} - - -Definition at line 84 of file config.h. - -\hypertarget{config_8h_a550e5c272cc3cf3814651721167dcd23}{ -\index{config.h@{config.h}!STDC\_\-HEADERS@{STDC\_\-HEADERS}} -\index{STDC\_\-HEADERS@{STDC\_\-HEADERS}!config.h@{config.h}} -\subsubsection[{STDC\_\-HEADERS}]{\setlength{\rightskip}{0pt plus 5cm}\#define STDC\_\-HEADERS~1}} -\label{config_8h_a550e5c272cc3cf3814651721167dcd23} - - -Definition at line 87 of file config.h. - -\hypertarget{config_8h_a1c6d5de492ac61ad29aec7aa9a436bbf}{ -\index{config.h@{config.h}!VERSION@{VERSION}} -\index{VERSION@{VERSION}!config.h@{config.h}} -\subsubsection[{VERSION}]{\setlength{\rightskip}{0pt plus 5cm}\#define VERSION~\char`\"{}0.0.1\char`\"{}}} -\label{config_8h_a1c6d5de492ac61ad29aec7aa9a436bbf} - - -Definition at line 90 of file config.h. - diff --git a/docs/latex/connect_8c.tex b/docs/latex/connect_8c.tex deleted file mode 100644 index 308e37d..0000000 --- a/docs/latex/connect_8c.tex +++ /dev/null @@ -1,53 +0,0 @@ -\hypertarget{connect_8c}{ -\section{src/socket/connect.c File Reference} -\label{connect_8c}\index{src/socket/connect.c@{src/socket/connect.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$errno.h$>$}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for connect.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{connect_8c_adbfc4792c437102f20e2c86c4ee8581b}{socketConnect} (\hyperlink{structSock}{Sock} this, const char $\ast$addr) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{connect_8c_adbfc4792c437102f20e2c86c4ee8581b}{ -\index{connect.c@{connect.c}!socketConnect@{socketConnect}} -\index{socketConnect@{socketConnect}!connect.c@{connect.c}} -\subsubsection[{socketConnect}]{\setlength{\rightskip}{0pt plus 5cm}void socketConnect ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{const char $\ast$}]{addr} -\end{DoxyParamCaption} -)}} -\label{connect_8c_adbfc4792c437102f20e2c86c4ee8581b} - - -Definition at line 10 of file connect.c. - - -\begin{DoxyCode} -{ - inet_pton(AF_INET, addr, &((this->addr).sin_addr)); - (this->addr).sin_family = AF_INET; /* Internet address family */ - (this->addr).sin_port = htons(this->port); /* Local port */ - - if (-1 == connect(this->handle, (struct sockaddr*) &(this->addr), sizeof( - this->addr))) { - loggerLog(this->log, LOGGER_CRIT, - "error connection socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/connect_8c__incl.dot b/docs/latex/connect_8c__incl.dot deleted file mode 100644 index eec67cc..0000000 --- a/docs/latex/connect_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/socket/connect.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="errno.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/connect_8c__incl.md5 b/docs/latex/connect_8c__incl.md5 deleted file mode 100644 index 2d0eb54..0000000 --- a/docs/latex/connect_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -c7b1742ea57dbf2fa3b5487303cc6d27 \ No newline at end of file diff --git a/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot b/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot deleted file mode 100644 index de308ae..0000000 --- a/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketConnect",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 b/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 deleted file mode 100644 index 39afb5b..0000000 --- a/docs/latex/connect_8c_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d4b61c03fa9446761ec7f4284d17967f \ No newline at end of file diff --git a/docs/latex/daemonize_8c.tex b/docs/latex/daemonize_8c.tex deleted file mode 100644 index 39a4b81..0000000 --- a/docs/latex/daemonize_8c.tex +++ /dev/null @@ -1,50 +0,0 @@ -\hypertarget{daemonize_8c}{ -\section{src/daemonize.c File Reference} -\label{daemonize_8c}\index{src/daemonize.c@{src/daemonize.c}} -} -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -Include dependency graph for daemonize.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{daemonize_8c_a29b0af1da2432bcc90721c0b62f4e660}{daemonize} (void) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{daemonize_8c_a29b0af1da2432bcc90721c0b62f4e660}{ -\index{daemonize.c@{daemonize.c}!daemonize@{daemonize}} -\index{daemonize@{daemonize}!daemonize.c@{daemonize.c}} -\subsubsection[{daemonize}]{\setlength{\rightskip}{0pt plus 5cm}void daemonize ( -\begin{DoxyParamCaption} -\item[{void}]{} -\end{DoxyParamCaption} -)}} -\label{daemonize_8c_a29b0af1da2432bcc90721c0b62f4e660} - - -Definition at line 6 of file daemonize.c. - - -\begin{DoxyCode} - { - pid_t pid; - - if (0 > ((pid = fork()))) { - perror("deamoinze[fork]"); - exit(EXIT_FAILURE); - } else if (0 != pid) { - exit(EXIT_SUCCESS); - } - - /* make new child session leader */ - setsid(); - - /* connect all standard streams to /dev/null */ - stderr = freopen("/dev/null", "w", stderr); - stdin = freopen("/dev/null", "r", stdin); - stdout = freopen("/dev/null", "w", stdout); -} -\end{DoxyCode} diff --git a/docs/latex/daemonize_8c__incl.dot b/docs/latex/daemonize_8c__incl.dot deleted file mode 100644 index 99e8cc4..0000000 --- a/docs/latex/daemonize_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/daemonize.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/daemonize_8c__incl.md5 b/docs/latex/daemonize_8c__incl.md5 deleted file mode 100644 index bc98496..0000000 --- a/docs/latex/daemonize_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -403b8d0b590d43f10a9874fc6dbeffa0 \ No newline at end of file diff --git a/docs/latex/doxygen.sty b/docs/latex/doxygen.sty deleted file mode 100644 index f5644f5..0000000 --- a/docs/latex/doxygen.sty +++ /dev/null @@ -1,445 +0,0 @@ -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{doxygen} - -% Packages used by this style file -\RequirePackage{alltt} -\RequirePackage{array} -\RequirePackage{calc} -\RequirePackage{color} -\RequirePackage{fancyhdr} -\RequirePackage{longtable} -\RequirePackage{verbatim} -\RequirePackage{ifthen} -\RequirePackage{xcolor} - -% Use helvetica font instead of times roman -\RequirePackage{helvet} -\RequirePackage{sectsty} -\RequirePackage{tocloft} -\allsectionsfont{\usefont{OT1}{phv}{bc}{n}\selectfont} -\providecommand{\cftchapfont}{% - \fontsize{11}{13}\usefont{OT1}{phv}{bc}{n}\selectfont -} -\providecommand{\cftchappagefont}{% - \fontsize{11}{13}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsecfont}{% - \fontsize{10}{12}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsecpagefont}{% - \fontsize{10}{12}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsubsecfont}{% - \fontsize{10}{12}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsubsecpagefont}{% - \fontsize{10}{12}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsubsubsecfont}{% - \fontsize{9}{11}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftsubsubsecpagefont}{% - \fontsize{9}{11}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftparafont}{% - \fontsize{9}{11}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cftparapagefont}{% - \fontsize{9}{11}\usefont{OT1}{phv}{c}{n}\selectfont -} -\providecommand{\cfttoctitlefont}{% - \fontsize{20}{22}\usefont{OT1}{phv}{b}{n}\selectfont -} -\providecommand{\rmdefault}{phv} -\providecommand{\bfdefault}{bc} - - -% Setup fancy headings -\pagestyle{fancyplain} -\newcommand{\clearemptydoublepage}{% - \newpage{\pagestyle{empty}\cleardoublepage}% -} -\renewcommand{\chaptermark}[1]{% - \markboth{#1}{}% -} -\renewcommand{\sectionmark}[1]{% - \markright{\thesection\ #1}% -} -\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}} -\fancyhead[CE]{\fancyplain{}{}} -\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}} -\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}} -\fancyhead[CO]{\fancyplain{}{}} -\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}} -\fancyfoot[LE]{\fancyplain{}{}} -\fancyfoot[CE]{\fancyplain{}{}} -\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Thu Feb 9 2012 22:38:12 for server by Doxygen }} -\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Thu Feb 9 2012 22:38:12 for server by Doxygen }} -\fancyfoot[CO]{\fancyplain{}{}} -\fancyfoot[RO]{\fancyplain{}{}} -%---------- Internal commands used in this style file ---------------- - -% Generic environment used by all paragraph-based environments defined -% below. Note that the command \title{...} needs to be defined inside -% those environments! -\newenvironment{DoxyDesc}[1]{% - \begin{list}{}% - {% - \settowidth{\labelwidth}{40pt}% - \setlength{\leftmargin}{\labelwidth}% - \setlength{\parsep}{0pt}% - \setlength{\itemsep}{-4pt}% - \renewcommand{\makelabel}{\entrylabel}% - }% - \item[#1]% -}{% - \end{list}% -} - -%---------- Commands used by doxygen LaTeX output generator ---------- - -% Used by
 ... 
-\newenvironment{DoxyPre}{% - \small% - \begin{alltt}% -}{% - \end{alltt}% - \normalsize% -} - -% Used by @code ... @endcode -\newenvironment{DoxyCode}{% - \footnotesize% - \verbatim% -}{% - \endverbatim% - \normalsize% -} - -% Used by @example, @include, @includelineno and @dontinclude -\newenvironment{DoxyCodeInclude}{% - \DoxyCode% -}{% - \endDoxyCode% -} - -% Used by @verbatim ... @endverbatim -\newenvironment{DoxyVerb}{% - \footnotesize% - \verbatim% -}{% - \endverbatim% - \normalsize% -} - -% Used by @verbinclude -\newenvironment{DoxyVerbInclude}{% - \DoxyVerb% -}{% - \endDoxyVerb% -} - -% Used by numbered lists (using '-#' or
    ...
) -\newenvironment{DoxyEnumerate}{% - \enumerate% -}{% - \endenumerate% -} - -% Used by bullet lists (using '-', @li, @arg, or
    ...
) -\newenvironment{DoxyItemize}{% - \itemize% -}{% - \enditemize% -} - -% Used by description lists (using
...
) -\newenvironment{DoxyDescription}{% - \description% -}{% - \enddescription% -} - -% Used by @image, @dotfile, and @dot ... @enddot -% (only if caption is specified) -\newenvironment{DoxyImage}{% - \begin{figure}[H]% - \begin{center}% -}{% - \end{center}% - \end{figure}% -} - -% Used by @image, @dotfile, @dot ... @enddot, and @msc ... @endmsc -% (only if no caption is specified) -\newenvironment{DoxyImageNoCaption}{% -}{% -} - -% Used by @attention -\newenvironment{DoxyAttention}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @author and @authors -\newenvironment{DoxyAuthor}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @date -\newenvironment{DoxyDate}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @invariant -\newenvironment{DoxyInvariant}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @note -\newenvironment{DoxyNote}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @post -\newenvironment{DoxyPostcond}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @pre -\newenvironment{DoxyPrecond}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @remark -\newenvironment{DoxyRemark}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @return -\newenvironment{DoxyReturn}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @since -\newenvironment{DoxySince}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @see -\newenvironment{DoxySeeAlso}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @version -\newenvironment{DoxyVersion}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @warning -\newenvironment{DoxyWarning}[1]{% - \begin{DoxyDesc}{#1}% -}{% - \end{DoxyDesc}% -} - -% Used by @internal -\newenvironment{DoxyInternal}[1]{% - \paragraph*{#1}% -}{% -} - -% Used by @par and @paragraph -\newenvironment{DoxyParagraph}[1]{% - \begin{list}{}% - {% - \settowidth{\labelwidth}{40pt}% - \setlength{\leftmargin}{\labelwidth}% - \setlength{\parsep}{0pt}% - \setlength{\itemsep}{-4pt}% - \renewcommand{\makelabel}{\entrylabel}% - }% - \item[#1]% -}{% - \end{list}% -} - -% Used by parameter lists -\newenvironment{DoxyParams}[2][]{% - \begin{DoxyDesc}{#2}% - \begin{description}% - \item[] \hspace{\fill} \vspace{-25pt}% - \definecolor{tableShade}{HTML}{F8F8F8}% - \rowcolors{1}{white}{tableShade}% - \arrayrulecolor{gray}% - \setlength{\tabcolsep}{0.01\textwidth}% - \ifthenelse{\equal{#1}{}} - {\begin{longtable}{|>{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% - p{0.87\textwidth}|}}% - {\ifthenelse{\equal{#1}{1}}% - {\begin{longtable}{|>{\centering}p{0.10\textwidth}|% - >{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% - p{0.75\textwidth}|}}% - {\begin{longtable}{|>{\centering}p{0.10\textwidth}|% - >{\centering\hspace{0pt}}p{0.15\textwidth}|% - >{\raggedleft\hspace{0pt}}p{0.15\textwidth}|% - p{0.58\textwidth}|}}% - }\hline% -}{% - \end{longtable}% - \end{description}% - \end{DoxyDesc}% -} - -% is used for parameters within a detailed function description -\newenvironment{DoxyParamCaption}{% - \renewcommand{\item}[2][]{##1 {\em ##2}}% - }{% -} - -% Used by return value lists -\newenvironment{DoxyRetVals}[1]{% - \begin{DoxyDesc}{#1}% - \begin{description}% - \item[] \hspace{\fill} \vspace{-25pt}% - \definecolor{tableShade}{HTML}{F8F8F8}% - \rowcolors{1}{white}{tableShade}% - \arrayrulecolor{gray}% - \setlength{\tabcolsep}{0.01\textwidth}% - \begin{longtable}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% - p{0.77\textwidth}|}% - \hline% -}{% - \end{longtable}% - \end{description}% - \end{DoxyDesc}% -} - -% Used by exception lists -\newenvironment{DoxyExceptions}[1]{% - \begin{DoxyDesc}{#1}% - \begin{description}% - \item[] \hspace{\fill} \vspace{-25pt}% - \definecolor{tableShade}{HTML}{F8F8F8}% - \rowcolors{1}{white}{tableShade}% - \arrayrulecolor{gray}% - \setlength{\tabcolsep}{0.01\textwidth}% - \begin{longtable}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% - p{0.77\textwidth}|}% - \hline% -}{% - \end{longtable}% - \end{description}% - \end{DoxyDesc}% -} - -% Used by template parameter lists -\newenvironment{DoxyTemplParams}[1]{% - \begin{DoxyDesc}{#1}% - \begin{description}% - \item[] \hspace{\fill} \vspace{-25pt}% - \definecolor{tableShade}{HTML}{F8F8F8}% - \rowcolors{1}{white}{tableShade}% - \arrayrulecolor{gray}% - \setlength{\tabcolsep}{0.01\textwidth}% - \begin{longtable}{|>{\raggedleft\hspace{0pt}}p{0.25\textwidth}|% - p{0.77\textwidth}|}% - \hline% -}{% - \end{longtable}% - \end{description}% - \end{DoxyDesc}% -} - -\newcommand{\doxyref}[3]{\textbf{#1} (\textnormal{#2}\,\pageref{#3})} -\newenvironment{DoxyCompactList} -{\begin{list}{}{ - \setlength{\leftmargin}{0.5cm} - \setlength{\itemsep}{0pt} - \setlength{\parsep}{0pt} - \setlength{\topsep}{0pt} - \renewcommand{\makelabel}{\hfill}}} -{\end{list}} -\newenvironment{DoxyCompactItemize} -{ - \begin{itemize} - \setlength{\itemsep}{-3pt} - \setlength{\parsep}{0pt} - \setlength{\topsep}{0pt} - \setlength{\partopsep}{0pt} -} -{\end{itemize}} -\newcommand{\PBS}[1]{\let\temp=\\#1\let\\=\temp} -\newlength{\tmplength} -\newenvironment{TabularC}[1] -{ -\setlength{\tmplength} - {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)} - \par\begin{tabular*}{\linewidth} - {*{#1}{|>{\PBS\raggedright\hspace{0pt}}p{\the\tmplength}}|} -} -{\end{tabular*}\par} -\newcommand{\entrylabel}[1]{ - {\parbox[b]{\labelwidth-4pt}{\makebox[0pt][l]{\textbf{#1}}\vspace{1.5\baselineskip}}}} -\newenvironment{Desc} -{\begin{list}{} - { - \settowidth{\labelwidth}{40pt} - \setlength{\leftmargin}{\labelwidth} - \setlength{\parsep}{0pt} - \setlength{\itemsep}{-4pt} - \renewcommand{\makelabel}{\entrylabel} - } -} -{\end{list}} -\newenvironment{Indent} - {\begin{list}{}{\setlength{\leftmargin}{0.5cm}} - \item[]\ignorespaces} - {\unskip\end{list}} -\setlength{\parindent}{0cm} -\setlength{\parskip}{0.2cm} -\addtocounter{secnumdepth}{1} -\usepackage[T1]{fontenc} -\makeatletter -\renewcommand{\paragraph}{\@startsection{paragraph}{4}{0ex}% - {-3.25ex plus -1ex minus -0.2ex}% - {1.5ex plus 0.2ex}% - {\normalfont\normalsize\bfseries}} -\makeatother -\stepcounter{secnumdepth} -\stepcounter{tocdepth} -\definecolor{comment}{rgb}{0.5,0.0,0.0} -\definecolor{keyword}{rgb}{0.0,0.5,0.0} -\definecolor{keywordtype}{rgb}{0.38,0.25,0.125} -\definecolor{keywordflow}{rgb}{0.88,0.5,0.0} -\definecolor{preprocessor}{rgb}{0.5,0.38,0.125} -\definecolor{stringliteral}{rgb}{0.0,0.125,0.25} -\definecolor{charliteral}{rgb}{0.0,0.5,0.5} -\definecolor{vhdldigit}{rgb}{1.0,0.0,1.0} -\definecolor{vhdlkeyword}{rgb}{0.43,0.0,0.43} -\definecolor{vhdllogic}{rgb}{1.0,0.0,0.0} -\definecolor{vhdlchar}{rgb}{0.0,0.0,0.0} diff --git a/docs/latex/files.tex b/docs/latex/files.tex deleted file mode 100644 index 66ad0b2..0000000 --- a/docs/latex/files.tex +++ /dev/null @@ -1,49 +0,0 @@ -\section{File List} -Here is a list of all files with brief descriptions:\begin{DoxyCompactList} -\item\contentsline{section}{\hyperlink{config_8h}{config.h} }{\pageref{config_8h}}{} -\item\contentsline{section}{include/\hyperlink{class_8h}{class.h} }{\pageref{class_8h}}{} -\item\contentsline{section}{include/\hyperlink{interface_8h}{interface.h} }{\pageref{interface_8h}}{} -\item\contentsline{section}{include/\hyperlink{logger_8h}{logger.h} }{\pageref{logger_8h}}{} -\item\contentsline{section}{include/\hyperlink{server_8h}{server.h} }{\pageref{server_8h}}{} -\item\contentsline{section}{include/\hyperlink{signalHandling_8h}{signalHandling.h} }{\pageref{signalHandling_8h}}{} -\item\contentsline{section}{include/\hyperlink{socket_8h}{socket.h} }{\pageref{socket_8h}}{} -\item\contentsline{section}{include/http/\hyperlink{header_8h}{header.h} }{\pageref{header_8h}}{} -\item\contentsline{section}{include/http/\hyperlink{request_8h}{request.h} }{\pageref{request_8h}}{} -\item\contentsline{section}{include/http/\hyperlink{request__parser_8h}{request\_\-parser.h} }{\pageref{request__parser_8h}}{} -\item\contentsline{section}{include/http/\hyperlink{request__queue_8h}{request\_\-queue.h} }{\pageref{request__queue_8h}}{} -\item\contentsline{section}{include/http/\hyperlink{response_8h}{response.h} }{\pageref{response_8h}}{} -\item\contentsline{section}{include/interface/\hyperlink{interface_2class_8h}{class.h} }{\pageref{interface_2class_8h}}{} -\item\contentsline{section}{include/interface/\hyperlink{interface_2logger_8h}{logger.h} }{\pageref{interface_2logger_8h}}{} -\item\contentsline{section}{include/interface/\hyperlink{stream__reader_8h}{stream\_\-reader.h} }{\pageref{stream__reader_8h}}{} -\item\contentsline{section}{src/\hyperlink{class_8c}{class.c} }{\pageref{class_8c}}{} -\item\contentsline{section}{src/\hyperlink{daemonize_8c}{daemonize.c} }{\pageref{daemonize_8c}}{} -\item\contentsline{section}{src/\hyperlink{interface_8c}{interface.c} }{\pageref{interface_8c}}{} -\item\contentsline{section}{src/\hyperlink{logger_8c}{logger.c} }{\pageref{logger_8c}}{} -\item\contentsline{section}{src/\hyperlink{server_8c}{server.c} }{\pageref{server_8c}}{} -\item\contentsline{section}{src/\hyperlink{signalHandling_8c}{signalHandling.c} }{\pageref{signalHandling_8c}}{} -\item\contentsline{section}{src/\hyperlink{socket_8c}{socket.c} }{\pageref{socket_8c}}{} -\item\contentsline{section}{src/\hyperlink{testserver_8c}{testserver.c} }{\pageref{testserver_8c}}{} -\item\contentsline{section}{src/http/\hyperlink{header_8c}{header.c} }{\pageref{header_8c}}{} -\item\contentsline{section}{src/http/\hyperlink{request_8c}{request.c} }{\pageref{request_8c}}{} -\item\contentsline{section}{src/http/header/\hyperlink{get_8c}{get.c} }{\pageref{get_8c}}{} -\item\contentsline{section}{src/http/header/\hyperlink{sort_8c}{sort.c} }{\pageref{sort_8c}}{} -\item\contentsline{section}{src/http/request/\hyperlink{header__get_8c}{header\_\-get.c} }{\pageref{header__get_8c}}{} -\item\contentsline{section}{src/http/request/\hyperlink{parser_8c}{parser.c} }{\pageref{parser_8c}}{} -\item\contentsline{section}{src/http/request/\hyperlink{queue_8c}{queue.c} }{\pageref{queue_8c}}{} -\item\contentsline{section}{src/http/request/parser/\hyperlink{get__header_8c}{get\_\-header.c} }{\pageref{get__header_8c}}{} -\item\contentsline{section}{src/http/request/parser/\hyperlink{get__request__line_8c}{get\_\-request\_\-line.c} }{\pageref{get__request__line_8c}}{} -\item\contentsline{section}{src/http/request/parser/\hyperlink{parse_8c}{parse.c} }{\pageref{parse_8c}}{} -\item\contentsline{section}{src/interface/\hyperlink{interface_2class_8c}{class.c} }{\pageref{interface_2class_8c}}{} -\item\contentsline{section}{src/interface/\hyperlink{interface_2logger_8c}{logger.c} }{\pageref{interface_2logger_8c}}{} -\item\contentsline{section}{src/interface/\hyperlink{stream__reader_8c}{stream\_\-reader.c} }{\pageref{stream__reader_8c}}{} -\item\contentsline{section}{src/logger/\hyperlink{stderr_8c}{stderr.c} }{\pageref{stderr_8c}}{} -\item\contentsline{section}{src/logger/\hyperlink{syslog_8c}{syslog.c} }{\pageref{syslog_8c}}{} -\item\contentsline{section}{src/server/\hyperlink{close__conn_8c}{close\_\-conn.c} }{\pageref{close__conn_8c}}{} -\item\contentsline{section}{src/server/\hyperlink{handle__accept_8c}{handle\_\-accept.c} }{\pageref{handle__accept_8c}}{} -\item\contentsline{section}{src/server/\hyperlink{poll_8c}{poll.c} }{\pageref{poll_8c}}{} -\item\contentsline{section}{src/server/\hyperlink{read_8c}{read.c} }{\pageref{read_8c}}{} -\item\contentsline{section}{src/server/\hyperlink{run_8c}{run.c} }{\pageref{run_8c}}{} -\item\contentsline{section}{src/socket/\hyperlink{accept_8c}{accept.c} }{\pageref{accept_8c}}{} -\item\contentsline{section}{src/socket/\hyperlink{connect_8c}{connect.c} }{\pageref{connect_8c}}{} -\item\contentsline{section}{src/socket/\hyperlink{listen_8c}{listen.c} }{\pageref{listen_8c}}{} -\end{DoxyCompactList} diff --git a/docs/latex/get_8c.tex b/docs/latex/get_8c.tex deleted file mode 100644 index 2b7a39a..0000000 --- a/docs/latex/get_8c.tex +++ /dev/null @@ -1,47 +0,0 @@ -\hypertarget{get_8c}{ -\section{src/http/header/get.c File Reference} -\label{get_8c}\index{src/http/header/get.c@{src/http/header/get.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$ctype.h$>$}\par -{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par -Include dependency graph for get.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{get_8c_abed67d03f002ffb1a7cf94d641a80ca4}{httpHeaderGet} (const \hyperlink{structHttpHeader}{HttpHeader} header\mbox{[}$\,$\mbox{]}, int nheader, const char $\ast$name) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{get_8c_abed67d03f002ffb1a7cf94d641a80ca4}{ -\index{get.c@{get.c}!httpHeaderGet@{httpHeaderGet}} -\index{httpHeaderGet@{httpHeaderGet}!get.c@{get.c}} -\subsubsection[{httpHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpHeaderGet ( -\begin{DoxyParamCaption} -\item[{const {\bf HttpHeader}}]{header\mbox{[}$\,$\mbox{]}, } -\item[{int}]{nheader, } -\item[{const char $\ast$}]{name} -\end{DoxyParamCaption} -)}} -\label{get_8c_abed67d03f002ffb1a7cf94d641a80ca4} - - -Definition at line 31 of file get.c. - - -\begin{DoxyCode} -{ - unsigned long hash = sdbm((unsigned char *)name); - HttpHeader found; - - found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp); - - return (NULL != found)? found->value : NULL; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/get_8c__incl.dot b/docs/latex/get_8c__incl.dot deleted file mode 100644 index faafb27..0000000 --- a/docs/latex/get_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/header/get.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="ctype.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="http/header.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/get_8c__incl.md5 b/docs/latex/get_8c__incl.md5 deleted file mode 100644 index 11ca87d..0000000 --- a/docs/latex/get_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -7b536144d556b4393c4136235b61cbe4 \ No newline at end of file diff --git a/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.dot b/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.dot deleted file mode 100644 index b37cee8..0000000 --- a/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpHeaderGet",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 b/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 deleted file mode 100644 index 4fec088..0000000 --- a/docs/latex/get_8c_abed67d03f002ffb1a7cf94d641a80ca4_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -6d3ab79d1c55ca8e59b3bfceac7f70ed \ No newline at end of file diff --git a/docs/latex/get__header_8c.tex b/docs/latex/get__header_8c.tex deleted file mode 100644 index 76ff9f3..0000000 --- a/docs/latex/get__header_8c.tex +++ /dev/null @@ -1,48 +0,0 @@ -\hypertarget{get__header_8c}{ -\section{src/http/request/parser/get\_\-header.c File Reference} -\label{get__header_8c}\index{src/http/request/parser/get\_\-header.c@{src/http/request/parser/get\_\-header.c}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -Include dependency graph for get\_\-header.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c}{httpRequestParserGetHeader} (\hyperlink{structHttpRequest}{HttpRequest} request, char $\ast$line) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c}{ -\index{get\_\-header.c@{get\_\-header.c}!httpRequestParserGetHeader@{httpRequestParserGetHeader}} -\index{httpRequestParserGetHeader@{httpRequestParserGetHeader}!get_header.c@{get\_\-header.c}} -\subsubsection[{httpRequestParserGetHeader}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserGetHeader ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{request, } -\item[{char $\ast$}]{line} -\end{DoxyParamCaption} -)}} -\label{get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c} - - -Definition at line 7 of file get\_\-header.c. - - -\begin{DoxyCode} -{ - char * name = line; - char * value = strchr(line, ':'); - - *value = 0; - for (; *value == ' ' && *value != 0; value++); - - (request->header)[request->nheader++] = new(HttpHeader, name, value); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/get__header_8c__incl.dot b/docs/latex/get__header_8c__incl.dot deleted file mode 100644 index a82061d..0000000 --- a/docs/latex/get__header_8c__incl.dot +++ /dev/null @@ -1,15 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/parser/get_header.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="http/header.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/get__header_8c__incl.md5 b/docs/latex/get__header_8c__incl.md5 deleted file mode 100644 index 09dd6a4..0000000 --- a/docs/latex/get__header_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -bcb16755a62fa1be4443228944d33bf1 \ No newline at end of file diff --git a/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.dot b/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.dot deleted file mode 100644 index 6024225..0000000 --- a/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpRequestParserGetHeader",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 b/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 deleted file mode 100644 index 4111b55..0000000 --- a/docs/latex/get__header_8c_a53acbf83d2753cafdc4880dfc4f4222c_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -7c852c6a220b847fa31cac6f58c201d9 \ No newline at end of file diff --git a/docs/latex/get__request__line_8c.tex b/docs/latex/get__request__line_8c.tex deleted file mode 100644 index 45a9346..0000000 --- a/docs/latex/get__request__line_8c.tex +++ /dev/null @@ -1,57 +0,0 @@ -\hypertarget{get__request__line_8c}{ -\section{src/http/request/parser/get\_\-request\_\-line.c File Reference} -\label{get__request__line_8c}\index{src/http/request/parser/get\_\-request\_\-line.c@{src/http/request/parser/get\_\-request\_\-line.c}} -} -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -Include dependency graph for get\_\-request\_\-line.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{get__request__line_8c_a47a4a36f54b295507a2599488a4a6077}{httpRequestParserGetRequestLine} (\hyperlink{structHttpRequest}{HttpRequest} request, char $\ast$line) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{get__request__line_8c_a47a4a36f54b295507a2599488a4a6077}{ -\index{get\_\-request\_\-line.c@{get\_\-request\_\-line.c}!httpRequestParserGetRequestLine@{httpRequestParserGetRequestLine}} -\index{httpRequestParserGetRequestLine@{httpRequestParserGetRequestLine}!get_request_line.c@{get\_\-request\_\-line.c}} -\subsubsection[{httpRequestParserGetRequestLine}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserGetRequestLine ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{request, } -\item[{char $\ast$}]{line} -\end{DoxyParamCaption} -)}} -\label{get__request__line_8c_a47a4a36f54b295507a2599488a4a6077} - - -Definition at line 7 of file get\_\-request\_\-line.c. - - -\begin{DoxyCode} -{ - char * method, * uri, * version; - - method = line; - - uri = strchr(line, ' '); - *uri++ = 0; - for (; *uri == ' ' && *uri != 0; uri++); - - version = strchr(uri, ' '); - *version++ = 0; - for (; *version == ' ' && *version != 0; version++); - - request->method = malloc(strlen(method) + 1); - strcpy(request->method, method); - request->uri = malloc(strlen(uri) + 1); - strcpy(request->uri, uri); - request->version = malloc(strlen(version) + 1); - strcpy(request->version, method); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/get__request__line_8c__incl.dot b/docs/latex/get__request__line_8c__incl.dot deleted file mode 100644 index 8fe5fa8..0000000 --- a/docs/latex/get__request__line_8c__incl.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/parser/get_request_line.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/get__request__line_8c__incl.md5 b/docs/latex/get__request__line_8c__incl.md5 deleted file mode 100644 index e5f14de..0000000 --- a/docs/latex/get__request__line_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -830be5fd763f4b14500e585fbee3ac94 \ No newline at end of file diff --git a/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.dot b/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.dot deleted file mode 100644 index 89361ad..0000000 --- a/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpRequestParserGetRequestLine",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 b/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 deleted file mode 100644 index 60c9d9d..0000000 --- a/docs/latex/get__request__line_8c_a47a4a36f54b295507a2599488a4a6077_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -32af75e9bb6a368f76224dfe5df3d13f \ No newline at end of file diff --git a/docs/latex/handle__accept_8c.tex b/docs/latex/handle__accept_8c.tex deleted file mode 100644 index c0079ba..0000000 --- a/docs/latex/handle__accept_8c.tex +++ /dev/null @@ -1,5 +0,0 @@ -\hypertarget{handle__accept_8c}{ -\section{src/server/handle\_\-accept.c File Reference} -\label{handle__accept_8c}\index{src/server/handle\_\-accept.c@{src/server/handle\_\-accept.c}} -} -This graph shows which files directly or indirectly include this file: diff --git a/docs/latex/handle__accept_8c__dep__incl.dot b/docs/latex/handle__accept_8c__dep__incl.dot deleted file mode 100644 index 0b13af4..0000000 --- a/docs/latex/handle__accept_8c__dep__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server/handle_accept.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="src/server/run.c",height=0.2,width=0.4,color="black",URL="$run_8c.html"]; -} diff --git a/docs/latex/handle__accept_8c__dep__incl.md5 b/docs/latex/handle__accept_8c__dep__incl.md5 deleted file mode 100644 index b77e5ec..0000000 --- a/docs/latex/handle__accept_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -202b02f8d82b9a69e87d5eac330c8cb2 \ No newline at end of file diff --git a/docs/latex/header_8c.tex b/docs/latex/header_8c.tex deleted file mode 100644 index 8a3d3a2..0000000 --- a/docs/latex/header_8c.tex +++ /dev/null @@ -1,44 +0,0 @@ -\hypertarget{header_8c}{ -\section{src/http/header.c File Reference} -\label{header_8c}\index{src/http/header.c@{src/http/header.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$ctype.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par -Include dependency graph for header.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{header_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{header_8c_ae8e5d69987c0bf3b3f0a3729c8bec8e4}{CREATE\_\-CLASS} (\hyperlink{structHttpHeader}{HttpHeader}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{header_8c_ae8e5d69987c0bf3b3f0a3729c8bec8e4}{ -\index{header.c@{header.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!header.c@{header.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpHeader}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{header_8c_ae8e5d69987c0bf3b3f0a3729c8bec8e4} -\hypertarget{header_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{header.c@{header.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!header.c@{header.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{header_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/header_8c__incl.dot b/docs/latex/header_8c__incl.dot deleted file mode 100644 index 13b7d0d..0000000 --- a/docs/latex/header_8c__incl.dot +++ /dev/null @@ -1,19 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/header.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="ctype.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="http/header.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/header_8c__incl.md5 b/docs/latex/header_8c__incl.md5 deleted file mode 100644 index c10d4a2..0000000 --- a/docs/latex/header_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -90ee23e32e268dbabe82c94f89d71887 \ No newline at end of file diff --git a/docs/latex/header_8h.tex b/docs/latex/header_8h.tex deleted file mode 100644 index e4dde46..0000000 --- a/docs/latex/header_8h.tex +++ /dev/null @@ -1,88 +0,0 @@ -\hypertarget{header_8h}{ -\section{include/http/header.h File Reference} -\label{header_8h}\index{include/http/header.h@{include/http/header.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -Include dependency graph for header.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structHttpHeader}{HttpHeader} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{structHttpHeader}{HttpHeader} \hyperlink{header_8h_a498d29a6d4b5a4e3ef92df617600fe54}{httpHeaderParse} (char $\ast$line) -\item -void \hyperlink{header_8h_a43ccec0413f9f2e394bb3af5ff628b56}{httpHeaderSort} (const \hyperlink{structHttpHeader}{HttpHeader}\mbox{[}$\,$\mbox{]}, int) -\item -char $\ast$ \hyperlink{header_8h_a002a617a3523cbc79ba8ef6f76d98465}{httpHeaderGet} (const \hyperlink{structHttpHeader}{HttpHeader}\mbox{[}$\,$\mbox{]}, int, const char $\ast$) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{header_8h_a002a617a3523cbc79ba8ef6f76d98465}{ -\index{header.h@{header.h}!httpHeaderGet@{httpHeaderGet}} -\index{httpHeaderGet@{httpHeaderGet}!header.h@{header.h}} -\subsubsection[{httpHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpHeaderGet ( -\begin{DoxyParamCaption} -\item[{const {\bf HttpHeader}}]{\mbox{[}$\,$\mbox{]}, } -\item[{int}]{, } -\item[{const char $\ast$}]{} -\end{DoxyParamCaption} -)}} -\label{header_8h_a002a617a3523cbc79ba8ef6f76d98465} - - -Definition at line 31 of file get.c. - - -\begin{DoxyCode} -{ - unsigned long hash = sdbm((unsigned char *)name); - HttpHeader found; - - found = bsearch(&hash, header, nheader, sizeof(HttpHeader), comp); - - return (NULL != found)? found->value : NULL; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - -\hypertarget{header_8h_a498d29a6d4b5a4e3ef92df617600fe54}{ -\index{header.h@{header.h}!httpHeaderParse@{httpHeaderParse}} -\index{httpHeaderParse@{httpHeaderParse}!header.h@{header.h}} -\subsubsection[{httpHeaderParse}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpHeader} httpHeaderParse ( -\begin{DoxyParamCaption} -\item[{char $\ast$}]{line} -\end{DoxyParamCaption} -)}} -\label{header_8h_a498d29a6d4b5a4e3ef92df617600fe54} -\hypertarget{header_8h_a43ccec0413f9f2e394bb3af5ff628b56}{ -\index{header.h@{header.h}!httpHeaderSort@{httpHeaderSort}} -\index{httpHeaderSort@{httpHeaderSort}!header.h@{header.h}} -\subsubsection[{httpHeaderSort}]{\setlength{\rightskip}{0pt plus 5cm}void httpHeaderSort ( -\begin{DoxyParamCaption} -\item[{const {\bf HttpHeader}}]{\mbox{[}$\,$\mbox{]}, } -\item[{int}]{} -\end{DoxyParamCaption} -)}} -\label{header_8h_a43ccec0413f9f2e394bb3af5ff628b56} - - -Definition at line 14 of file sort.c. - - -\begin{DoxyCode} -{ - qsort(header, nheader, sizeof(HttpHeader), comp); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/header_8h__incl.dot b/docs/latex/header_8h__incl.dot deleted file mode 100644 index 9136b0b..0000000 --- a/docs/latex/header_8h__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/http/header.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/header_8h__incl.md5 b/docs/latex/header_8h__incl.md5 deleted file mode 100644 index 652835b..0000000 --- a/docs/latex/header_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -fb541b7670e1d8afbc6202234e2a39ef \ No newline at end of file diff --git a/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.dot b/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.dot deleted file mode 100644 index b37cee8..0000000 --- a/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpHeaderGet",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 b/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 deleted file mode 100644 index 4fec088..0000000 --- a/docs/latex/header_8h_a002a617a3523cbc79ba8ef6f76d98465_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -6d3ab79d1c55ca8e59b3bfceac7f70ed \ No newline at end of file diff --git a/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.dot b/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.dot deleted file mode 100644 index 4d2f27f..0000000 --- a/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpHeaderSort",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 b/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 deleted file mode 100644 index 9062fa0..0000000 --- a/docs/latex/header_8h_a43ccec0413f9f2e394bb3af5ff628b56_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d4dd874c170f6f96950bc1c377a2b156 \ No newline at end of file diff --git a/docs/latex/header__get_8c.tex b/docs/latex/header__get_8c.tex deleted file mode 100644 index 1bf4c5c..0000000 --- a/docs/latex/header__get_8c.tex +++ /dev/null @@ -1,46 +0,0 @@ -\hypertarget{header__get_8c}{ -\section{src/http/request/header\_\-get.c File Reference} -\label{header__get_8c}\index{src/http/request/header\_\-get.c@{src/http/request/header\_\-get.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$ctype.h$>$}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -Include dependency graph for header\_\-get.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{header__get_8c_abe5df7e20fea66f7926cf40df8250f26}{httpRequestHeaderGet} (\hyperlink{structHttpRequest}{HttpRequest} this, const char $\ast$name) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{header__get_8c_abe5df7e20fea66f7926cf40df8250f26}{ -\index{header\_\-get.c@{header\_\-get.c}!httpRequestHeaderGet@{httpRequestHeaderGet}} -\index{httpRequestHeaderGet@{httpRequestHeaderGet}!header_get.c@{header\_\-get.c}} -\subsubsection[{httpRequestHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpRequestHeaderGet ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{this, } -\item[{const char $\ast$}]{name} -\end{DoxyParamCaption} -)}} -\label{header__get_8c_abe5df7e20fea66f7926cf40df8250f26} - - -Definition at line 31 of file header\_\-get.c. - - -\begin{DoxyCode} -{ - unsigned long hash = sdbm((unsigned char *)name); - struct HttpRequestHeader * header; - - header = bsearch( - &hash, - this->header, - this->nheader, - sizeof(struct HttpRequestHeader), - comp); - - return (NULL != header)? header->value : NULL; -} -\end{DoxyCode} diff --git a/docs/latex/header__get_8c__incl.dot b/docs/latex/header__get_8c__incl.dot deleted file mode 100644 index f609880..0000000 --- a/docs/latex/header__get_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/header_get.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="ctype.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/header__get_8c__incl.md5 b/docs/latex/header__get_8c__incl.md5 deleted file mode 100644 index 371cc85..0000000 --- a/docs/latex/header__get_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -2f92e533b85ced0d9227e4a1176eba63 \ No newline at end of file diff --git a/docs/latex/interface_2class_8c.tex b/docs/latex/interface_2class_8c.tex deleted file mode 100644 index 847fa3d..0000000 --- a/docs/latex/interface_2class_8c.tex +++ /dev/null @@ -1,109 +0,0 @@ -\hypertarget{interface_2class_8c}{ -\section{src/interface/class.c File Reference} -\label{interface_2class_8c}\index{src/interface/class.c@{src/interface/class.c}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$assert.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -Include dependency graph for class.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void $\ast$ \hyperlink{interface_2class_8c_a841e4a0f9bceb16fda262302d038bfa0}{classNew} (\hyperlink{structclass}{class\_\-ptr} \hyperlink{structclass}{class},...) -\item -void \hyperlink{interface_2class_8c_a292005216c251622a115ea90ff6d36c0}{classDelete} (void $\ast$$\ast$object) -\item -void $\ast$ \hyperlink{interface_2class_8c_ada46f0179448063a30f6f219270bf1e0}{classClone} (void $\ast$\_\-object) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{interface_2class_8c_ada46f0179448063a30f6f219270bf1e0}{ -\index{interface/class.c@{interface/class.c}!classClone@{classClone}} -\index{classClone@{classClone}!interface/class.c@{interface/class.c}} -\subsubsection[{classClone}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ classClone ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{\_\-object} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8c_ada46f0179448063a30f6f219270bf1e0} - - -Definition at line 42 of file class.c. - - -\begin{DoxyCode} -{ - class_ptr class = class_getClass(_object); - void * object = calloc(1, class->object_size + sizeof(void*)); - - * (class_ptr *)object = class; - object += sizeof(void*); - -#undef clone - CALL(object, Class, clone, _object); - - return object; -} -\end{DoxyCode} - - -Here is the call graph for this function: - - -\hypertarget{interface_2class_8c_a292005216c251622a115ea90ff6d36c0}{ -\index{interface/class.c@{interface/class.c}!classDelete@{classDelete}} -\index{classDelete@{classDelete}!interface/class.c@{interface/class.c}} -\subsubsection[{classDelete}]{\setlength{\rightskip}{0pt plus 5cm}void classDelete ( -\begin{DoxyParamCaption} -\item[{void $\ast$$\ast$}]{object} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8c_a292005216c251622a115ea90ff6d36c0} - - -Definition at line 33 of file class.c. - - -\begin{DoxyCode} -{ - CALL(*object, Class, dtor); - - free(*object - sizeof(void*)); - *object = NULL; -} -\end{DoxyCode} -\hypertarget{interface_2class_8c_a841e4a0f9bceb16fda262302d038bfa0}{ -\index{interface/class.c@{interface/class.c}!classNew@{classNew}} -\index{classNew@{classNew}!interface/class.c@{interface/class.c}} -\subsubsection[{classNew}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ classNew ( -\begin{DoxyParamCaption} -\item[{{\bf class\_\-ptr}}]{class, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8c_a841e4a0f9bceb16fda262302d038bfa0} - - -Definition at line 15 of file class.c. - - -\begin{DoxyCode} -{ - void * object = calloc(1, class->object_size + sizeof(void*)); - va_list params; - - if (class->init) class->init(); - - * (class_ptr *)object = class; - object += sizeof(void*); - - va_start(params, class); - CALL(object, Class, ctor, ¶ms); - va_end(params); - - return object; -} -\end{DoxyCode} diff --git a/docs/latex/interface_2class_8c__incl.dot b/docs/latex/interface_2class_8c__incl.dot deleted file mode 100644 index f87456f..0000000 --- a/docs/latex/interface_2class_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/interface/class.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="assert.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/interface_2class_8c__incl.md5 b/docs/latex/interface_2class_8c__incl.md5 deleted file mode 100644 index 896c016..0000000 --- a/docs/latex/interface_2class_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d385f264a2ce6003971df8559889df1b \ No newline at end of file diff --git a/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.dot b/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.dot deleted file mode 100644 index 76973c7..0000000 --- a/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="classClone",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class_getClass",height=0.2,width=0.4,color="black",URL="$class_8h.html#a1f382a42de272d5cc4d6bb5b17db6ede"]; -} diff --git a/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 b/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 deleted file mode 100644 index dda6e21..0000000 --- a/docs/latex/interface_2class_8c_ada46f0179448063a30f6f219270bf1e0_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -3c009b311a9cda1bd0f95e0be210ba41 \ No newline at end of file diff --git a/docs/latex/interface_2class_8h.tex b/docs/latex/interface_2class_8h.tex deleted file mode 100644 index c128396..0000000 --- a/docs/latex/interface_2class_8h.tex +++ /dev/null @@ -1,204 +0,0 @@ -\hypertarget{interface_2class_8h}{ -\section{include/interface/class.h File Reference} -\label{interface_2class_8h}\index{include/interface/class.h@{include/interface/class.h}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface.h\char`\"{}}\par -Include dependency graph for class.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structi__Class}{i\_\-Class} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{interface_2class_8h_a323cb9a9088662b03bc37a47403e4212}{new}(\hyperlink{structclass}{class},...)~classNew(\_\-\#\#\hyperlink{structclass}{class}, \#\#\_\-\_\-VA\_\-ARGS\_\-\_\-) -\item -\#define \hyperlink{interface_2class_8h_adb9a02719a59dd833c56e1a33ded59db}{delete}(object)~classDelete((void $\ast$$\ast$)(object)) -\item -\#define \hyperlink{interface_2class_8h_a864061d3c9c7f123efb63649bb0fade7}{clone}(object)~classClone((void $\ast$)(object)) -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef void($\ast$ \hyperlink{interface_2class_8h_a207fe2c25aae0b91e9df60b0ece4217e}{fptr\_\-ctor} )(void $\ast$, va\_\-list $\ast$) -\item -typedef void($\ast$ \hyperlink{interface_2class_8h_a59366634eecbace7ae9c8c5e65199c91}{fptr\_\-dtor} )(void $\ast$) -\item -typedef void($\ast$ \hyperlink{interface_2class_8h_a6d852b3640eeb6ef8a3d776b87736392}{fptr\_\-clone} )(void $\ast$, void $\ast$const) -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void $\ast$ \hyperlink{interface_2class_8h_adebe9bba79f753f5c44409a2ff664299}{classNew} (\hyperlink{structclass}{class\_\-ptr},...) -\item -void \hyperlink{interface_2class_8h_ac064b1caf75bc6c8b1a4371748d55878}{classDelete} (void $\ast$$\ast$) -\item -void $\ast$ \hyperlink{interface_2class_8h_a51116659174ec46c5a04721d31631053}{classClone} (void $\ast$) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{interface_2class_8h_a864061d3c9c7f123efb63649bb0fade7}{ -\index{interface/class.h@{interface/class.h}!clone@{clone}} -\index{clone@{clone}!interface/class.h@{interface/class.h}} -\subsubsection[{clone}]{\setlength{\rightskip}{0pt plus 5cm}\#define clone( -\begin{DoxyParamCaption} -\item[{}]{object} -\end{DoxyParamCaption} -)~classClone((void $\ast$)(object))}} -\label{interface_2class_8h_a864061d3c9c7f123efb63649bb0fade7} - - -Definition at line 28 of file class.h. - -\hypertarget{interface_2class_8h_adb9a02719a59dd833c56e1a33ded59db}{ -\index{interface/class.h@{interface/class.h}!delete@{delete}} -\index{delete@{delete}!interface/class.h@{interface/class.h}} -\subsubsection[{delete}]{\setlength{\rightskip}{0pt plus 5cm}\#define delete( -\begin{DoxyParamCaption} -\item[{}]{object} -\end{DoxyParamCaption} -)~classDelete((void $\ast$$\ast$)(object))}} -\label{interface_2class_8h_adb9a02719a59dd833c56e1a33ded59db} - - -Definition at line 27 of file class.h. - -\hypertarget{interface_2class_8h_a323cb9a9088662b03bc37a47403e4212}{ -\index{interface/class.h@{interface/class.h}!new@{new}} -\index{new@{new}!interface/class.h@{interface/class.h}} -\subsubsection[{new}]{\setlength{\rightskip}{0pt plus 5cm}\#define new( -\begin{DoxyParamCaption} -\item[{}]{{\bf class}, } -\item[{}]{...} -\end{DoxyParamCaption} -)~classNew(\_\-\#\#{\bf class}, \#\#\_\-\_\-VA\_\-ARGS\_\-\_\-)}} -\label{interface_2class_8h_a323cb9a9088662b03bc37a47403e4212} - - -Definition at line 26 of file class.h. - - - -\subsection{Typedef Documentation} -\hypertarget{interface_2class_8h_a6d852b3640eeb6ef8a3d776b87736392}{ -\index{interface/class.h@{interface/class.h}!fptr\_\-clone@{fptr\_\-clone}} -\index{fptr\_\-clone@{fptr\_\-clone}!interface/class.h@{interface/class.h}} -\subsubsection[{fptr\_\-clone}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf fptr\_\-clone})(void $\ast$, void $\ast$const)}} -\label{interface_2class_8h_a6d852b3640eeb6ef8a3d776b87736392} - - -Definition at line 11 of file class.h. - -\hypertarget{interface_2class_8h_a207fe2c25aae0b91e9df60b0ece4217e}{ -\index{interface/class.h@{interface/class.h}!fptr\_\-ctor@{fptr\_\-ctor}} -\index{fptr\_\-ctor@{fptr\_\-ctor}!interface/class.h@{interface/class.h}} -\subsubsection[{fptr\_\-ctor}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf fptr\_\-ctor})(void $\ast$, va\_\-list $\ast$)}} -\label{interface_2class_8h_a207fe2c25aae0b91e9df60b0ece4217e} - - -Definition at line 9 of file class.h. - -\hypertarget{interface_2class_8h_a59366634eecbace7ae9c8c5e65199c91}{ -\index{interface/class.h@{interface/class.h}!fptr\_\-dtor@{fptr\_\-dtor}} -\index{fptr\_\-dtor@{fptr\_\-dtor}!interface/class.h@{interface/class.h}} -\subsubsection[{fptr\_\-dtor}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf fptr\_\-dtor})(void $\ast$)}} -\label{interface_2class_8h_a59366634eecbace7ae9c8c5e65199c91} - - -Definition at line 10 of file class.h. - - - -\subsection{Function Documentation} -\hypertarget{interface_2class_8h_a51116659174ec46c5a04721d31631053}{ -\index{interface/class.h@{interface/class.h}!classClone@{classClone}} -\index{classClone@{classClone}!interface/class.h@{interface/class.h}} -\subsubsection[{classClone}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ classClone ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8h_a51116659174ec46c5a04721d31631053} - - -Definition at line 42 of file class.c. - - -\begin{DoxyCode} -{ - class_ptr class = class_getClass(_object); - void * object = calloc(1, class->object_size + sizeof(void*)); - - * (class_ptr *)object = class; - object += sizeof(void*); - -#undef clone - CALL(object, Class, clone, _object); - - return object; -} -\end{DoxyCode} - - -Here is the call graph for this function: - - -\hypertarget{interface_2class_8h_ac064b1caf75bc6c8b1a4371748d55878}{ -\index{interface/class.h@{interface/class.h}!classDelete@{classDelete}} -\index{classDelete@{classDelete}!interface/class.h@{interface/class.h}} -\subsubsection[{classDelete}]{\setlength{\rightskip}{0pt plus 5cm}void classDelete ( -\begin{DoxyParamCaption} -\item[{void $\ast$$\ast$}]{} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8h_ac064b1caf75bc6c8b1a4371748d55878} - - -Definition at line 33 of file class.c. - - -\begin{DoxyCode} -{ - CALL(*object, Class, dtor); - - free(*object - sizeof(void*)); - *object = NULL; -} -\end{DoxyCode} -\hypertarget{interface_2class_8h_adebe9bba79f753f5c44409a2ff664299}{ -\index{interface/class.h@{interface/class.h}!classNew@{classNew}} -\index{classNew@{classNew}!interface/class.h@{interface/class.h}} -\subsubsection[{classNew}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ classNew ( -\begin{DoxyParamCaption} -\item[{{\bf class\_\-ptr}}]{, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{interface_2class_8h_adebe9bba79f753f5c44409a2ff664299} - - -Definition at line 15 of file class.c. - - -\begin{DoxyCode} -{ - void * object = calloc(1, class->object_size + sizeof(void*)); - va_list params; - - if (class->init) class->init(); - - * (class_ptr *)object = class; - object += sizeof(void*); - - va_start(params, class); - CALL(object, Class, ctor, ¶ms); - va_end(params); - - return object; -} -\end{DoxyCode} diff --git a/docs/latex/interface_2class_8h__dep__incl.dot b/docs/latex/interface_2class_8h__dep__incl.dot deleted file mode 100644 index 5fe300a..0000000 --- a/docs/latex/interface_2class_8h__dep__incl.dot +++ /dev/null @@ -1,8 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface/class.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node1 [dir=back,color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/interface_2class_8h__dep__incl.md5 b/docs/latex/interface_2class_8h__dep__incl.md5 deleted file mode 100644 index f1ed3d2..0000000 --- a/docs/latex/interface_2class_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -465c0b34ebf6d6763ab90d2d446b72ab \ No newline at end of file diff --git a/docs/latex/interface_2class_8h__incl.dot b/docs/latex/interface_2class_8h__incl.dot deleted file mode 100644 index 05495c4..0000000 --- a/docs/latex/interface_2class_8h__incl.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface/class.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node1 [color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="interface.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/interface_2class_8h__incl.md5 b/docs/latex/interface_2class_8h__incl.md5 deleted file mode 100644 index 9ba9cde..0000000 --- a/docs/latex/interface_2class_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -6b58762b248da531ad8d2946e11b7f00 \ No newline at end of file diff --git a/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.dot b/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.dot deleted file mode 100644 index 76973c7..0000000 --- a/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="classClone",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class_getClass",height=0.2,width=0.4,color="black",URL="$class_8h.html#a1f382a42de272d5cc4d6bb5b17db6ede"]; -} diff --git a/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 b/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 deleted file mode 100644 index dda6e21..0000000 --- a/docs/latex/interface_2class_8h_a51116659174ec46c5a04721d31631053_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -3c009b311a9cda1bd0f95e0be210ba41 \ No newline at end of file diff --git a/docs/latex/interface_2logger_8c.tex b/docs/latex/interface_2logger_8c.tex deleted file mode 100644 index 00fb26d..0000000 --- a/docs/latex/interface_2logger_8c.tex +++ /dev/null @@ -1,65 +0,0 @@ -\hypertarget{interface_2logger_8c}{ -\section{src/interface/logger.c File Reference} -\label{interface_2logger_8c}\index{src/interface/logger.c@{src/interface/logger.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for logger.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f}{loggerLog} (void $\ast$\_\-object, \hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level} level, const char $\ast$const fmt,...) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f}{ -\index{interface/logger.c@{interface/logger.c}!loggerLog@{loggerLog}} -\index{loggerLog@{loggerLog}!interface/logger.c@{interface/logger.c}} -\subsubsection[{loggerLog}]{\setlength{\rightskip}{0pt plus 5cm}void loggerLog ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{\_\-object, } -\item[{{\bf logger\_\-level}}]{level, } -\item[{const char $\ast$const}]{fmt, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f} - - -Definition at line 14 of file logger.c. - - -\begin{DoxyCode} - { - Logger object = _object; - - if (level >= object->min_level) { - char * msg = NULL; - size_t msg_size = 0; - va_list params; - - va_start(params, fmt); - msg_size = vsnprintf(msg, msg_size, fmt, params); - va_end(params); - - msg = malloc(msg_size + 1); - - va_start(params, fmt); - vsnprintf(msg, msg_size + 1, fmt, params); - va_end(params); - - CALL(_object, Logger, log, level, msg); - - free(msg); - } -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/interface_2logger_8c__incl.dot b/docs/latex/interface_2logger_8c__incl.dot deleted file mode 100644 index 55a2b7d..0000000 --- a/docs/latex/interface_2logger_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/interface/logger.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/interface_2logger_8c__incl.md5 b/docs/latex/interface_2logger_8c__incl.md5 deleted file mode 100644 index 12897d5..0000000 --- a/docs/latex/interface_2logger_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -904443824ae94b1a8284befdf0365711 \ No newline at end of file diff --git a/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.dot b/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.dot deleted file mode 100644 index 38d4890..0000000 --- a/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.dot +++ /dev/null @@ -1,18 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="loggerLog",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="serverRun",height=0.2,width=0.4,color="black",URL="$run_8c.html#a67a4d9073b80d8ae1459fb11ddd23675"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; - Node1 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="socketAccept",height=0.2,width=0.4,color="black",URL="$accept_8c.html#a46aa6b495ccf752e844f93bf46c9edd6"]; - Node1 -> Node5 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="socketConnect",height=0.2,width=0.4,color="black",URL="$connect_8c.html#adbfc4792c437102f20e2c86c4ee8581b"]; - Node1 -> Node6 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="socketListen",height=0.2,width=0.4,color="black",URL="$listen_8c.html#a757c220e9371523ef55b1137a1efed57"]; -} diff --git a/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 b/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 deleted file mode 100644 index 08c4b62..0000000 --- a/docs/latex/interface_2logger_8c_a9053743a944f1faef3866efaa52d3c7f_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d95cb4c57c90bfe358449d670a3395c0 \ No newline at end of file diff --git a/docs/latex/interface_2logger_8h.tex b/docs/latex/interface_2logger_8h.tex deleted file mode 100644 index 321d5b4..0000000 --- a/docs/latex/interface_2logger_8h.tex +++ /dev/null @@ -1,86 +0,0 @@ -\hypertarget{interface_2logger_8h}{ -\section{include/interface/logger.h File Reference} -\label{interface_2logger_8h}\index{include/interface/logger.h@{include/interface/logger.h}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}interface.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -Include dependency graph for logger.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structi__Logger}{i\_\-Logger} -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef void($\ast$ \hyperlink{interface_2logger_8h_a4dcd041363da34329e1c9442c98a273e}{fptr\_\-log} )(void $\ast$, \hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level}, const char $\ast$const) -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e}{loggerLog} (void $\ast$, \hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level}, const char $\ast$const,...) -\end{DoxyCompactItemize} - - -\subsection{Typedef Documentation} -\hypertarget{interface_2logger_8h_a4dcd041363da34329e1c9442c98a273e}{ -\index{interface/logger.h@{interface/logger.h}!fptr\_\-log@{fptr\_\-log}} -\index{fptr\_\-log@{fptr\_\-log}!interface/logger.h@{interface/logger.h}} -\subsubsection[{fptr\_\-log}]{\setlength{\rightskip}{0pt plus 5cm}typedef void($\ast$ {\bf fptr\_\-log})(void $\ast$, {\bf logger\_\-level}, const char $\ast$const)}} -\label{interface_2logger_8h_a4dcd041363da34329e1c9442c98a273e} - - -Definition at line 9 of file logger.h. - - - -\subsection{Function Documentation} -\hypertarget{interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e}{ -\index{interface/logger.h@{interface/logger.h}!loggerLog@{loggerLog}} -\index{loggerLog@{loggerLog}!interface/logger.h@{interface/logger.h}} -\subsubsection[{loggerLog}]{\setlength{\rightskip}{0pt plus 5cm}void loggerLog ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{, } -\item[{{\bf logger\_\-level}}]{, } -\item[{const char $\ast$}]{const, } -\item[{}]{...} -\end{DoxyParamCaption} -)}} -\label{interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e} - - -Definition at line 14 of file logger.c. - - -\begin{DoxyCode} - { - Logger object = _object; - - if (level >= object->min_level) { - char * msg = NULL; - size_t msg_size = 0; - va_list params; - - va_start(params, fmt); - msg_size = vsnprintf(msg, msg_size, fmt, params); - va_end(params); - - msg = malloc(msg_size + 1); - - va_start(params, fmt); - vsnprintf(msg, msg_size + 1, fmt, params); - va_end(params); - - CALL(_object, Logger, log, level, msg); - - free(msg); - } -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/interface_2logger_8h__dep__incl.dot b/docs/latex/interface_2logger_8h__dep__incl.dot deleted file mode 100644 index ff75ee5..0000000 --- a/docs/latex/interface_2logger_8h__dep__incl.dot +++ /dev/null @@ -1,8 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface/logger.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node1 [dir=back,color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/interface_2logger_8h__dep__incl.md5 b/docs/latex/interface_2logger_8h__dep__incl.md5 deleted file mode 100644 index 10bc0cd..0000000 --- a/docs/latex/interface_2logger_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f38e06bc2f319d8a8d7e0aa9731641cb \ No newline at end of file diff --git a/docs/latex/interface_2logger_8h__incl.dot b/docs/latex/interface_2logger_8h__incl.dot deleted file mode 100644 index b2afc04..0000000 --- a/docs/latex/interface_2logger_8h__incl.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface/logger.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="interface.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node1 [color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/interface_2logger_8h__incl.md5 b/docs/latex/interface_2logger_8h__incl.md5 deleted file mode 100644 index 137e595..0000000 --- a/docs/latex/interface_2logger_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -2bc981d947623d8518e26b04bf2f1202 \ No newline at end of file diff --git a/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.dot b/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.dot deleted file mode 100644 index 38d4890..0000000 --- a/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.dot +++ /dev/null @@ -1,18 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="loggerLog",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="serverRun",height=0.2,width=0.4,color="black",URL="$run_8c.html#a67a4d9073b80d8ae1459fb11ddd23675"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; - Node1 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="socketAccept",height=0.2,width=0.4,color="black",URL="$accept_8c.html#a46aa6b495ccf752e844f93bf46c9edd6"]; - Node1 -> Node5 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="socketConnect",height=0.2,width=0.4,color="black",URL="$connect_8c.html#adbfc4792c437102f20e2c86c4ee8581b"]; - Node1 -> Node6 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="socketListen",height=0.2,width=0.4,color="black",URL="$listen_8c.html#a757c220e9371523ef55b1137a1efed57"]; -} diff --git a/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 b/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 deleted file mode 100644 index 08c4b62..0000000 --- a/docs/latex/interface_2logger_8h_ae9f8662ec8b300dcfb5064906937553e_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d95cb4c57c90bfe358449d670a3395c0 \ No newline at end of file diff --git a/docs/latex/interface_8c.tex b/docs/latex/interface_8c.tex deleted file mode 100644 index ddf1339..0000000 --- a/docs/latex/interface_8c.tex +++ /dev/null @@ -1,69 +0,0 @@ -\hypertarget{interface_8c}{ -\section{src/interface.c File Reference} -\label{interface_8c}\index{src/interface.c@{src/interface.c}} -} -{\ttfamily \#include $<$sys/types.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include \char`\"{}interface.h\char`\"{}}\par -Include dependency graph for interface.c: -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{interface_8c_aa8cecfc5c5c054d2875c03e77b7be15d}{TRUE}~1 -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} $\ast$ \hyperlink{interface_8c_a3592671f742071d6b215f46ba58f53ab}{interfaceGet} (\hyperlink{structiface__impl}{iface\_\-impl\_\-ptr} \hyperlink{structiface__impl}{iface\_\-impl}, const \hyperlink{structinterface}{iface\_\-ptr} \_\-iface) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{interface_8c_aa8cecfc5c5c054d2875c03e77b7be15d}{ -\index{interface.c@{interface.c}!TRUE@{TRUE}} -\index{TRUE@{TRUE}!interface.c@{interface.c}} -\subsubsection[{TRUE}]{\setlength{\rightskip}{0pt plus 5cm}\#define TRUE~1}} -\label{interface_8c_aa8cecfc5c5c054d2875c03e77b7be15d} - - -Definition at line 7 of file interface.c. - - - -\subsection{Function Documentation} -\hypertarget{interface_8c_a3592671f742071d6b215f46ba58f53ab}{ -\index{interface.c@{interface.c}!interfaceGet@{interfaceGet}} -\index{interfaceGet@{interfaceGet}!interface.c@{interface.c}} -\subsubsection[{interfaceGet}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf interface}$\ast$ interfaceGet ( -\begin{DoxyParamCaption} -\item[{{\bf iface\_\-impl\_\-ptr}}]{iface\_\-impl, } -\item[{const {\bf iface\_\-ptr}}]{\_\-iface} -\end{DoxyParamCaption} -)\hspace{0.3cm}{\ttfamily \mbox{[}read\mbox{]}}}} -\label{interface_8c_a3592671f742071d6b215f46ba58f53ab} -this one is important in selector functions to get the correct interface implementation of a class. - -Definition at line 25 of file interface.c. - - -\begin{DoxyCode} -{ - const iface_ptr * iface = &_iface; - void * dummy; - - if (! iface_impl->simpl) { - qsort((void**)(iface_impl->impl), iface_impl->nimpl, sizeof(iface_ptr), c - omp); - iface_impl->simpl=TRUE; - } - - dummy = bsearch( - &iface, - iface_impl->impl, - iface_impl->nimpl, - sizeof(iface_ptr), - comp); - - return dummy? *(struct interface **)dummy : dummy; -} -\end{DoxyCode} diff --git a/docs/latex/interface_8c__incl.dot b/docs/latex/interface_8c__incl.dot deleted file mode 100644 index 16295a7..0000000 --- a/docs/latex/interface_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/interface.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/interface_8c__incl.md5 b/docs/latex/interface_8c__incl.md5 deleted file mode 100644 index 110d011..0000000 --- a/docs/latex/interface_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -a33e8cb0390b141deafdb3a8fb923990 \ No newline at end of file diff --git a/docs/latex/interface_8h.tex b/docs/latex/interface_8h.tex deleted file mode 100644 index a7d37b9..0000000 --- a/docs/latex/interface_8h.tex +++ /dev/null @@ -1,195 +0,0 @@ -\hypertarget{interface_8h}{ -\section{include/interface.h File Reference} -\label{interface_8h}\index{include/interface.h@{include/interface.h}} -} -{\ttfamily \#include $<$sys/types.h$>$}\par -Include dependency graph for interface.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} -\item -struct \hyperlink{structiface__impl}{iface\_\-impl} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{interface_8h_ad620a89e939b586d6a025cf342da8e55}{MAX\_\-IFACE}~32 -\item -\#define \hyperlink{interface_8h_a02255665665c91d905ec32d00d9a4a85}{IFACE}(name)~((const struct i\_\-\#\#name const$\ast$)\&i\_\-\#\#name\#\#\_\-impl) -\item -\#define \hyperlink{interface_8h_a446cc7d7282f8a0b8e62a371671ea605}{INIT\_\-IFACE}(name,...)~static const struct i\_\-\#\#name i\_\-\#\#name\#\#\_\-impl = \{\&i\_\-\#\#name,\_\-\_\-VA\_\-ARGS\_\-\_\-\} -\item -\#define \hyperlink{interface_8h_a9dda4d034150e3159927f83d9d15d840}{NUMARGS}(...)~(sizeof((const void$\ast$\mbox{[}$\,$\mbox{]})\{\_\-\_\-VA\_\-ARGS\_\-\_\-\})/sizeof(void$\ast$)) -\item -\#define \hyperlink{interface_8h_a6e8015282e5aac5747daff5bb71d8601}{INIT\_\-IMPL}(...)~\{NUMARGS(\_\-\_\-VA\_\-ARGS\_\-\_\-), 0, \{\_\-\_\-VA\_\-ARGS\_\-\_\-\}\} -\item -\#define \hyperlink{interface_8h_a855b98f3119c2d64e7dd4c2c910bd5b5}{CREATE\_\-IMPL}(...)~static struct \hyperlink{structiface__impl}{iface\_\-impl} \hyperlink{structiface__impl}{iface\_\-impl} = INIT\_\-IMPL(\_\-\_\-VA\_\-ARGS\_\-\_\-) -\item -\#define \hyperlink{interface_8h_a12243bdd01e5366fecc15f395f09221a}{METHOD\_\-GET}(iface, method)~(iface-\/$>$method) -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef struct \hyperlink{structinterface}{interface} $\ast$ \hyperlink{interface_8h_afaa63cd951f41a496111e88acf36dc40}{iface\_\-ptr} -\item -typedef struct \hyperlink{structiface__impl}{iface\_\-impl} $\ast$ \hyperlink{interface_8h_a998b025a5015049fd824424d6983f2df}{iface\_\-impl\_\-ptr} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} $\ast$ \hyperlink{interface_8h_ae4bb16dde691d2513d444ce772f48718}{interfaceGet} (\hyperlink{structiface__impl}{iface\_\-impl\_\-ptr}, const \hyperlink{structinterface}{iface\_\-ptr}) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{interface_8h_a855b98f3119c2d64e7dd4c2c910bd5b5}{ -\index{interface.h@{interface.h}!CREATE\_\-IMPL@{CREATE\_\-IMPL}} -\index{CREATE\_\-IMPL@{CREATE\_\-IMPL}!interface.h@{interface.h}} -\subsubsection[{CREATE\_\-IMPL}]{\setlength{\rightskip}{0pt plus 5cm}\#define CREATE\_\-IMPL( -\begin{DoxyParamCaption} -\item[{}]{...} -\end{DoxyParamCaption} -)~static struct {\bf iface\_\-impl} {\bf iface\_\-impl} = INIT\_\-IMPL(\_\-\_\-VA\_\-ARGS\_\-\_\-)}} -\label{interface_8h_a855b98f3119c2d64e7dd4c2c910bd5b5} - - -Definition at line 16 of file interface.h. - -\hypertarget{interface_8h_a02255665665c91d905ec32d00d9a4a85}{ -\index{interface.h@{interface.h}!IFACE@{IFACE}} -\index{IFACE@{IFACE}!interface.h@{interface.h}} -\subsubsection[{IFACE}]{\setlength{\rightskip}{0pt plus 5cm}\#define IFACE( -\begin{DoxyParamCaption} -\item[{}]{name} -\end{DoxyParamCaption} -)~((const struct i\_\-\#\#name const$\ast$)\&i\_\-\#\#name\#\#\_\-impl)}} -\label{interface_8h_a02255665665c91d905ec32d00d9a4a85} - - -Definition at line 8 of file interface.h. - -\hypertarget{interface_8h_a446cc7d7282f8a0b8e62a371671ea605}{ -\index{interface.h@{interface.h}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!interface.h@{interface.h}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}\#define INIT\_\-IFACE( -\begin{DoxyParamCaption} -\item[{}]{name, } -\item[{}]{...} -\end{DoxyParamCaption} -)~static const struct i\_\-\#\#name i\_\-\#\#name\#\#\_\-impl = \{\&i\_\-\#\#name,\_\-\_\-VA\_\-ARGS\_\-\_\-\}}} -\label{interface_8h_a446cc7d7282f8a0b8e62a371671ea605} - - -Definition at line 10 of file interface.h. - -\hypertarget{interface_8h_a6e8015282e5aac5747daff5bb71d8601}{ -\index{interface.h@{interface.h}!INIT\_\-IMPL@{INIT\_\-IMPL}} -\index{INIT\_\-IMPL@{INIT\_\-IMPL}!interface.h@{interface.h}} -\subsubsection[{INIT\_\-IMPL}]{\setlength{\rightskip}{0pt plus 5cm}\#define INIT\_\-IMPL( -\begin{DoxyParamCaption} -\item[{}]{...} -\end{DoxyParamCaption} -)~\{NUMARGS(\_\-\_\-VA\_\-ARGS\_\-\_\-), 0, \{\_\-\_\-VA\_\-ARGS\_\-\_\-\}\}}} -\label{interface_8h_a6e8015282e5aac5747daff5bb71d8601} - - -Definition at line 15 of file interface.h. - -\hypertarget{interface_8h_ad620a89e939b586d6a025cf342da8e55}{ -\index{interface.h@{interface.h}!MAX\_\-IFACE@{MAX\_\-IFACE}} -\index{MAX\_\-IFACE@{MAX\_\-IFACE}!interface.h@{interface.h}} -\subsubsection[{MAX\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}\#define MAX\_\-IFACE~32}} -\label{interface_8h_ad620a89e939b586d6a025cf342da8e55} - - -Definition at line 6 of file interface.h. - -\hypertarget{interface_8h_a12243bdd01e5366fecc15f395f09221a}{ -\index{interface.h@{interface.h}!METHOD\_\-GET@{METHOD\_\-GET}} -\index{METHOD\_\-GET@{METHOD\_\-GET}!interface.h@{interface.h}} -\subsubsection[{METHOD\_\-GET}]{\setlength{\rightskip}{0pt plus 5cm}\#define METHOD\_\-GET( -\begin{DoxyParamCaption} -\item[{}]{iface, } -\item[{}]{method} -\end{DoxyParamCaption} -)~(iface-\/$>$method)}} -\label{interface_8h_a12243bdd01e5366fecc15f395f09221a} - - -Definition at line 19 of file interface.h. - -\hypertarget{interface_8h_a9dda4d034150e3159927f83d9d15d840}{ -\index{interface.h@{interface.h}!NUMARGS@{NUMARGS}} -\index{NUMARGS@{NUMARGS}!interface.h@{interface.h}} -\subsubsection[{NUMARGS}]{\setlength{\rightskip}{0pt plus 5cm}\#define NUMARGS( -\begin{DoxyParamCaption} -\item[{}]{...} -\end{DoxyParamCaption} -)~(sizeof((const void$\ast$\mbox{[}$\,$\mbox{]})\{\_\-\_\-VA\_\-ARGS\_\-\_\-\})/sizeof(void$\ast$))}} -\label{interface_8h_a9dda4d034150e3159927f83d9d15d840} - - -Definition at line 13 of file interface.h. - - - -\subsection{Typedef Documentation} -\hypertarget{interface_8h_a998b025a5015049fd824424d6983f2df}{ -\index{interface.h@{interface.h}!iface\_\-impl\_\-ptr@{iface\_\-impl\_\-ptr}} -\index{iface\_\-impl\_\-ptr@{iface\_\-impl\_\-ptr}!interface.h@{interface.h}} -\subsubsection[{iface\_\-impl\_\-ptr}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf iface\_\-impl}$\ast$ {\bf iface\_\-impl\_\-ptr}}} -\label{interface_8h_a998b025a5015049fd824424d6983f2df} - - -Definition at line 33 of file interface.h. - -\hypertarget{interface_8h_afaa63cd951f41a496111e88acf36dc40}{ -\index{interface.h@{interface.h}!iface\_\-ptr@{iface\_\-ptr}} -\index{iface\_\-ptr@{iface\_\-ptr}!interface.h@{interface.h}} -\subsubsection[{iface\_\-ptr}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf interface}$\ast$ {\bf iface\_\-ptr}}} -\label{interface_8h_afaa63cd951f41a496111e88acf36dc40} - - -Definition at line 26 of file interface.h. - - - -\subsection{Function Documentation} -\hypertarget{interface_8h_ae4bb16dde691d2513d444ce772f48718}{ -\index{interface.h@{interface.h}!interfaceGet@{interfaceGet}} -\index{interfaceGet@{interfaceGet}!interface.h@{interface.h}} -\subsubsection[{interfaceGet}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf interface}$\ast$ interfaceGet ( -\begin{DoxyParamCaption} -\item[{{\bf iface\_\-impl\_\-ptr}}]{iface\_\-impl, } -\item[{const {\bf iface\_\-ptr}}]{\_\-iface} -\end{DoxyParamCaption} -)\hspace{0.3cm}{\ttfamily \mbox{[}read\mbox{]}}}} -\label{interface_8h_ae4bb16dde691d2513d444ce772f48718} -this one is important in selector functions to get the correct interface implementation of a class. - -Definition at line 25 of file interface.c. - - -\begin{DoxyCode} -{ - const iface_ptr * iface = &_iface; - void * dummy; - - if (! iface_impl->simpl) { - qsort((void**)(iface_impl->impl), iface_impl->nimpl, sizeof(iface_ptr), c - omp); - iface_impl->simpl=TRUE; - } - - dummy = bsearch( - &iface, - iface_impl->impl, - iface_impl->nimpl, - sizeof(iface_ptr), - comp); - - return dummy? *(struct interface **)dummy : dummy; -} -\end{DoxyCode} diff --git a/docs/latex/interface_8h__dep__incl.dot b/docs/latex/interface_8h__dep__incl.dot deleted file mode 100644 index 9290352..0000000 --- a/docs/latex/interface_8h__dep__incl.dot +++ /dev/null @@ -1,18 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="include/class.h",height=0.2,width=0.4,color="black",URL="$class_8h.html"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="include/logger.h",height=0.2,width=0.4,color="black",URL="$logger_8h.html"]; - Node3 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="include/socket.h",height=0.2,width=0.4,color="black",URL="$socket_8h.html"]; - Node4 -> Node5 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="include/server.h",height=0.2,width=0.4,color="black",URL="$server_8h.html"]; - Node3 -> Node5 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 -> Node5 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 -> Node4 [dir=back,color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/interface_8h__dep__incl.md5 b/docs/latex/interface_8h__dep__incl.md5 deleted file mode 100644 index 835d87e..0000000 --- a/docs/latex/interface_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -48514c60a17f6133e5522a18f6291a6a \ No newline at end of file diff --git a/docs/latex/interface_8h__incl.dot b/docs/latex/interface_8h__incl.dot deleted file mode 100644 index c5a8345..0000000 --- a/docs/latex/interface_8h__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/interface_8h__incl.md5 b/docs/latex/interface_8h__incl.md5 deleted file mode 100644 index cca5a90..0000000 --- a/docs/latex/interface_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -e9dd42938c2ede4b7449aa7db0132d54 \ No newline at end of file diff --git a/docs/latex/listen_8c.tex b/docs/latex/listen_8c.tex deleted file mode 100644 index 5aea047..0000000 --- a/docs/latex/listen_8c.tex +++ /dev/null @@ -1,64 +0,0 @@ -\hypertarget{listen_8c}{ -\section{src/socket/listen.c File Reference} -\label{listen_8c}\index{src/socket/listen.c@{src/socket/listen.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$errno.h$>$}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for listen.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{listen_8c_a757c220e9371523ef55b1137a1efed57}{socketListen} (\hyperlink{structSock}{Sock} this, int backlog) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{listen_8c_a757c220e9371523ef55b1137a1efed57}{ -\index{listen.c@{listen.c}!socketListen@{socketListen}} -\index{socketListen@{socketListen}!listen.c@{listen.c}} -\subsubsection[{socketListen}]{\setlength{\rightskip}{0pt plus 5cm}void socketListen ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{int}]{backlog} -\end{DoxyParamCaption} -)}} -\label{listen_8c_a757c220e9371523ef55b1137a1efed57} - - -Definition at line 10 of file listen.c. - - -\begin{DoxyCode} -{ - (this->addr).sin_family = AF_INET; /* Internet address family - */ - (this->addr).sin_addr.s_addr = htonl(INADDR_ANY); /* Any incoming interface * - / - (this->addr).sin_port = htons(this->port); /* Local port */ - - /* Bind to the local address */ - if (-1 == bind(this->handle, (struct sockaddr *) &(this->addr), sizeof(this-> - addr))) { - loggerLog(this->log, LOGGER_CRIT, - "error binding socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } - - /* Mark the socket so it will listen for incoming connections */ - if (-1 == listen(this->handle, backlog)) { - loggerLog(this->log, LOGGER_CRIT, - "error binding socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/listen_8c__incl.dot b/docs/latex/listen_8c__incl.dot deleted file mode 100644 index 418b9a6..0000000 --- a/docs/latex/listen_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/socket/listen.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="errno.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/listen_8c__incl.md5 b/docs/latex/listen_8c__incl.md5 deleted file mode 100644 index 30400f8..0000000 --- a/docs/latex/listen_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -5ca6e39d43d7d8ae2d18033afbef3889 \ No newline at end of file diff --git a/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.dot b/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.dot deleted file mode 100644 index 457e774..0000000 --- a/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketListen",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 b/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 deleted file mode 100644 index 8d1cc7c..0000000 --- a/docs/latex/listen_8c_a757c220e9371523ef55b1137a1efed57_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -9119991752c8de97a1c44af5d17e244c \ No newline at end of file diff --git a/docs/latex/logger_8c.tex b/docs/latex/logger_8c.tex deleted file mode 100644 index b3b6c31..0000000 --- a/docs/latex/logger_8c.tex +++ /dev/null @@ -1,72 +0,0 @@ -\hypertarget{logger_8c}{ -\section{src/logger.c File Reference} -\label{logger_8c}\index{src/logger.c@{src/logger.c}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for logger.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{logger_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{logger_8c_a010ac92393088a64e3dbe6cd301e6cd0}{CREATE\_\-CLASS} (\hyperlink{structLogger}{Logger}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} -\subsection*{Variables} -\begin{DoxyCompactItemize} -\item -const char $\ast$const \hyperlink{logger_8c_a6f4ba515aab77f23138ce05b414ee616}{logger\_\-level\_\-str} \mbox{[}$\,$\mbox{]} -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{logger_8c_a010ac92393088a64e3dbe6cd301e6cd0}{ -\index{logger.c@{logger.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!logger.c@{logger.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf Logger}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{logger_8c_a010ac92393088a64e3dbe6cd301e6cd0} -\hypertarget{logger_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{logger.c@{logger.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!logger.c@{logger.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{logger_8c_a4dd368b7bead6fa0805e91405d90f786} - - -\subsection{Variable Documentation} -\hypertarget{logger_8c_a6f4ba515aab77f23138ce05b414ee616}{ -\index{logger.c@{logger.c}!logger\_\-level\_\-str@{logger\_\-level\_\-str}} -\index{logger\_\-level\_\-str@{logger\_\-level\_\-str}!logger.c@{logger.c}} -\subsubsection[{logger\_\-level\_\-str}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ const {\bf logger\_\-level\_\-str}\mbox{[}$\,$\mbox{]}}} -\label{logger_8c_a6f4ba515aab77f23138ce05b414ee616} -{\bfseries Initial value:} -\begin{DoxyCode} - { - "DEBUG", - "INFO", - "NOTICE", - "WARNING", - "ERR", - "CRIT", - "ALERT", - "EMERG" -} -\end{DoxyCode} - - -Definition at line 9 of file logger.c. - diff --git a/docs/latex/logger_8c__incl.dot b/docs/latex/logger_8c__incl.dot deleted file mode 100644 index 00ce7b9..0000000 --- a/docs/latex/logger_8c__incl.dot +++ /dev/null @@ -1,15 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/logger.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/logger_8c__incl.md5 b/docs/latex/logger_8c__incl.md5 deleted file mode 100644 index af0ff64..0000000 --- a/docs/latex/logger_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d9b74b2f9dad9b5bcc091215c1c9f478 \ No newline at end of file diff --git a/docs/latex/logger_8h.tex b/docs/latex/logger_8h.tex deleted file mode 100644 index 2e93147..0000000 --- a/docs/latex/logger_8h.tex +++ /dev/null @@ -1,124 +0,0 @@ -\hypertarget{logger_8h}{ -\section{include/logger.h File Reference} -\label{logger_8h}\index{include/logger.h@{include/logger.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -Include dependency graph for logger.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structLogger}{Logger} -\item -struct \hyperlink{structLoggerStderr}{LoggerStderr} -\item -struct \hyperlink{structLoggerSyslog}{LoggerSyslog} -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef enum \hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level} \hyperlink{logger_8h_a5c4c4dba00ce08b2a3d0a6c7ab8daf92}{logger\_\-level} -\end{DoxyCompactItemize} -\subsection*{Enumerations} -\begin{DoxyCompactItemize} -\item -enum \hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level} \{ \par -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea30eb5eac34e7c2406c74fb78d9004f6c}{LOGGER\_\-DEBUG} = 0, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea3a56c2c000665930df74a9ebf9047316}{LOGGER\_\-INFO}, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea8cc2b7c645b647fecb44f2e5a5aa7fa8}{LOGGER\_\-NOTICE}, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea236a2401a6ed3e96611f3a14352082ad}{LOGGER\_\-WARNING}, -\par -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eadea66ab9219dfd6addc90edf08ed96fb}{LOGGER\_\-ERR}, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eaa7d55c7b377d82da77e532aa299eeeb0}{LOGGER\_\-CRIT}, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea55e6111bbd01c0bee4a7ca7373f31bc8}{LOGGER\_\-ALERT}, -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eabbdf8b92875d1e13023c293b21a467ec}{LOGGER\_\-EMERG} - \} -\end{DoxyCompactItemize} -\subsection*{Variables} -\begin{DoxyCompactItemize} -\item -const char $\ast$const \hyperlink{logger_8h_a6f4ba515aab77f23138ce05b414ee616}{logger\_\-level\_\-str} \mbox{[}$\,$\mbox{]} -\end{DoxyCompactItemize} - - -\subsection{Typedef Documentation} -\hypertarget{logger_8h_a5c4c4dba00ce08b2a3d0a6c7ab8daf92}{ -\index{logger.h@{logger.h}!logger\_\-level@{logger\_\-level}} -\index{logger\_\-level@{logger\_\-level}!logger.h@{logger.h}} -\subsubsection[{logger\_\-level}]{\setlength{\rightskip}{0pt plus 5cm}typedef enum {\bf logger\_\-level} {\bf logger\_\-level}}} -\label{logger_8h_a5c4c4dba00ce08b2a3d0a6c7ab8daf92} - - -\subsection{Enumeration Type Documentation} -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{ -\index{logger.h@{logger.h}!logger\_\-level@{logger\_\-level}} -\index{logger\_\-level@{logger\_\-level}!logger.h@{logger.h}} -\subsubsection[{logger\_\-level}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf logger\_\-level}}} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e} -\begin{Desc} -\item[Enumerator: ]\par -\begin{description} -\index{LOGGER\_\-DEBUG@{LOGGER\_\-DEBUG}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-DEBUG@{LOGGER\_\-DEBUG}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea30eb5eac34e7c2406c74fb78d9004f6c}{ -LOGGER\_\-DEBUG} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea30eb5eac34e7c2406c74fb78d9004f6c} -}]\index{LOGGER\_\-INFO@{LOGGER\_\-INFO}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-INFO@{LOGGER\_\-INFO}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea3a56c2c000665930df74a9ebf9047316}{ -LOGGER\_\-INFO} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea3a56c2c000665930df74a9ebf9047316} -}]\index{LOGGER\_\-NOTICE@{LOGGER\_\-NOTICE}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-NOTICE@{LOGGER\_\-NOTICE}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea8cc2b7c645b647fecb44f2e5a5aa7fa8}{ -LOGGER\_\-NOTICE} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea8cc2b7c645b647fecb44f2e5a5aa7fa8} -}]\index{LOGGER\_\-WARNING@{LOGGER\_\-WARNING}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-WARNING@{LOGGER\_\-WARNING}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea236a2401a6ed3e96611f3a14352082ad}{ -LOGGER\_\-WARNING} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea236a2401a6ed3e96611f3a14352082ad} -}]\index{LOGGER\_\-ERR@{LOGGER\_\-ERR}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-ERR@{LOGGER\_\-ERR}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eadea66ab9219dfd6addc90edf08ed96fb}{ -LOGGER\_\-ERR} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eadea66ab9219dfd6addc90edf08ed96fb} -}]\index{LOGGER\_\-CRIT@{LOGGER\_\-CRIT}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-CRIT@{LOGGER\_\-CRIT}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eaa7d55c7b377d82da77e532aa299eeeb0}{ -LOGGER\_\-CRIT} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eaa7d55c7b377d82da77e532aa299eeeb0} -}]\index{LOGGER\_\-ALERT@{LOGGER\_\-ALERT}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-ALERT@{LOGGER\_\-ALERT}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea55e6111bbd01c0bee4a7ca7373f31bc8}{ -LOGGER\_\-ALERT} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1ea55e6111bbd01c0bee4a7ca7373f31bc8} -}]\index{LOGGER\_\-EMERG@{LOGGER\_\-EMERG}!logger.h@{logger.h}}\index{logger.h@{logger.h}!LOGGER\_\-EMERG@{LOGGER\_\-EMERG}}\item[{\em -\hypertarget{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eabbdf8b92875d1e13023c293b21a467ec}{ -LOGGER\_\-EMERG} -\label{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1eabbdf8b92875d1e13023c293b21a467ec} -}]\end{description} -\end{Desc} - - - -Definition at line 6 of file logger.h. - - -\begin{DoxyCode} - { - LOGGER_DEBUG=0, - LOGGER_INFO, - LOGGER_NOTICE, - LOGGER_WARNING, - LOGGER_ERR, - LOGGER_CRIT, - LOGGER_ALERT, - LOGGER_EMERG -} logger_level; -\end{DoxyCode} - - -\subsection{Variable Documentation} -\hypertarget{logger_8h_a6f4ba515aab77f23138ce05b414ee616}{ -\index{logger.h@{logger.h}!logger\_\-level\_\-str@{logger\_\-level\_\-str}} -\index{logger\_\-level\_\-str@{logger\_\-level\_\-str}!logger.h@{logger.h}} -\subsubsection[{logger\_\-level\_\-str}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ const {\bf logger\_\-level\_\-str}\mbox{[}$\,$\mbox{]}}} -\label{logger_8h_a6f4ba515aab77f23138ce05b414ee616} - - -Definition at line 9 of file logger.c. - diff --git a/docs/latex/logger_8h__dep__incl.dot b/docs/latex/logger_8h__dep__incl.dot deleted file mode 100644 index 04212bd..0000000 --- a/docs/latex/logger_8h__dep__incl.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/logger.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="include/socket.h",height=0.2,width=0.4,color="black",URL="$socket_8h.html"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="include/server.h",height=0.2,width=0.4,color="black",URL="$server_8h.html"]; - Node1 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/logger_8h__dep__incl.md5 b/docs/latex/logger_8h__dep__incl.md5 deleted file mode 100644 index 380e5f7..0000000 --- a/docs/latex/logger_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f7a2abed7130c6ae3bf9dfc84d27450f \ No newline at end of file diff --git a/docs/latex/logger_8h__incl.dot b/docs/latex/logger_8h__incl.dot deleted file mode 100644 index 35bfcb0..0000000 --- a/docs/latex/logger_8h__incl.dot +++ /dev/null @@ -1,20 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/logger.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="black",URL="$class_8h.html"]; - Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node2 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node2 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node2 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="assert.h",height=0.2,width=0.4,color="grey75"]; - Node2 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="interface.h",height=0.2,width=0.4,color="black",URL="$interface_8h.html"]; - Node7 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/logger_8h__incl.md5 b/docs/latex/logger_8h__incl.md5 deleted file mode 100644 index 9f28c2b..0000000 --- a/docs/latex/logger_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -153ef79425ada7406c77fd58d85d501f \ No newline at end of file diff --git a/docs/latex/parse_8c.tex b/docs/latex/parse_8c.tex deleted file mode 100644 index d731c7f..0000000 --- a/docs/latex/parse_8c.tex +++ /dev/null @@ -1,222 +0,0 @@ -\hypertarget{parse_8c}{ -\section{src/http/request/parser/parse.c File Reference} -\label{parse_8c}\index{src/http/request/parser/parse.c@{src/http/request/parser/parse.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include $<$ctype.h$>$}\par -{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -Include dependency graph for parse.c: -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{parse_8c_a3d501f4eabec1eb9a20aed0a116b69a3}{REMAINS}(pars, done)~((pars)-\/$>$buffer\_\-used -\/ ((done) -\/ (pars)-\/$>$buffer)) -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{parse_8c_a187bf52da83090068bafea54589f6f69}{httpRequestParserGetRequestLine} (\hyperlink{structHttpRequest}{HttpRequest}, char $\ast$) -\item -void \hyperlink{parse_8c_a9bb74bc564fe961a7ab5459ef5806de6}{httpRequestParserParse} (\hyperlink{structHttpRequestParser}{HttpRequestParser} this) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{parse_8c_a3d501f4eabec1eb9a20aed0a116b69a3}{ -\index{parse.c@{parse.c}!REMAINS@{REMAINS}} -\index{REMAINS@{REMAINS}!parse.c@{parse.c}} -\subsubsection[{REMAINS}]{\setlength{\rightskip}{0pt plus 5cm}\#define REMAINS( -\begin{DoxyParamCaption} -\item[{}]{pars, } -\item[{}]{done} -\end{DoxyParamCaption} -)~((pars)-\/$>$buffer\_\-used -\/ ((done) -\/ (pars)-\/$>$buffer))}} -\label{parse_8c_a3d501f4eabec1eb9a20aed0a116b69a3} - - -Definition at line 10 of file parse.c. - - - -\subsection{Function Documentation} -\hypertarget{parse_8c_a187bf52da83090068bafea54589f6f69}{ -\index{parse.c@{parse.c}!httpRequestParserGetRequestLine@{httpRequestParserGetRequestLine}} -\index{httpRequestParserGetRequestLine@{httpRequestParserGetRequestLine}!parse.c@{parse.c}} -\subsubsection[{httpRequestParserGetRequestLine}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserGetRequestLine ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{, } -\item[{char $\ast$}]{} -\end{DoxyParamCaption} -)}} -\label{parse_8c_a187bf52da83090068bafea54589f6f69} - - -Definition at line 7 of file get\_\-request\_\-line.c. - - -\begin{DoxyCode} -{ - char * method, * uri, * version; - - method = line; - - uri = strchr(line, ' '); - *uri++ = 0; - for (; *uri == ' ' && *uri != 0; uri++); - - version = strchr(uri, ' '); - *version++ = 0; - for (; *version == ' ' && *version != 0; version++); - - request->method = malloc(strlen(method) + 1); - strcpy(request->method, method); - request->uri = malloc(strlen(uri) + 1); - strcpy(request->uri, uri); - request->version = malloc(strlen(version) + 1); - strcpy(request->version, method); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - -\hypertarget{parse_8c_a9bb74bc564fe961a7ab5459ef5806de6}{ -\index{parse.c@{parse.c}!httpRequestParserParse@{httpRequestParserParse}} -\index{httpRequestParserParse@{httpRequestParserParse}!parse.c@{parse.c}} -\subsubsection[{httpRequestParserParse}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserParse ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestParser}}]{this} -\end{DoxyParamCaption} -)}} -\label{parse_8c_a9bb74bc564fe961a7ab5459ef5806de6} - - -enqueue current request - -remove processed stuff from input buffer. - -dont continue loop if input buffer is empty - -prepare for next request - - - -Definition at line 43 of file parse.c. - - -\begin{DoxyCode} -{ - static HttpRequest request = NULL; - static char * data; // static pointer to unprocessed data - char * line; - int cont = 1; - - while(cont) { - switch(this->state) { - case HTTP_REQUEST_GARBAGE: - data = this->buffer; // initialize static pointer - - httpRequestSkip(&data); - request = new(HttpRequest); - - this->state = HTTP_REQUEST_START; - break; - - case HTTP_REQUEST_START: - if (NULL == (line = httpRequestParserGetLine(&dat - a))) { - cont = 0; - break; - } - - httpRequestParserGetRequestLine(request, line); - - this->state = HTTP_REQUEST_REQUEST_LINE_DONE; - break; - - case HTTP_REQUEST_REQUEST_LINE_DONE: - if (NULL == (line = httpRequestParserGetLine(&dat - a))) { - cont = 0; - break; - } - - if (0 == strlen(line)) { - this->state = HTTP_REQUEST_HEADERS_DONE; - break; - } - - httpRequestParserGetHeader(request, line); - break; - - case HTTP_REQUEST_HEADERS_DONE: - httpHeaderSort(request->header, request->nheader) - ; - - { - char * nbody; - - if (0 == request->nbody) { - nbody = httpHeaderGet( - request->header, - request->nheader, - - "Content-Length") - ; - - if (NULL == nbody) { - this->state = - HTTP_REQUEST_DONE; - break; - } - else { - request->nbody = atoi(nbo - dy); - } - } - - if (REMAINS(this, data) >= request-> - nbody) { - request->body = calloc(1, request - ->nbody + 1); - memcpy(request->body, data, reque - st->nbody); - data += request->nbody; - this->state = HTTP_REQUEST_DONE; - } - } - - break; - - case HTTP_REQUEST_DONE: - this->request_queue->requests[(this->request_queu - e->nrequests)++] = - request; - - memmove(this->buffer, data, REMAINS(this, data)); - - - this->buffer_used -= data - this->buffer; - - if (0 == this->buffer_used) { - cont = 0; - } - - this->state = HTTP_REQUEST_GARBAGE; - - break; - - default: - break; - } - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/parse_8c__incl.dot b/docs/latex/parse_8c__incl.dot deleted file mode 100644 index 51aa57b..0000000 --- a/docs/latex/parse_8c__incl.dot +++ /dev/null @@ -1,19 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/parser/parse.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="ctype.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="http/request_parser.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/parse_8c__incl.md5 b/docs/latex/parse_8c__incl.md5 deleted file mode 100644 index 39b49b7..0000000 --- a/docs/latex/parse_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -4fe243eae25c57683a537927f9df9ebd \ No newline at end of file diff --git a/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.dot b/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.dot deleted file mode 100644 index 89361ad..0000000 --- a/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpRequestParserGetRequestLine",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 b/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 deleted file mode 100644 index 60c9d9d..0000000 --- a/docs/latex/parse_8c_a187bf52da83090068bafea54589f6f69_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -32af75e9bb6a368f76224dfe5df3d13f \ No newline at end of file diff --git a/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.dot b/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.dot deleted file mode 100644 index 469b42b..0000000 --- a/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.dot +++ /dev/null @@ -1,16 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpRequestParserParse",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpHeaderGet",height=0.2,width=0.4,color="black",URL="$header_8h.html#a002a617a3523cbc79ba8ef6f76d98465"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="httpHeaderSort",height=0.2,width=0.4,color="black",URL="$header_8h.html#a43ccec0413f9f2e394bb3af5ff628b56"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="httpRequestParserGetHeader",height=0.2,width=0.4,color="black",URL="$get__header_8c.html#a53acbf83d2753cafdc4880dfc4f4222c"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="httpRequestParserGetRequestLine",height=0.2,width=0.4,color="black",URL="$get__request__line_8c.html#a47a4a36f54b295507a2599488a4a6077"]; -} diff --git a/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 b/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 deleted file mode 100644 index 2b7fecf..0000000 --- a/docs/latex/parse_8c_a9bb74bc564fe961a7ab5459ef5806de6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d1955a4780018691334460a35fd50964 \ No newline at end of file diff --git a/docs/latex/parser_8c.tex b/docs/latex/parser_8c.tex deleted file mode 100644 index 7a765ea..0000000 --- a/docs/latex/parser_8c.tex +++ /dev/null @@ -1,199 +0,0 @@ -\hypertarget{parser_8c}{ -\section{src/http/request/parser.c File Reference} -\label{parser_8c}\index{src/http/request/parser.c@{src/http/request/parser.c}} -} -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$sys/types.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/stream\_\-reader.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -Include dependency graph for parser.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{parser_8c_a659e7ea125685d797a099638b3376320}{httpRequestParserParse} (\hyperlink{structHttpRequestParser}{HttpRequestParser}) -\item -\hyperlink{parser_8c_a0508cf41efb8d26b8c43116711820d71}{INIT\_\-IFACE} (Class, ctor, dtor, \_\-clone) -\item -\hyperlink{parser_8c_a70f4eea7746a809dd8da71e9cbf4842a}{INIT\_\-IFACE} (StreamReader, get\_\-data) -\item -\hyperlink{parser_8c_a70093dfed29b221273e59f63936237b5}{CREATE\_\-CLASS} (\hyperlink{structHttpRequestParser}{HttpRequestParser}, NULL, IFACE(Class), IFACE(StreamReader)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{parser_8c_a70093dfed29b221273e59f63936237b5}{ -\index{parser.c@{parser.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!parser.c@{parser.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestParser}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{, } -\item[{IFACE(StreamReader)}]{} -\end{DoxyParamCaption} -)}} -\label{parser_8c_a70093dfed29b221273e59f63936237b5} -\hypertarget{parser_8c_a659e7ea125685d797a099638b3376320}{ -\index{parser.c@{parser.c}!httpRequestParserParse@{httpRequestParserParse}} -\index{httpRequestParserParse@{httpRequestParserParse}!parser.c@{parser.c}} -\subsubsection[{httpRequestParserParse}]{\setlength{\rightskip}{0pt plus 5cm}void httpRequestParserParse ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestParser}}]{} -\end{DoxyParamCaption} -)}} -\label{parser_8c_a659e7ea125685d797a099638b3376320} - - -enqueue current request - -remove processed stuff from input buffer. - -dont continue loop if input buffer is empty - -prepare for next request - - - -Definition at line 43 of file parse.c. - - -\begin{DoxyCode} -{ - static HttpRequest request = NULL; - static char * data; // static pointer to unprocessed data - char * line; - int cont = 1; - - while(cont) { - switch(this->state) { - case HTTP_REQUEST_GARBAGE: - data = this->buffer; // initialize static pointer - - httpRequestSkip(&data); - request = new(HttpRequest); - - this->state = HTTP_REQUEST_START; - break; - - case HTTP_REQUEST_START: - if (NULL == (line = httpRequestParserGetLine(&dat - a))) { - cont = 0; - break; - } - - httpRequestParserGetRequestLine(request, line); - - this->state = HTTP_REQUEST_REQUEST_LINE_DONE; - break; - - case HTTP_REQUEST_REQUEST_LINE_DONE: - if (NULL == (line = httpRequestParserGetLine(&dat - a))) { - cont = 0; - break; - } - - if (0 == strlen(line)) { - this->state = HTTP_REQUEST_HEADERS_DONE; - break; - } - - httpRequestParserGetHeader(request, line); - break; - - case HTTP_REQUEST_HEADERS_DONE: - httpHeaderSort(request->header, request->nheader) - ; - - { - char * nbody; - - if (0 == request->nbody) { - nbody = httpHeaderGet( - request->header, - request->nheader, - - "Content-Length") - ; - - if (NULL == nbody) { - this->state = - HTTP_REQUEST_DONE; - break; - } - else { - request->nbody = atoi(nbo - dy); - } - } - - if (REMAINS(this, data) >= request-> - nbody) { - request->body = calloc(1, request - ->nbody + 1); - memcpy(request->body, data, reque - st->nbody); - data += request->nbody; - this->state = HTTP_REQUEST_DONE; - } - } - - break; - - case HTTP_REQUEST_DONE: - this->request_queue->requests[(this->request_queu - e->nrequests)++] = - request; - - memmove(this->buffer, data, REMAINS(this, data)); - - - this->buffer_used -= data - this->buffer; - - if (0 == this->buffer_used) { - cont = 0; - } - - this->state = HTTP_REQUEST_GARBAGE; - - break; - - default: - break; - } - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - -\hypertarget{parser_8c_a0508cf41efb8d26b8c43116711820d71}{ -\index{parser.c@{parser.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!parser.c@{parser.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{\_\-clone}]{} -\end{DoxyParamCaption} -)}} -\label{parser_8c_a0508cf41efb8d26b8c43116711820d71} -\hypertarget{parser_8c_a70f4eea7746a809dd8da71e9cbf4842a}{ -\index{parser.c@{parser.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!parser.c@{parser.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{StreamReader}]{, } -\item[{get\_\-data}]{} -\end{DoxyParamCaption} -)}} -\label{parser_8c_a70f4eea7746a809dd8da71e9cbf4842a} diff --git a/docs/latex/parser_8c__incl.dot b/docs/latex/parser_8c__incl.dot deleted file mode 100644 index eb78bce..0000000 --- a/docs/latex/parser_8c__incl.dot +++ /dev/null @@ -1,25 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/parser.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="http/request_parser.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="interface/stream_reader.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid"]; - Node10 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/parser_8c__incl.md5 b/docs/latex/parser_8c__incl.md5 deleted file mode 100644 index c6129f9..0000000 --- a/docs/latex/parser_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -caa7c1473d92866499c65b983efa9b65 \ No newline at end of file diff --git a/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.dot b/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.dot deleted file mode 100644 index 469b42b..0000000 --- a/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.dot +++ /dev/null @@ -1,16 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpRequestParserParse",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpHeaderGet",height=0.2,width=0.4,color="black",URL="$header_8h.html#a002a617a3523cbc79ba8ef6f76d98465"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="httpHeaderSort",height=0.2,width=0.4,color="black",URL="$header_8h.html#a43ccec0413f9f2e394bb3af5ff628b56"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="httpRequestParserGetHeader",height=0.2,width=0.4,color="black",URL="$get__header_8c.html#a53acbf83d2753cafdc4880dfc4f4222c"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="httpRequestParserGetRequestLine",height=0.2,width=0.4,color="black",URL="$get__request__line_8c.html#a47a4a36f54b295507a2599488a4a6077"]; -} diff --git a/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 b/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 deleted file mode 100644 index 2b7fecf..0000000 --- a/docs/latex/parser_8c_a659e7ea125685d797a099638b3376320_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d1955a4780018691334460a35fd50964 \ No newline at end of file diff --git a/docs/latex/poll_8c.tex b/docs/latex/poll_8c.tex deleted file mode 100644 index 6301d65..0000000 --- a/docs/latex/poll_8c.tex +++ /dev/null @@ -1,26 +0,0 @@ -\hypertarget{poll_8c}{ -\section{src/server/poll.c File Reference} -\label{poll_8c}\index{src/server/poll.c@{src/server/poll.c}} -} -This graph shows which files directly or indirectly include this file: -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{poll_8c_aef9c98bcbff485b7c43831fe918ce4ac}{POLLFD}(ptr)~((struct pollfd $\ast$)(ptr)) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{poll_8c_aef9c98bcbff485b7c43831fe918ce4ac}{ -\index{poll.c@{poll.c}!POLLFD@{POLLFD}} -\index{POLLFD@{POLLFD}!poll.c@{poll.c}} -\subsubsection[{POLLFD}]{\setlength{\rightskip}{0pt plus 5cm}\#define POLLFD( -\begin{DoxyParamCaption} -\item[{}]{ptr} -\end{DoxyParamCaption} -)~((struct pollfd $\ast$)(ptr))}} -\label{poll_8c_aef9c98bcbff485b7c43831fe918ce4ac} - - -Definition at line 1 of file poll.c. - diff --git a/docs/latex/poll_8c__dep__incl.dot b/docs/latex/poll_8c__dep__incl.dot deleted file mode 100644 index 139a099..0000000 --- a/docs/latex/poll_8c__dep__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server/poll.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="src/server/run.c",height=0.2,width=0.4,color="black",URL="$run_8c.html"]; -} diff --git a/docs/latex/poll_8c__dep__incl.md5 b/docs/latex/poll_8c__dep__incl.md5 deleted file mode 100644 index 3dbc544..0000000 --- a/docs/latex/poll_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d4cde99efc4a70ad19caaef72552d897 \ No newline at end of file diff --git a/docs/latex/queue_8c.tex b/docs/latex/queue_8c.tex deleted file mode 100644 index 854e0e0..0000000 --- a/docs/latex/queue_8c.tex +++ /dev/null @@ -1,42 +0,0 @@ -\hypertarget{queue_8c}{ -\section{src/http/request/queue.c File Reference} -\label{queue_8c}\index{src/http/request/queue.c@{src/http/request/queue.c}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -Include dependency graph for queue.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{queue_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{queue_8c_aebf96b69aa671f499918b976cd20c087}{CREATE\_\-CLASS} (\hyperlink{structHttpRequestQueue}{HttpRequestQueue}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{queue_8c_aebf96b69aa671f499918b976cd20c087}{ -\index{queue.c@{queue.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!queue.c@{queue.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestQueue}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{queue_8c_aebf96b69aa671f499918b976cd20c087} -\hypertarget{queue_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{queue.c@{queue.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!queue.c@{queue.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{queue_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/queue_8c__incl.dot b/docs/latex/queue_8c__incl.dot deleted file mode 100644 index c0bb671..0000000 --- a/docs/latex/queue_8c__incl.dot +++ /dev/null @@ -1,15 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request/queue.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/queue_8c__incl.md5 b/docs/latex/queue_8c__incl.md5 deleted file mode 100644 index 7ac5f14..0000000 --- a/docs/latex/queue_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -38c95c9bb9809adfd5ad5d0894597e8f \ No newline at end of file diff --git a/docs/latex/read_8c.tex b/docs/latex/read_8c.tex deleted file mode 100644 index 28d5853..0000000 --- a/docs/latex/read_8c.tex +++ /dev/null @@ -1,5 +0,0 @@ -\hypertarget{read_8c}{ -\section{src/server/read.c File Reference} -\label{read_8c}\index{src/server/read.c@{src/server/read.c}} -} -This graph shows which files directly or indirectly include this file: diff --git a/docs/latex/read_8c__dep__incl.dot b/docs/latex/read_8c__dep__incl.dot deleted file mode 100644 index 0f71800..0000000 --- a/docs/latex/read_8c__dep__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server/read.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="src/server/run.c",height=0.2,width=0.4,color="black",URL="$run_8c.html"]; -} diff --git a/docs/latex/read_8c__dep__incl.md5 b/docs/latex/read_8c__dep__incl.md5 deleted file mode 100644 index be214ab..0000000 --- a/docs/latex/read_8c__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -0e9313dd220094a0b8b5a9c33e3c622e \ No newline at end of file diff --git a/docs/latex/refman.tex b/docs/latex/refman.tex deleted file mode 100644 index e03054a..0000000 --- a/docs/latex/refman.tex +++ /dev/null @@ -1,125 +0,0 @@ -\documentclass[a4paper]{book} -\usepackage{makeidx} -\usepackage{graphicx} -\usepackage{multicol} -\usepackage{float} -\usepackage{listings} -\usepackage{color} -\usepackage{ifthen} -\usepackage[table]{xcolor} -\usepackage{textcomp} -\usepackage{alltt} -\usepackage{ifpdf} -\ifpdf -\usepackage[pdftex, - pagebackref=true, - colorlinks=true, - linkcolor=blue, - unicode - ]{hyperref} -\else -\usepackage[ps2pdf, - pagebackref=true, - colorlinks=true, - linkcolor=blue, - unicode - ]{hyperref} -\usepackage{pspicture} -\fi -\usepackage[utf8]{inputenc} -\usepackage{mathptmx} -\usepackage[scaled=.90]{helvet} -\usepackage{courier} -\usepackage{doxygen} -\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=8,numbers=left } -\makeindex -\setcounter{tocdepth}{3} -\renewcommand{\footrulewidth}{0.4pt} -\begin{document} -\hypersetup{pageanchor=false} -\begin{titlepage} -\vspace*{7cm} -\begin{center} -{\Large server \\[1ex]\large 0.0.1 }\\ -\vspace*{1cm} -{\large Generated by Doxygen 1.7.3}\\ -\vspace*{0.5cm} -{\small Thu Feb 9 2012 22:38:12}\\ -\end{center} -\end{titlepage} -\clearemptydoublepage -\pagenumbering{roman} -\tableofcontents -\clearemptydoublepage -\pagenumbering{arabic} -\hypersetup{pageanchor=true} -\chapter{Class Index} -\input{annotated} -\chapter{File Index} -\input{files} -\chapter{Class Documentation} -\input{structclass} -\input{structHttpHeader} -\input{structHttpRequest} -\input{structHttpRequestParser} -\input{structHttpRequestQueue} -\input{structHttpResponse} -\input{structi__Class} -\input{structi__Logger} -\input{structi__StreamReader} -\input{structiface__impl} -\input{structinterface} -\input{structLogger} -\input{structLoggerStderr} -\input{structLoggerSyslog} -\input{structServer} -\input{structSock} -\chapter{File Documentation} -\input{config_8h} -\input{class_8h} -\input{interface_2class_8h} -\input{header_8h} -\input{request_8h} -\input{request__parser_8h} -\input{request__queue_8h} -\input{response_8h} -\input{interface_8h} -\input{interface_2logger_8h} -\input{logger_8h} -\input{stream__reader_8h} -\input{server_8h} -\input{signalHandling_8h} -\input{socket_8h} -\input{class_8c} -\input{interface_2class_8c} -\input{daemonize_8c} -\input{header_8c} -\input{get_8c} -\input{sort_8c} -\input{request_8c} -\input{header__get_8c} -\input{parser_8c} -\input{get__header_8c} -\input{get__request__line_8c} -\input{parse_8c} -\input{queue_8c} -\input{interface_8c} -\input{interface_2logger_8c} -\input{logger_8c} -\input{stream__reader_8c} -\input{stderr_8c} -\input{syslog_8c} -\input{server_8c} -\input{close__conn_8c} -\input{handle__accept_8c} -\input{poll_8c} -\input{read_8c} -\input{run_8c} -\input{signalHandling_8c} -\input{socket_8c} -\input{accept_8c} -\input{connect_8c} -\input{listen_8c} -\input{testserver_8c} -\printindex -\end{document} diff --git a/docs/latex/request_8c.tex b/docs/latex/request_8c.tex deleted file mode 100644 index 7d2588c..0000000 --- a/docs/latex/request_8c.tex +++ /dev/null @@ -1,43 +0,0 @@ -\hypertarget{request_8c}{ -\section{src/http/request.c File Reference} -\label{request_8c}\index{src/http/request.c@{src/http/request.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -Include dependency graph for request.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{request_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{request_8c_a3eb93e136cdb6fe8cd7ae90040020852}{CREATE\_\-CLASS} (\hyperlink{structHttpRequest}{HttpRequest}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{request_8c_a3eb93e136cdb6fe8cd7ae90040020852}{ -\index{request.c@{request.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!request.c@{request.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{request_8c_a3eb93e136cdb6fe8cd7ae90040020852} -\hypertarget{request_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{request.c@{request.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!request.c@{request.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{request_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/request_8c__incl.dot b/docs/latex/request_8c__incl.dot deleted file mode 100644 index 5da78f9..0000000 --- a/docs/latex/request_8c__incl.dot +++ /dev/null @@ -1,17 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request_8c__incl.md5 b/docs/latex/request_8c__incl.md5 deleted file mode 100644 index 87a6f57..0000000 --- a/docs/latex/request_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -378072bbb519175e128e7ef34710ddf3 \ No newline at end of file diff --git a/docs/latex/request_8h.tex b/docs/latex/request_8h.tex deleted file mode 100644 index b7bee75..0000000 --- a/docs/latex/request_8h.tex +++ /dev/null @@ -1,50 +0,0 @@ -\hypertarget{request_8h}{ -\section{include/http/request.h File Reference} -\label{request_8h}\index{include/http/request.h@{include/http/request.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par -Include dependency graph for request.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structHttpRequest}{HttpRequest} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{request_8h_abe5df7e20fea66f7926cf40df8250f26}{httpRequestHeaderGet} (\hyperlink{structHttpRequest}{HttpRequest} this, const char $\ast$name) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{request_8h_abe5df7e20fea66f7926cf40df8250f26}{ -\index{request.h@{request.h}!httpRequestHeaderGet@{httpRequestHeaderGet}} -\index{httpRequestHeaderGet@{httpRequestHeaderGet}!request.h@{request.h}} -\subsubsection[{httpRequestHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpRequestHeaderGet ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{this, } -\item[{const char $\ast$}]{name} -\end{DoxyParamCaption} -)}} -\label{request_8h_abe5df7e20fea66f7926cf40df8250f26} - - -Definition at line 31 of file header\_\-get.c. - - -\begin{DoxyCode} -{ - unsigned long hash = sdbm((unsigned char *)name); - struct HttpRequestHeader * header; - - header = bsearch( - &hash, - this->header, - this->nheader, - sizeof(struct HttpRequestHeader), - comp); - - return (NULL != header)? header->value : NULL; -} -\end{DoxyCode} diff --git a/docs/latex/request_8h__incl.dot b/docs/latex/request_8h__incl.dot deleted file mode 100644 index 4fc35b1..0000000 --- a/docs/latex/request_8h__incl.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/http/request.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="http/header.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request_8h__incl.md5 b/docs/latex/request_8h__incl.md5 deleted file mode 100644 index 4cf3a3f..0000000 --- a/docs/latex/request_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -9f11d61c0b29a488cacb9dfaabd8c21c \ No newline at end of file diff --git a/docs/latex/request__parser_8c.tex b/docs/latex/request__parser_8c.tex deleted file mode 100644 index d5ca7b1..0000000 --- a/docs/latex/request__parser_8c.tex +++ /dev/null @@ -1,63 +0,0 @@ -\hypertarget{request__parser_8c}{ -\section{src/http/request\_\-parser.c File Reference} -\label{request__parser_8c}\index{src/http/request\_\-parser.c@{src/http/request\_\-parser.c}} -} -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include $<$ctype.h$>$}\par -{\ttfamily \#include $<$sys/types.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/stream\_\-reader.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -Include dependency graph for request\_\-parser.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{request__parser_8c_a0508cf41efb8d26b8c43116711820d71}{INIT\_\-IFACE} (Class, ctor, dtor, \_\-clone) -\item -\hyperlink{request__parser_8c_a70f4eea7746a809dd8da71e9cbf4842a}{INIT\_\-IFACE} (StreamReader, get\_\-data) -\item -\hyperlink{request__parser_8c_a70093dfed29b221273e59f63936237b5}{CREATE\_\-CLASS} (\hyperlink{structHttpRequestParser}{HttpRequestParser}, NULL, IFACE(Class), IFACE(StreamReader)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{request__parser_8c_a70093dfed29b221273e59f63936237b5}{ -\index{request\_\-parser.c@{request\_\-parser.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!request_parser.c@{request\_\-parser.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestParser}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{, } -\item[{IFACE(StreamReader)}]{} -\end{DoxyParamCaption} -)}} -\label{request__parser_8c_a70093dfed29b221273e59f63936237b5} -\hypertarget{request__parser_8c_a0508cf41efb8d26b8c43116711820d71}{ -\index{request\_\-parser.c@{request\_\-parser.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!request_parser.c@{request\_\-parser.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{\_\-clone}]{} -\end{DoxyParamCaption} -)}} -\label{request__parser_8c_a0508cf41efb8d26b8c43116711820d71} -\hypertarget{request__parser_8c_a70f4eea7746a809dd8da71e9cbf4842a}{ -\index{request\_\-parser.c@{request\_\-parser.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!request_parser.c@{request\_\-parser.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{StreamReader}]{, } -\item[{get\_\-data}]{} -\end{DoxyParamCaption} -)}} -\label{request__parser_8c_a70f4eea7746a809dd8da71e9cbf4842a} diff --git a/docs/latex/request__parser_8c__incl.dot b/docs/latex/request__parser_8c__incl.dot deleted file mode 100644 index 51592d4..0000000 --- a/docs/latex/request__parser_8c__incl.dot +++ /dev/null @@ -1,31 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request_parser.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="ctype.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="http/request_parser.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid"]; - Node10 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid"]; - Node11 [label="interface/stream_reader.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid"]; - Node12 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid"]; - Node13 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request__parser_8c__incl.md5 b/docs/latex/request__parser_8c__incl.md5 deleted file mode 100644 index 5a46c08..0000000 --- a/docs/latex/request__parser_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -e5c3db015d7ff4276a9569d02cfe2142 \ No newline at end of file diff --git a/docs/latex/request__parser_8h.tex b/docs/latex/request__parser_8h.tex deleted file mode 100644 index 7133db7..0000000 --- a/docs/latex/request__parser_8h.tex +++ /dev/null @@ -1,102 +0,0 @@ -\hypertarget{request__parser_8h}{ -\section{include/http/request\_\-parser.h File Reference} -\label{request__parser_8h}\index{include/http/request\_\-parser.h@{include/http/request\_\-parser.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -Include dependency graph for request\_\-parser.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structHttpRequestParser}{HttpRequestParser} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{request__parser_8h_ad645c7940041e8d57b5557a197e133fb}{HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK}~1024 -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef enum \hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21}{e\_\-HttpRequestState} \hyperlink{request__parser_8h_acaccfe3e34d50afe26e415749f7f4827}{HttpRequestState} -\end{DoxyCompactItemize} -\subsection*{Enumerations} -\begin{DoxyCompactItemize} -\item -enum \hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21}{e\_\-HttpRequestState} \{ \par -\hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21ab3db7445ba173b1f1e96920cc9a68ce5}{HTTP\_\-REQUEST\_\-GARBAGE} = 0, -\hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21adb7cd42594721f63ab68224a0b1c250a}{HTTP\_\-REQUEST\_\-START}, -\hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a7d6368bbdc9707276bace26d735c2395}{HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE}, -\hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a1a45d176d7e76f28cf1529c72a245cb7}{HTTP\_\-REQUEST\_\-HEADERS\_\-DONE}, -\par -\hyperlink{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21abb5b68f30f3d5e90723983a86ef54a8b}{HTTP\_\-REQUEST\_\-DONE} - \} -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{request__parser_8h_ad645c7940041e8d57b5557a197e133fb}{ -\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK@{HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK}} -\index{HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK@{HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK}!request_parser.h@{request\_\-parser.h}} -\subsubsection[{HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK}]{\setlength{\rightskip}{0pt plus 5cm}\#define HTTP\_\-REQUEST\_\-PARSER\_\-READ\_\-CHUNK~1024}} -\label{request__parser_8h_ad645c7940041e8d57b5557a197e133fb} - - -Definition at line 7 of file request\_\-parser.h. - - - -\subsection{Typedef Documentation} -\hypertarget{request__parser_8h_acaccfe3e34d50afe26e415749f7f4827}{ -\index{request\_\-parser.h@{request\_\-parser.h}!HttpRequestState@{HttpRequestState}} -\index{HttpRequestState@{HttpRequestState}!request_parser.h@{request\_\-parser.h}} -\subsubsection[{HttpRequestState}]{\setlength{\rightskip}{0pt plus 5cm}typedef enum {\bf e\_\-HttpRequestState} {\bf HttpRequestState}}} -\label{request__parser_8h_acaccfe3e34d50afe26e415749f7f4827} - - -\subsection{Enumeration Type Documentation} -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21}{ -\index{request\_\-parser.h@{request\_\-parser.h}!e\_\-HttpRequestState@{e\_\-HttpRequestState}} -\index{e\_\-HttpRequestState@{e\_\-HttpRequestState}!request_parser.h@{request\_\-parser.h}} -\subsubsection[{e\_\-HttpRequestState}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf e\_\-HttpRequestState}}} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21} -\begin{Desc} -\item[Enumerator: ]\par -\begin{description} -\index{HTTP\_\-REQUEST\_\-GARBAGE@{HTTP\_\-REQUEST\_\-GARBAGE}!request\_\-parser.h@{request\_\-parser.h}}\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-GARBAGE@{HTTP\_\-REQUEST\_\-GARBAGE}}\item[{\em -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21ab3db7445ba173b1f1e96920cc9a68ce5}{ -HTTP\_\-REQUEST\_\-GARBAGE} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21ab3db7445ba173b1f1e96920cc9a68ce5} -}]\index{HTTP\_\-REQUEST\_\-START@{HTTP\_\-REQUEST\_\-START}!request\_\-parser.h@{request\_\-parser.h}}\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-START@{HTTP\_\-REQUEST\_\-START}}\item[{\em -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21adb7cd42594721f63ab68224a0b1c250a}{ -HTTP\_\-REQUEST\_\-START} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21adb7cd42594721f63ab68224a0b1c250a} -}]\index{HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE@{HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE}!request\_\-parser.h@{request\_\-parser.h}}\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE@{HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE}}\item[{\em -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a7d6368bbdc9707276bace26d735c2395}{ -HTTP\_\-REQUEST\_\-REQUEST\_\-LINE\_\-DONE} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a7d6368bbdc9707276bace26d735c2395} -}]\index{HTTP\_\-REQUEST\_\-HEADERS\_\-DONE@{HTTP\_\-REQUEST\_\-HEADERS\_\-DONE}!request\_\-parser.h@{request\_\-parser.h}}\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-HEADERS\_\-DONE@{HTTP\_\-REQUEST\_\-HEADERS\_\-DONE}}\item[{\em -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a1a45d176d7e76f28cf1529c72a245cb7}{ -HTTP\_\-REQUEST\_\-HEADERS\_\-DONE} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21a1a45d176d7e76f28cf1529c72a245cb7} -}]\index{HTTP\_\-REQUEST\_\-DONE@{HTTP\_\-REQUEST\_\-DONE}!request\_\-parser.h@{request\_\-parser.h}}\index{request\_\-parser.h@{request\_\-parser.h}!HTTP\_\-REQUEST\_\-DONE@{HTTP\_\-REQUEST\_\-DONE}}\item[{\em -\hypertarget{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21abb5b68f30f3d5e90723983a86ef54a8b}{ -HTTP\_\-REQUEST\_\-DONE} -\label{request__parser_8h_a9e1bc4e9118896fae9e2d86e25582c21abb5b68f30f3d5e90723983a86ef54a8b} -}]\end{description} -\end{Desc} - - - -Definition at line 9 of file request\_\-parser.h. - - -\begin{DoxyCode} - { - HTTP_REQUEST_GARBAGE=0, - HTTP_REQUEST_START, - HTTP_REQUEST_REQUEST_LINE_DONE, - HTTP_REQUEST_HEADERS_DONE, - HTTP_REQUEST_DONE -} HttpRequestState; -\end{DoxyCode} diff --git a/docs/latex/request__parser_8h__incl.dot b/docs/latex/request__parser_8h__incl.dot deleted file mode 100644 index 710c3e3..0000000 --- a/docs/latex/request__parser_8h__incl.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/http/request_parser.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request__parser_8h__incl.md5 b/docs/latex/request__parser_8h__incl.md5 deleted file mode 100644 index 6b2339f..0000000 --- a/docs/latex/request__parser_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -f4353f096084b5a858371ea1064eadf9 \ No newline at end of file diff --git a/docs/latex/request__queue_8c.tex b/docs/latex/request__queue_8c.tex deleted file mode 100644 index ac90e1b..0000000 --- a/docs/latex/request__queue_8c.tex +++ /dev/null @@ -1,42 +0,0 @@ -\hypertarget{request__queue_8c}{ -\section{src/http/request\_\-queue.c File Reference} -\label{request__queue_8c}\index{src/http/request\_\-queue.c@{src/http/request\_\-queue.c}} -} -{\ttfamily \#include $<$stdarg.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -Include dependency graph for request\_\-queue.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{request__queue_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{request__queue_8c_aebf96b69aa671f499918b976cd20c087}{CREATE\_\-CLASS} (\hyperlink{structHttpRequestQueue}{HttpRequestQueue}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{request__queue_8c_aebf96b69aa671f499918b976cd20c087}{ -\index{request\_\-queue.c@{request\_\-queue.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!request_queue.c@{request\_\-queue.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequestQueue}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{request__queue_8c_aebf96b69aa671f499918b976cd20c087} -\hypertarget{request__queue_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{request\_\-queue.c@{request\_\-queue.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!request_queue.c@{request\_\-queue.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{request__queue_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/request__queue_8c__incl.dot b/docs/latex/request__queue_8c__incl.dot deleted file mode 100644 index 281352d..0000000 --- a/docs/latex/request__queue_8c__incl.dot +++ /dev/null @@ -1,15 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/request_queue.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request__queue_8c__incl.md5 b/docs/latex/request__queue_8c__incl.md5 deleted file mode 100644 index d3358b8..0000000 --- a/docs/latex/request__queue_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -a0d6a7af2ddaac59429db9a94dbf5e2a \ No newline at end of file diff --git a/docs/latex/request__queue_8h.tex b/docs/latex/request__queue_8h.tex deleted file mode 100644 index 2f3fb3c..0000000 --- a/docs/latex/request__queue_8h.tex +++ /dev/null @@ -1,29 +0,0 @@ -\hypertarget{request__queue_8h}{ -\section{include/http/request\_\-queue.h File Reference} -\label{request__queue_8h}\index{include/http/request\_\-queue.h@{include/http/request\_\-queue.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -Include dependency graph for request\_\-queue.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structHttpRequestQueue}{HttpRequestQueue} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{request__queue_8h_a0da148930da7187cea2a610466756a30}{HTTP\_\-REQUEST\_\-QUEUE\_\-MAX}~1024 -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{request__queue_8h_a0da148930da7187cea2a610466756a30}{ -\index{request\_\-queue.h@{request\_\-queue.h}!HTTP\_\-REQUEST\_\-QUEUE\_\-MAX@{HTTP\_\-REQUEST\_\-QUEUE\_\-MAX}} -\index{HTTP\_\-REQUEST\_\-QUEUE\_\-MAX@{HTTP\_\-REQUEST\_\-QUEUE\_\-MAX}!request_queue.h@{request\_\-queue.h}} -\subsubsection[{HTTP\_\-REQUEST\_\-QUEUE\_\-MAX}]{\setlength{\rightskip}{0pt plus 5cm}\#define HTTP\_\-REQUEST\_\-QUEUE\_\-MAX~1024}} -\label{request__queue_8h_a0da148930da7187cea2a610466756a30} - - -Definition at line 7 of file request\_\-queue.h. - diff --git a/docs/latex/request__queue_8h__incl.dot b/docs/latex/request__queue_8h__incl.dot deleted file mode 100644 index 6c6b8e6..0000000 --- a/docs/latex/request__queue_8h__incl.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/http/request_queue.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/request__queue_8h__incl.md5 b/docs/latex/request__queue_8h__incl.md5 deleted file mode 100644 index ee792c5..0000000 --- a/docs/latex/request__queue_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -d872b444a33dd71853cb83214c7f37e8 \ No newline at end of file diff --git a/docs/latex/response_8h.tex b/docs/latex/response_8h.tex deleted file mode 100644 index cd32e6c..0000000 --- a/docs/latex/response_8h.tex +++ /dev/null @@ -1,49 +0,0 @@ -\hypertarget{response_8h}{ -\section{include/http/response.h File Reference} -\label{response_8h}\index{include/http/response.h@{include/http/response.h}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -Include dependency graph for response.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structHttpResponse}{HttpResponse} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{response_8h_abe5df7e20fea66f7926cf40df8250f26}{httpRequestHeaderGet} (\hyperlink{structHttpRequest}{HttpRequest} this, const char $\ast$name) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{response_8h_abe5df7e20fea66f7926cf40df8250f26}{ -\index{response.h@{response.h}!httpRequestHeaderGet@{httpRequestHeaderGet}} -\index{httpRequestHeaderGet@{httpRequestHeaderGet}!response.h@{response.h}} -\subsubsection[{httpRequestHeaderGet}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ httpRequestHeaderGet ( -\begin{DoxyParamCaption} -\item[{{\bf HttpRequest}}]{this, } -\item[{const char $\ast$}]{name} -\end{DoxyParamCaption} -)}} -\label{response_8h_abe5df7e20fea66f7926cf40df8250f26} - - -Definition at line 31 of file header\_\-get.c. - - -\begin{DoxyCode} -{ - unsigned long hash = sdbm((unsigned char *)name); - struct HttpRequestHeader * header; - - header = bsearch( - &hash, - this->header, - this->nheader, - sizeof(struct HttpRequestHeader), - comp); - - return (NULL != header)? header->value : NULL; -} -\end{DoxyCode} diff --git a/docs/latex/response_8h__incl.dot b/docs/latex/response_8h__incl.dot deleted file mode 100644 index bb64399..0000000 --- a/docs/latex/response_8h__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/http/response.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/response_8h__incl.md5 b/docs/latex/response_8h__incl.md5 deleted file mode 100644 index 002202c..0000000 --- a/docs/latex/response_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -7bccce1a3913af4e4d03233b94fb45c8 \ No newline at end of file diff --git a/docs/latex/run_8c.tex b/docs/latex/run_8c.tex deleted file mode 100644 index 62beed6..0000000 --- a/docs/latex/run_8c.tex +++ /dev/null @@ -1,251 +0,0 @@ -\hypertarget{run_8c}{ -\section{src/server/run.c File Reference} -\label{run_8c}\index{src/server/run.c@{src/server/run.c}} -} -{\ttfamily \#include $<$poll.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$errno.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include $<$time.h$>$}\par -{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}signalHandling.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/stream\_\-reader.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-queue.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}poll.c\char`\"{}}\par -{\ttfamily \#include \char`\"{}handle\_\-accept.c\char`\"{}}\par -{\ttfamily \#include \char`\"{}read.c\char`\"{}}\par -Include dependency graph for run.c: -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{run_8c_aacc3ee1a7f283f8ef65cea31f4436a95}{MAX}(x, y)~((x) $>$ (y) ? (x) : (y)) -\item -\#define \hyperlink{run_8c_a62de8b169a3e2f03f0e793aee87b3758}{RESP\_\-HEAD} -\item -\#define \hyperlink{run_8c_a668b468f247abfce706ce6eaf6caecc9}{RESP\_\-DATA} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{run_8c_a67a4d9073b80d8ae1459fb11ddd23675}{serverRun} (\hyperlink{structServer}{Server} this) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{run_8c_aacc3ee1a7f283f8ef65cea31f4436a95}{ -\index{run.c@{run.c}!MAX@{MAX}} -\index{MAX@{MAX}!run.c@{run.c}} -\subsubsection[{MAX}]{\setlength{\rightskip}{0pt plus 5cm}\#define MAX( -\begin{DoxyParamCaption} -\item[{}]{x, } -\item[{}]{y} -\end{DoxyParamCaption} -)~((x) $>$ (y) ? (x) : (y))}} -\label{run_8c_aacc3ee1a7f283f8ef65cea31f4436a95} - - -Definition at line 23 of file run.c. - -\hypertarget{run_8c_a668b468f247abfce706ce6eaf6caecc9}{ -\index{run.c@{run.c}!RESP\_\-DATA@{RESP\_\-DATA}} -\index{RESP\_\-DATA@{RESP\_\-DATA}!run.c@{run.c}} -\subsubsection[{RESP\_\-DATA}]{\setlength{\rightskip}{0pt plus 5cm}\#define RESP\_\-DATA}} -\label{run_8c_a668b468f247abfce706ce6eaf6caecc9} -{\bfseries Value:} -\begin{DoxyCode} -"\n" \ - "\n" \ - "\n" \ - "404 - Not F - ound" \ - "

404 - Not Foun - d

" \ - "" -\end{DoxyCode} -\hypertarget{run_8c_a62de8b169a3e2f03f0e793aee87b3758}{ -\index{run.c@{run.c}!RESP\_\-HEAD@{RESP\_\-HEAD}} -\index{RESP\_\-HEAD@{RESP\_\-HEAD}!run.c@{run.c}} -\subsubsection[{RESP\_\-HEAD}]{\setlength{\rightskip}{0pt plus 5cm}\#define RESP\_\-HEAD}} -\label{run_8c_a62de8b169a3e2f03f0e793aee87b3758} -{\bfseries Value:} -\begin{DoxyCode} -"HTTP/1.1 404 Not Found\r\n" \ - "Content-Type: text/html\ - r\n" \ - "Content-Length: %lu\r\n" - \ - "Date: %s\r\n" \ - "Server: testserver\r\n" -\end{DoxyCode} - - -\subsection{Function Documentation} -\hypertarget{run_8c_a67a4d9073b80d8ae1459fb11ddd23675}{ -\index{run.c@{run.c}!serverRun@{serverRun}} -\index{serverRun@{serverRun}!run.c@{run.c}} -\subsubsection[{serverRun}]{\setlength{\rightskip}{0pt plus 5cm}void serverRun ( -\begin{DoxyParamCaption} -\item[{{\bf Server}}]{this} -\end{DoxyParamCaption} -)}} -\label{run_8c_a67a4d9073b80d8ae1459fb11ddd23675} - - -: actually this is the main loop of my server. When stuff becomes more complicated it might be feasabible to split stuff into separate processes. This will definetly involve some IPC and syncing. Right now as this is actually only a simple HTTP server implementation we go on with this single process. What we can first do to get some processing between read/write cicles is to use the poll timeout. - -handle accept - -handle reads - -do some other processing : actually this will hard assume that our stream reader is a http parser and it has its queue...think about more generalizing here. - -: for now simply remove request and send not found. Make this sane. - -: the complete response stuff have to be removed here. - -: just to send an answer and be able to make some apache benchs i do it here...this definetly MUST BE moved - -handle writes - - - -Definition at line 30 of file run.c. - - -\begin{DoxyCode} -{ - loggerLog(this->logger, LOGGER_INFO, "service started"); - - while (!doShutdown) /* until error or signal */ - { - int events; - unsigned int i; - - events = serverPoll(this); - if (doShutdown) break; - - for (i=0; i < events; i++) { - int fd = (this->fds)[i].fd; - //int nreads = 0, nwrites = 0; - - if (0 != ((this->fds)[i].revents & POLLIN)) { - if (this->sock->handle == (this->fds)[i].fd) { - serverHandleAccept(this); - } - - else { - int size; - if (0 < (size=serverRead(this, i))) { - int j; - HttpRequestQueue queue = - ((HttpRequestParser)(this - ->conns)[fd].reader)->request_queue; - - for (j=0; jnrequests; j++ - ) { - HttpRequest request = que - ue->requests[j]; - - //if (NULL != request->bo - dy) { - // puts("==REQUEST B - ODY=="); - // puts(request->bod - y); - //} - - delete(&request); - - time_t t; - struct tm * tmp; - char timestr[200]; - -#define RESP_HEAD "HTTP/1.1 404 Not Found\r\n" \ - "Content-Type: text/html\ - r\n" \ - "Content-Length: %lu\r\n" - \ - "Date: %s\r\n" \ - "Server: testserver\r\n" - -#define RESP_DATA "\n" \ - "\n" \ - "\n" \ - "404 - Not F - ound" \ - "

404 - Not Foun - d

" \ - "" - - t = time(NULL); - tmp = localtime(&t); - strftime(timestr, sizeof( - timestr), "%a, %d %b %Y %T %Z", tmp); - - sprintf((this->conns)[fd] - .wbuf, RESP_HEAD "\r\n" RESP_DATA, sizeof(RESP_DATA), timestr); - (this->fds)[i].events = ( - this->fds)[i].events | POLLOUT; - } - - queue->nrequests = 0; - } - } - } - - if (0 != ((this->fds)[i].revents & POLLOUT)) { - int size; - - size = write( - (this->fds)[i].fd, - (this->conns)[fd].wbuf, - strlen((this->conns)[fd].wbuf)); - - if (size == strlen((this->conns)[fd].wbuf) || - -1 == size) { - if (-1 == size) { - loggerLog(this->logger, - LOGGER_ERR, - "write error, clo - sing connection"); - } - - serverCloseConn(this, i); - } - else { - memmove((this->conns)[fd].wbuf, - (this->conns)[fd].wbuf + - size, - strlen((this->conns)[fd]. - wbuf) - size + 1); - } - } - } - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - - - -Here is the caller graph for this function: - - diff --git a/docs/latex/run_8c__incl.dot b/docs/latex/run_8c__incl.dot deleted file mode 100644 index 39f64a9..0000000 --- a/docs/latex/run_8c__incl.dot +++ /dev/null @@ -1,45 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server/run.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="poll.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="errno.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="time.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="server.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid"]; - Node10 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node11 [color="midnightblue",fontsize="10",style="solid"]; - Node11 [label="signalHandling.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid"]; - Node12 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node13 [color="midnightblue",fontsize="10",style="solid"]; - Node13 [label="interface/stream_reader.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node14 [color="midnightblue",fontsize="10",style="solid"]; - Node14 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node15 [color="midnightblue",fontsize="10",style="solid"]; - Node15 [label="http/request.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node16 [color="midnightblue",fontsize="10",style="solid"]; - Node16 [label="http/request_parser.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node17 [color="midnightblue",fontsize="10",style="solid"]; - Node17 [label="http/request_queue.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node18 [color="midnightblue",fontsize="10",style="solid"]; - Node18 [label="poll.c",height=0.2,width=0.4,color="black",URL="$poll_8c.html"]; - Node1 -> Node19 [color="midnightblue",fontsize="10",style="solid"]; - Node19 [label="handle_accept.c",height=0.2,width=0.4,color="black",URL="$handle__accept_8c.html"]; - Node1 -> Node20 [color="midnightblue",fontsize="10",style="solid"]; - Node20 [label="read.c",height=0.2,width=0.4,color="black",URL="$read_8c.html"]; -} diff --git a/docs/latex/run_8c__incl.md5 b/docs/latex/run_8c__incl.md5 deleted file mode 100644 index 75068e2..0000000 --- a/docs/latex/run_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -8e7e67f71f253716d115fb4fdf370888 \ No newline at end of file diff --git a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot b/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot deleted file mode 100644 index 21ff4d4..0000000 --- a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverRun",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="serverCloseConn",height=0.2,width=0.4,color="black",URL="$server_8h.html#a81f787254ea87cbc851d292e5a7d195d"]; -} diff --git a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 b/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 deleted file mode 100644 index 4366343..0000000 --- a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -20bd890713aba8c1362051f5c585eb58 \ No newline at end of file diff --git a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot b/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot deleted file mode 100644 index d4bdd93..0000000 --- a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverRun",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 b/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 deleted file mode 100644 index fa1638f..0000000 --- a/docs/latex/run_8c_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -f1542b75481431f7d027e2cc9fe982c2 \ No newline at end of file diff --git a/docs/latex/server_8c.tex b/docs/latex/server_8c.tex deleted file mode 100644 index df88860..0000000 --- a/docs/latex/server_8c.tex +++ /dev/null @@ -1,46 +0,0 @@ -\hypertarget{server_8c}{ -\section{src/server.c File Reference} -\label{server_8c}\index{src/server.c@{src/server.c}} -} -{\ttfamily \#include $<$poll.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -Include dependency graph for server.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{server_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{server_8c_a69cdcc8e4e123675a4c70e8d38693826}{CREATE\_\-CLASS} (\hyperlink{structServer}{Server}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{server_8c_a69cdcc8e4e123675a4c70e8d38693826}{ -\index{server.c@{server.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!server.c@{server.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf Server}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{server_8c_a69cdcc8e4e123675a4c70e8d38693826} -\hypertarget{server_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{server.c@{server.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!server.c@{server.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{server_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/server_8c__incl.dot b/docs/latex/server_8c__incl.dot deleted file mode 100644 index 9a13df2..0000000 --- a/docs/latex/server_8c__incl.dot +++ /dev/null @@ -1,23 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/server.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="poll.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="server.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/server_8c__incl.md5 b/docs/latex/server_8c__incl.md5 deleted file mode 100644 index b76681b..0000000 --- a/docs/latex/server_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -14c81617325dec7d6a2eaa9198988de2 \ No newline at end of file diff --git a/docs/latex/server_8h.tex b/docs/latex/server_8h.tex deleted file mode 100644 index 09ceec8..0000000 --- a/docs/latex/server_8h.tex +++ /dev/null @@ -1,287 +0,0 @@ -\hypertarget{server_8h}{ -\section{include/server.h File Reference} -\label{server_8h}\index{include/server.h@{include/server.h}} -} -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include $<$poll.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -Include dependency graph for server.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structServer}{Server} -\end{DoxyCompactItemize} -\subsection*{Defines} -\begin{DoxyCompactItemize} -\item -\#define \hyperlink{server_8h_a6371240ebfb3156b737ddd83e1e142bd}{POLL\_\-FD\_\-NSIZE}~1024 -\item -\#define \hyperlink{server_8h_ade0a08dce19efc4f1ec7dc2ab0120ab9}{POLL\_\-FD\_\-SIZE}~(sizeof(struct pollfd) $\ast$ POLL\_\-FD\_\-NSIZE) -\item -\#define \hyperlink{server_8h_a4a694160d07797872cb3861f94b95c94}{MOVE\_\-SIZE}(size, idx)~((size) $\ast$ (POLL\_\-FD\_\-NSIZE-\/((idx)+1))) -\item -\#define \hyperlink{server_8h_a11d5c89fb77bc941d085e8f38d014665}{CLEAR\_\-CONN}(server, idx) -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{server_8h_a67a4d9073b80d8ae1459fb11ddd23675}{serverRun} (\hyperlink{structServer}{Server} this) -\item -void \hyperlink{server_8h_a81f787254ea87cbc851d292e5a7d195d}{serverCloseConn} (\hyperlink{structServer}{Server} this, unsigned int handle) -\end{DoxyCompactItemize} - - -\subsection{Define Documentation} -\hypertarget{server_8h_a11d5c89fb77bc941d085e8f38d014665}{ -\index{server.h@{server.h}!CLEAR\_\-CONN@{CLEAR\_\-CONN}} -\index{CLEAR\_\-CONN@{CLEAR\_\-CONN}!server.h@{server.h}} -\subsubsection[{CLEAR\_\-CONN}]{\setlength{\rightskip}{0pt plus 5cm}\#define CLEAR\_\-CONN( -\begin{DoxyParamCaption} -\item[{}]{server, } -\item[{}]{idx} -\end{DoxyParamCaption} -)}} -\label{server_8h_a11d5c89fb77bc941d085e8f38d014665} -{\bfseries Value:} -\begin{DoxyCode} -memmove(&(((server)->fds)[(idx)]), \ - &(((server)->fds)[(idx)+1]), \ - MOVE_SIZE(sizeof(((server)->fds)[0]),(idx))); \ - memmove(&(((server)->conns)[(idx)]), \ - &(((server)->conns)[(idx)+1]), \ - MOVE_SIZE(sizeof(((server)->conns)[0]),(idx))) -\end{DoxyCode} - - -Definition at line 15 of file server.h. - -\hypertarget{server_8h_a4a694160d07797872cb3861f94b95c94}{ -\index{server.h@{server.h}!MOVE\_\-SIZE@{MOVE\_\-SIZE}} -\index{MOVE\_\-SIZE@{MOVE\_\-SIZE}!server.h@{server.h}} -\subsubsection[{MOVE\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}\#define MOVE\_\-SIZE( -\begin{DoxyParamCaption} -\item[{}]{size, } -\item[{}]{idx} -\end{DoxyParamCaption} -)~((size) $\ast$ (POLL\_\-FD\_\-NSIZE-\/((idx)+1)))}} -\label{server_8h_a4a694160d07797872cb3861f94b95c94} - - -Definition at line 14 of file server.h. - -\hypertarget{server_8h_a6371240ebfb3156b737ddd83e1e142bd}{ -\index{server.h@{server.h}!POLL\_\-FD\_\-NSIZE@{POLL\_\-FD\_\-NSIZE}} -\index{POLL\_\-FD\_\-NSIZE@{POLL\_\-FD\_\-NSIZE}!server.h@{server.h}} -\subsubsection[{POLL\_\-FD\_\-NSIZE}]{\setlength{\rightskip}{0pt plus 5cm}\#define POLL\_\-FD\_\-NSIZE~1024}} -\label{server_8h_a6371240ebfb3156b737ddd83e1e142bd} - - -Definition at line 11 of file server.h. - -\hypertarget{server_8h_ade0a08dce19efc4f1ec7dc2ab0120ab9}{ -\index{server.h@{server.h}!POLL\_\-FD\_\-SIZE@{POLL\_\-FD\_\-SIZE}} -\index{POLL\_\-FD\_\-SIZE@{POLL\_\-FD\_\-SIZE}!server.h@{server.h}} -\subsubsection[{POLL\_\-FD\_\-SIZE}]{\setlength{\rightskip}{0pt plus 5cm}\#define POLL\_\-FD\_\-SIZE~(sizeof(struct pollfd) $\ast$ POLL\_\-FD\_\-NSIZE)}} -\label{server_8h_ade0a08dce19efc4f1ec7dc2ab0120ab9} - - -Definition at line 12 of file server.h. - - - -\subsection{Function Documentation} -\hypertarget{server_8h_a81f787254ea87cbc851d292e5a7d195d}{ -\index{server.h@{server.h}!serverCloseConn@{serverCloseConn}} -\index{serverCloseConn@{serverCloseConn}!server.h@{server.h}} -\subsubsection[{serverCloseConn}]{\setlength{\rightskip}{0pt plus 5cm}void serverCloseConn ( -\begin{DoxyParamCaption} -\item[{{\bf Server}}]{this, } -\item[{unsigned int}]{handle} -\end{DoxyParamCaption} -)}} -\label{server_8h_a81f787254ea87cbc851d292e5a7d195d} - - -Definition at line 7 of file close\_\-conn.c. - - -\begin{DoxyCode} -{ - int fd = (this->fds)[i].fd; - - delete(&((this->conns)[fd].sock)); - delete(&((this->conns)[fd].reader)); - memset((this->conns)[fd].wbuf, 0, strlen((this->conns)[fd].wbuf)); - (this->fds)[i].events = 0; - (this->fds)[i].revents = 0; - (this->fds)[i].fd = 0; - this->ndel++; -// CLEAR_CONN(this, i); -// this->nfds--; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - -\hypertarget{server_8h_a67a4d9073b80d8ae1459fb11ddd23675}{ -\index{server.h@{server.h}!serverRun@{serverRun}} -\index{serverRun@{serverRun}!server.h@{server.h}} -\subsubsection[{serverRun}]{\setlength{\rightskip}{0pt plus 5cm}void serverRun ( -\begin{DoxyParamCaption} -\item[{{\bf Server}}]{this} -\end{DoxyParamCaption} -)}} -\label{server_8h_a67a4d9073b80d8ae1459fb11ddd23675} - - -: actually this is the main loop of my server. When stuff becomes more complicated it might be feasabible to split stuff into separate processes. This will definetly involve some IPC and syncing. Right now as this is actually only a simple HTTP server implementation we go on with this single process. What we can first do to get some processing between read/write cicles is to use the poll timeout. - -handle accept - -handle reads - -do some other processing : actually this will hard assume that our stream reader is a http parser and it has its queue...think about more generalizing here. - -: for now simply remove request and send not found. Make this sane. - -: the complete response stuff have to be removed here. - -: just to send an answer and be able to make some apache benchs i do it here...this definetly MUST BE moved - -handle writes - - - -Definition at line 30 of file run.c. - - -\begin{DoxyCode} -{ - loggerLog(this->logger, LOGGER_INFO, "service started"); - - while (!doShutdown) /* until error or signal */ - { - int events; - unsigned int i; - - events = serverPoll(this); - if (doShutdown) break; - - for (i=0; i < events; i++) { - int fd = (this->fds)[i].fd; - //int nreads = 0, nwrites = 0; - - if (0 != ((this->fds)[i].revents & POLLIN)) { - if (this->sock->handle == (this->fds)[i].fd) { - serverHandleAccept(this); - } - - else { - int size; - if (0 < (size=serverRead(this, i))) { - int j; - HttpRequestQueue queue = - ((HttpRequestParser)(this - ->conns)[fd].reader)->request_queue; - - for (j=0; jnrequests; j++ - ) { - HttpRequest request = que - ue->requests[j]; - - //if (NULL != request->bo - dy) { - // puts("==REQUEST B - ODY=="); - // puts(request->bod - y); - //} - - delete(&request); - - time_t t; - struct tm * tmp; - char timestr[200]; - -#define RESP_HEAD "HTTP/1.1 404 Not Found\r\n" \ - "Content-Type: text/html\ - r\n" \ - "Content-Length: %lu\r\n" - \ - "Date: %s\r\n" \ - "Server: testserver\r\n" - -#define RESP_DATA "\n" \ - "\n" \ - "\n" \ - "404 - Not F - ound" \ - "

404 - Not Foun - d

" \ - "" - - t = time(NULL); - tmp = localtime(&t); - strftime(timestr, sizeof( - timestr), "%a, %d %b %Y %T %Z", tmp); - - sprintf((this->conns)[fd] - .wbuf, RESP_HEAD "\r\n" RESP_DATA, sizeof(RESP_DATA), timestr); - (this->fds)[i].events = ( - this->fds)[i].events | POLLOUT; - } - - queue->nrequests = 0; - } - } - } - - if (0 != ((this->fds)[i].revents & POLLOUT)) { - int size; - - size = write( - (this->fds)[i].fd, - (this->conns)[fd].wbuf, - strlen((this->conns)[fd].wbuf)); - - if (size == strlen((this->conns)[fd].wbuf) || - -1 == size) { - if (-1 == size) { - loggerLog(this->logger, - LOGGER_ERR, - "write error, clo - sing connection"); - } - - serverCloseConn(this, i); - } - else { - memmove((this->conns)[fd].wbuf, - (this->conns)[fd].wbuf + - size, - strlen((this->conns)[fd]. - wbuf) - size + 1); - } - } - } - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - - - -Here is the caller graph for this function: - - diff --git a/docs/latex/server_8h__incl.dot b/docs/latex/server_8h__incl.dot deleted file mode 100644 index 95346a1..0000000 --- a/docs/latex/server_8h__incl.dot +++ /dev/null @@ -1,33 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/server.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="poll.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="class.h",height=0.2,width=0.4,color="black",URL="$class_8h.html"]; - Node4 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node4 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node4 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node4 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="assert.h",height=0.2,width=0.4,color="grey75"]; - Node4 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="interface.h",height=0.2,width=0.4,color="black",URL="$interface_8h.html"]; - Node9 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node10 [color="midnightblue",fontsize="10",style="solid"]; - Node10 [label="socket.h",height=0.2,width=0.4,color="black",URL="$socket_8h.html"]; - Node10 -> Node11 [color="midnightblue",fontsize="10",style="solid"]; - Node11 [label="arpa/inet.h",height=0.2,width=0.4,color="grey75"]; - Node10 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node10 -> Node12 [color="midnightblue",fontsize="10",style="solid"]; - Node12 [label="logger.h",height=0.2,width=0.4,color="black",URL="$logger_8h.html"]; - Node12 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node12 [color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/server_8h__incl.md5 b/docs/latex/server_8h__incl.md5 deleted file mode 100644 index 690501c..0000000 --- a/docs/latex/server_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -0d9d780c9ec9428a2b41d685c83ab21c \ No newline at end of file diff --git a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot b/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot deleted file mode 100644 index 21ff4d4..0000000 --- a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverRun",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="serverCloseConn",height=0.2,width=0.4,color="black",URL="$server_8h.html#a81f787254ea87cbc851d292e5a7d195d"]; -} diff --git a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 b/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 deleted file mode 100644 index 4366343..0000000 --- a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -20bd890713aba8c1362051f5c585eb58 \ No newline at end of file diff --git a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot b/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot deleted file mode 100644 index d4bdd93..0000000 --- a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverRun",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 b/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 deleted file mode 100644 index fa1638f..0000000 --- a/docs/latex/server_8h_a67a4d9073b80d8ae1459fb11ddd23675_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -f1542b75481431f7d027e2cc9fe982c2 \ No newline at end of file diff --git a/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.dot b/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.dot deleted file mode 100644 index 80a64cb..0000000 --- a/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="serverCloseConn",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="serverRun",height=0.2,width=0.4,color="black",URL="$run_8c.html#a67a4d9073b80d8ae1459fb11ddd23675"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 b/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 deleted file mode 100644 index f2bc53c..0000000 --- a/docs/latex/server_8h_a81f787254ea87cbc851d292e5a7d195d_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -e78969226285854db8f53c7299426df2 \ No newline at end of file diff --git a/docs/latex/signalHandling_8c.tex b/docs/latex/signalHandling_8c.tex deleted file mode 100644 index 59b1b95..0000000 --- a/docs/latex/signalHandling_8c.tex +++ /dev/null @@ -1,98 +0,0 @@ -\hypertarget{signalHandling_8c}{ -\section{src/signalHandling.c File Reference} -\label{signalHandling_8c}\index{src/signalHandling.c@{src/signalHandling.c}} -} -{\ttfamily \#include $<$signal.h$>$}\par -Include dependency graph for signalHandling.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630}{terminate} (int signum) -\item -void \hyperlink{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916}{init\_\-signals} (void) -\end{DoxyCompactItemize} -\subsection*{Variables} -\begin{DoxyCompactItemize} -\item -volatile int \hyperlink{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade}{doShutdown} -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916}{ -\index{signalHandling.c@{signalHandling.c}!init\_\-signals@{init\_\-signals}} -\index{init\_\-signals@{init\_\-signals}!signalHandling.c@{signalHandling.c}} -\subsubsection[{init\_\-signals}]{\setlength{\rightskip}{0pt plus 5cm}void init\_\-signals ( -\begin{DoxyParamCaption} -\item[{void}]{} -\end{DoxyParamCaption} -)}} -\label{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916} - - -Definition at line 14 of file signalHandling.c. - - -\begin{DoxyCode} -{ - signal(SIGTERM, terminate); - signal(SIGHUP, SIG_IGN); - signal(SIGINT, terminate); - signal(SIGQUIT, terminate); - signal(SIGABRT, terminate); - signal(SIGALRM, SIG_IGN); - signal(SIGURG, SIG_IGN); - - signal(SIGPIPE, SIG_IGN); -} -\end{DoxyCode} - - -Here is the call graph for this function: - - - - -Here is the caller graph for this function: - - -\hypertarget{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630}{ -\index{signalHandling.c@{signalHandling.c}!terminate@{terminate}} -\index{terminate@{terminate}!signalHandling.c@{signalHandling.c}} -\subsubsection[{terminate}]{\setlength{\rightskip}{0pt plus 5cm}void terminate ( -\begin{DoxyParamCaption} -\item[{int}]{signum} -\end{DoxyParamCaption} -)}} -\label{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630} - - -Definition at line 5 of file signalHandling.c. - - -\begin{DoxyCode} -{ - signal(signum, SIG_IGN); - /* - * @TODO do logging here - */ - doShutdown = 1; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - - - -\subsection{Variable Documentation} -\hypertarget{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade}{ -\index{signalHandling.c@{signalHandling.c}!doShutdown@{doShutdown}} -\index{doShutdown@{doShutdown}!signalHandling.c@{signalHandling.c}} -\subsubsection[{doShutdown}]{\setlength{\rightskip}{0pt plus 5cm}volatile int {\bf doShutdown}}} -\label{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade} - - -Definition at line 3 of file signalHandling.c. - diff --git a/docs/latex/signalHandling_8c__incl.dot b/docs/latex/signalHandling_8c__incl.dot deleted file mode 100644 index 0ab8267..0000000 --- a/docs/latex/signalHandling_8c__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/signalHandling.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="signal.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/signalHandling_8c__incl.md5 b/docs/latex/signalHandling_8c__incl.md5 deleted file mode 100644 index 0c9b080..0000000 --- a/docs/latex/signalHandling_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -857af70172db85996ec747c4ff4dd767 \ No newline at end of file diff --git a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.dot b/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.dot deleted file mode 100644 index f31d7b5..0000000 --- a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="init_signals",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="terminate",height=0.2,width=0.4,color="black",URL="$signalHandling_8h.html#a64612b9588ed0fb05d70680db02b3630"]; -} diff --git a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 b/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 deleted file mode 100644 index ac99ab1..0000000 --- a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -45f2c1327c7275652c55ad27e89ccb8d \ No newline at end of file diff --git a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.dot b/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.dot deleted file mode 100644 index 4931f0a..0000000 --- a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="init_signals",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 b/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 deleted file mode 100644 index 3e357ac..0000000 --- a/docs/latex/signalHandling_8c_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -9ecf176d9ba1c7bc639926d14eccfac7 \ No newline at end of file diff --git a/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.dot b/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.dot deleted file mode 100644 index dc5fe1b..0000000 --- a/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="terminate",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="init_signals",height=0.2,width=0.4,color="black",URL="$signalHandling_8c.html#a1de31bdef82f181f8045b94ae0933916"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 b/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 deleted file mode 100644 index 19f8ce8..0000000 --- a/docs/latex/signalHandling_8c_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -a55d8b6cee2e92217998bd1eef349153 \ No newline at end of file diff --git a/docs/latex/signalHandling_8h.tex b/docs/latex/signalHandling_8h.tex deleted file mode 100644 index 682d5cb..0000000 --- a/docs/latex/signalHandling_8h.tex +++ /dev/null @@ -1,96 +0,0 @@ -\hypertarget{signalHandling_8h}{ -\section{include/signalHandling.h File Reference} -\label{signalHandling_8h}\index{include/signalHandling.h@{include/signalHandling.h}} -} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{signalHandling_8h_a64612b9588ed0fb05d70680db02b3630}{terminate} (int signum) -\item -void \hyperlink{signalHandling_8h_a1de31bdef82f181f8045b94ae0933916}{init\_\-signals} (void) -\end{DoxyCompactItemize} -\subsection*{Variables} -\begin{DoxyCompactItemize} -\item -volatile int \hyperlink{signalHandling_8h_a960e985a396acaabb1bbed4f15668ade}{doShutdown} -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{signalHandling_8h_a1de31bdef82f181f8045b94ae0933916}{ -\index{signalHandling.h@{signalHandling.h}!init\_\-signals@{init\_\-signals}} -\index{init\_\-signals@{init\_\-signals}!signalHandling.h@{signalHandling.h}} -\subsubsection[{init\_\-signals}]{\setlength{\rightskip}{0pt plus 5cm}void init\_\-signals ( -\begin{DoxyParamCaption} -\item[{void}]{} -\end{DoxyParamCaption} -)}} -\label{signalHandling_8h_a1de31bdef82f181f8045b94ae0933916} - - -Definition at line 14 of file signalHandling.c. - - -\begin{DoxyCode} -{ - signal(SIGTERM, terminate); - signal(SIGHUP, SIG_IGN); - signal(SIGINT, terminate); - signal(SIGQUIT, terminate); - signal(SIGABRT, terminate); - signal(SIGALRM, SIG_IGN); - signal(SIGURG, SIG_IGN); - - signal(SIGPIPE, SIG_IGN); -} -\end{DoxyCode} - - -Here is the call graph for this function: - - - - -Here is the caller graph for this function: - - -\hypertarget{signalHandling_8h_a64612b9588ed0fb05d70680db02b3630}{ -\index{signalHandling.h@{signalHandling.h}!terminate@{terminate}} -\index{terminate@{terminate}!signalHandling.h@{signalHandling.h}} -\subsubsection[{terminate}]{\setlength{\rightskip}{0pt plus 5cm}void terminate ( -\begin{DoxyParamCaption} -\item[{int}]{signum} -\end{DoxyParamCaption} -)}} -\label{signalHandling_8h_a64612b9588ed0fb05d70680db02b3630} - - -Definition at line 5 of file signalHandling.c. - - -\begin{DoxyCode} -{ - signal(signum, SIG_IGN); - /* - * @TODO do logging here - */ - doShutdown = 1; -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - - - -\subsection{Variable Documentation} -\hypertarget{signalHandling_8h_a960e985a396acaabb1bbed4f15668ade}{ -\index{signalHandling.h@{signalHandling.h}!doShutdown@{doShutdown}} -\index{doShutdown@{doShutdown}!signalHandling.h@{signalHandling.h}} -\subsubsection[{doShutdown}]{\setlength{\rightskip}{0pt plus 5cm}volatile int {\bf doShutdown}}} -\label{signalHandling_8h_a960e985a396acaabb1bbed4f15668ade} - - -Definition at line 3 of file signalHandling.c. - diff --git a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.dot b/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.dot deleted file mode 100644 index f31d7b5..0000000 --- a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="init_signals",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="terminate",height=0.2,width=0.4,color="black",URL="$signalHandling_8h.html#a64612b9588ed0fb05d70680db02b3630"]; -} diff --git a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 b/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 deleted file mode 100644 index ac99ab1..0000000 --- a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -45f2c1327c7275652c55ad27e89ccb8d \ No newline at end of file diff --git a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.dot b/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.dot deleted file mode 100644 index 4931f0a..0000000 --- a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="init_signals",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 b/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 deleted file mode 100644 index 3e357ac..0000000 --- a/docs/latex/signalHandling_8h_a1de31bdef82f181f8045b94ae0933916_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -9ecf176d9ba1c7bc639926d14eccfac7 \ No newline at end of file diff --git a/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.dot b/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.dot deleted file mode 100644 index dc5fe1b..0000000 --- a/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="terminate",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="init_signals",height=0.2,width=0.4,color="black",URL="$signalHandling_8c.html#a1de31bdef82f181f8045b94ae0933916"]; - Node2 -> Node3 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="main",height=0.2,width=0.4,color="black",URL="$testserver_8c.html#ae66f6b31b5ad750f1fe042a706a4e3d4"]; -} diff --git a/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 b/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 deleted file mode 100644 index 19f8ce8..0000000 --- a/docs/latex/signalHandling_8h_a64612b9588ed0fb05d70680db02b3630_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -a55d8b6cee2e92217998bd1eef349153 \ No newline at end of file diff --git a/docs/latex/socket_8c.tex b/docs/latex/socket_8c.tex deleted file mode 100644 index 7a93ebb..0000000 --- a/docs/latex/socket_8c.tex +++ /dev/null @@ -1,45 +0,0 @@ -\hypertarget{socket_8c}{ -\section{src/socket.c File Reference} -\label{socket_8c}\index{src/socket.c@{src/socket.c}} -} -{\ttfamily \#include $<$errno.h$>$}\par -{\ttfamily \#include $<$stdlib.h$>$}\par -{\ttfamily \#include $<$unistd.h$>$}\par -{\ttfamily \#include \char`\"{}socket.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for socket.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{socket_8c_a4dd368b7bead6fa0805e91405d90f786}{INIT\_\-IFACE} (Class, ctor, dtor, NULL) -\item -\hyperlink{socket_8c_a924e6743ea24bce5099df53ea23f25d5}{CREATE\_\-CLASS} (\hyperlink{structSock}{Sock}, NULL, IFACE(Class)) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{socket_8c_a924e6743ea24bce5099df53ea23f25d5}{ -\index{socket.c@{socket.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!socket.c@{socket.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{, } -\item[{NULL}]{, } -\item[{IFACE(Class)}]{} -\end{DoxyParamCaption} -)}} -\label{socket_8c_a924e6743ea24bce5099df53ea23f25d5} -\hypertarget{socket_8c_a4dd368b7bead6fa0805e91405d90f786}{ -\index{socket.c@{socket.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!socket.c@{socket.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{Class}]{, } -\item[{ctor}]{, } -\item[{dtor}]{, } -\item[{NULL}]{} -\end{DoxyParamCaption} -)}} -\label{socket_8c_a4dd368b7bead6fa0805e91405d90f786} diff --git a/docs/latex/socket_8c__incl.dot b/docs/latex/socket_8c__incl.dot deleted file mode 100644 index 6f7135e..0000000 --- a/docs/latex/socket_8c__incl.dot +++ /dev/null @@ -1,21 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/socket.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="errno.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="stdlib.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="unistd.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/socket_8c__incl.md5 b/docs/latex/socket_8c__incl.md5 deleted file mode 100644 index ca794ee..0000000 --- a/docs/latex/socket_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -0f14f40610598c367e5a99e6eec91341 \ No newline at end of file diff --git a/docs/latex/socket_8h.tex b/docs/latex/socket_8h.tex deleted file mode 100644 index 8835ac4..0000000 --- a/docs/latex/socket_8h.tex +++ /dev/null @@ -1,158 +0,0 @@ -\hypertarget{socket_8h}{ -\section{include/socket.h File Reference} -\label{socket_8h}\index{include/socket.h@{include/socket.h}} -} -{\ttfamily \#include $<$arpa/inet.h$>$}\par -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -Include dependency graph for socket.h: -This graph shows which files directly or indirectly include this file: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structSock}{Sock} -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{socket_8h_adbfc4792c437102f20e2c86c4ee8581b}{socketConnect} (\hyperlink{structSock}{Sock} this, const char $\ast$addr) -\item -void \hyperlink{socket_8h_a757c220e9371523ef55b1137a1efed57}{socketListen} (\hyperlink{structSock}{Sock} this, int backlog) -\item -\hyperlink{structSock}{Sock} \hyperlink{socket_8h_a46aa6b495ccf752e844f93bf46c9edd6}{socketAccept} (\hyperlink{structSock}{Sock} this, char remoteAddr\mbox{[}16\mbox{]}) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{socket_8h_a46aa6b495ccf752e844f93bf46c9edd6}{ -\index{socket.h@{socket.h}!socketAccept@{socketAccept}} -\index{socketAccept@{socketAccept}!socket.h@{socket.h}} -\subsubsection[{socketAccept}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Sock} socketAccept ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{char}]{remoteAddr\mbox{[}16\mbox{]}} -\end{DoxyParamCaption} -)}} -\label{socket_8h_a46aa6b495ccf752e844f93bf46c9edd6} - - -: Uhh, this is bad. we open a new socket additionally to the one we get from the accept call. i have to change the socket constructor to be able to create the data structure without creation of a socket at all. For now i simply close the socket here.... :D - -: change port to remote port on success - - - -Definition at line 9 of file accept.c. - - -\begin{DoxyCode} -{ - Sock sock; /* Socket for client */ - unsigned int len; /* Length of client address data structure */ - - /* Set the size of the in-out parameter */ - len = sizeof(this->addr); - - sock = new(Sock, this->log, this->port); - close(sock->handle); - /* Wait for a client to connect */ - sock->handle = accept(this->handle, (struct sockaddr *) &(sock->addr), &len); - - if (-1 == sock->handle) { - loggerLog(this->log, LOGGER_WARNING, - "error accepting connection: %s", strerror(errno)); - } else { - loggerLog(this->log, LOGGER_INFO, - "handling client %s\n", inet_ntoa((sock->addr).si - n_addr)); - } - - return sock; -} -\end{DoxyCode} - - -Here is the call graph for this function: - - -\hypertarget{socket_8h_adbfc4792c437102f20e2c86c4ee8581b}{ -\index{socket.h@{socket.h}!socketConnect@{socketConnect}} -\index{socketConnect@{socketConnect}!socket.h@{socket.h}} -\subsubsection[{socketConnect}]{\setlength{\rightskip}{0pt plus 5cm}void socketConnect ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{const char $\ast$}]{addr} -\end{DoxyParamCaption} -)}} -\label{socket_8h_adbfc4792c437102f20e2c86c4ee8581b} - - -Definition at line 10 of file connect.c. - - -\begin{DoxyCode} -{ - inet_pton(AF_INET, addr, &((this->addr).sin_addr)); - (this->addr).sin_family = AF_INET; /* Internet address family */ - (this->addr).sin_port = htons(this->port); /* Local port */ - - if (-1 == connect(this->handle, (struct sockaddr*) &(this->addr), sizeof( - this->addr))) { - loggerLog(this->log, LOGGER_CRIT, - "error connection socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - -\hypertarget{socket_8h_a757c220e9371523ef55b1137a1efed57}{ -\index{socket.h@{socket.h}!socketListen@{socketListen}} -\index{socketListen@{socketListen}!socket.h@{socket.h}} -\subsubsection[{socketListen}]{\setlength{\rightskip}{0pt plus 5cm}void socketListen ( -\begin{DoxyParamCaption} -\item[{{\bf Sock}}]{this, } -\item[{int}]{backlog} -\end{DoxyParamCaption} -)}} -\label{socket_8h_a757c220e9371523ef55b1137a1efed57} - - -Definition at line 10 of file listen.c. - - -\begin{DoxyCode} -{ - (this->addr).sin_family = AF_INET; /* Internet address family - */ - (this->addr).sin_addr.s_addr = htonl(INADDR_ANY); /* Any incoming interface * - / - (this->addr).sin_port = htons(this->port); /* Local port */ - - /* Bind to the local address */ - if (-1 == bind(this->handle, (struct sockaddr *) &(this->addr), sizeof(this-> - addr))) { - loggerLog(this->log, LOGGER_CRIT, - "error binding socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } - - /* Mark the socket so it will listen for incoming connections */ - if (-1 == listen(this->handle, backlog)) { - loggerLog(this->log, LOGGER_CRIT, - "error binding socket: %s - service terminated", - strerror(errno)); - exit(EXIT_FAILURE); - } -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/socket_8h__dep__incl.dot b/docs/latex/socket_8h__dep__incl.dot deleted file mode 100644 index 7e2751d..0000000 --- a/docs/latex/socket_8h__dep__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/socket.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="include/server.h",height=0.2,width=0.4,color="black",URL="$server_8h.html"]; -} diff --git a/docs/latex/socket_8h__dep__incl.md5 b/docs/latex/socket_8h__dep__incl.md5 deleted file mode 100644 index 6c6ad52..0000000 --- a/docs/latex/socket_8h__dep__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -be4aa435c0fde097ba5af12b3f569453 \ No newline at end of file diff --git a/docs/latex/socket_8h__incl.dot b/docs/latex/socket_8h__incl.dot deleted file mode 100644 index 829138b..0000000 --- a/docs/latex/socket_8h__incl.dot +++ /dev/null @@ -1,25 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/socket.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="arpa/inet.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="class.h",height=0.2,width=0.4,color="black",URL="$class_8h.html"]; - Node3 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="stdarg.h",height=0.2,width=0.4,color="grey75"]; - Node3 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; - Node3 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node3 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="assert.h",height=0.2,width=0.4,color="grey75"]; - Node3 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="interface.h",height=0.2,width=0.4,color="black",URL="$interface_8h.html"]; - Node8 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="logger.h",height=0.2,width=0.4,color="black",URL="$logger_8h.html"]; - Node9 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; -} diff --git a/docs/latex/socket_8h__incl.md5 b/docs/latex/socket_8h__incl.md5 deleted file mode 100644 index df388c5..0000000 --- a/docs/latex/socket_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -21e47294b560e93a3251b7d99924fbcf \ No newline at end of file diff --git a/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot b/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot deleted file mode 100644 index 8db5343..0000000 --- a/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketAccept",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 b/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 deleted file mode 100644 index 30c94d1..0000000 --- a/docs/latex/socket_8h_a46aa6b495ccf752e844f93bf46c9edd6_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -a87e97e5a05cbb8f89e4bc27d3257053 \ No newline at end of file diff --git a/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.dot b/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.dot deleted file mode 100644 index 457e774..0000000 --- a/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketListen",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 b/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 deleted file mode 100644 index 8d1cc7c..0000000 --- a/docs/latex/socket_8h_a757c220e9371523ef55b1137a1efed57_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -9119991752c8de97a1c44af5d17e244c \ No newline at end of file diff --git a/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot b/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot deleted file mode 100644 index de308ae..0000000 --- a/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="socketConnect",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; -} diff --git a/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 b/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 deleted file mode 100644 index 39afb5b..0000000 --- a/docs/latex/socket_8h_adbfc4792c437102f20e2c86c4ee8581b_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d4b61c03fa9446761ec7f4284d17967f \ No newline at end of file diff --git a/docs/latex/sort_8c.tex b/docs/latex/sort_8c.tex deleted file mode 100644 index 16620c6..0000000 --- a/docs/latex/sort_8c.tex +++ /dev/null @@ -1,39 +0,0 @@ -\hypertarget{sort_8c}{ -\section{src/http/header/sort.c File Reference} -\label{sort_8c}\index{src/http/header/sort.c@{src/http/header/sort.c}} -} -{\ttfamily \#include \char`\"{}http/header.h\char`\"{}}\par -Include dependency graph for sort.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -void \hyperlink{sort_8c_ad438f1a61df8ee1f19ef193370b902d2}{httpHeaderSort} (const \hyperlink{structHttpHeader}{HttpHeader} header\mbox{[}$\,$\mbox{]}, int nheader) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{sort_8c_ad438f1a61df8ee1f19ef193370b902d2}{ -\index{sort.c@{sort.c}!httpHeaderSort@{httpHeaderSort}} -\index{httpHeaderSort@{httpHeaderSort}!sort.c@{sort.c}} -\subsubsection[{httpHeaderSort}]{\setlength{\rightskip}{0pt plus 5cm}void httpHeaderSort ( -\begin{DoxyParamCaption} -\item[{const {\bf HttpHeader}}]{header\mbox{[}$\,$\mbox{]}, } -\item[{int}]{nheader} -\end{DoxyParamCaption} -)}} -\label{sort_8c_ad438f1a61df8ee1f19ef193370b902d2} - - -Definition at line 14 of file sort.c. - - -\begin{DoxyCode} -{ - qsort(header, nheader, sizeof(HttpHeader), comp); -} -\end{DoxyCode} - - -Here is the caller graph for this function: - - diff --git a/docs/latex/sort_8c__incl.dot b/docs/latex/sort_8c__incl.dot deleted file mode 100644 index d9fb4f0..0000000 --- a/docs/latex/sort_8c__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/http/header/sort.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="http/header.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/sort_8c__incl.md5 b/docs/latex/sort_8c__incl.md5 deleted file mode 100644 index 5b7c2f6..0000000 --- a/docs/latex/sort_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -a1d2a9172a1ae808b71ca401f8b54229 \ No newline at end of file diff --git a/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.dot b/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.dot deleted file mode 100644 index 4d2f27f..0000000 --- a/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.dot +++ /dev/null @@ -1,10 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="httpHeaderSort",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [dir=back,color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="httpRequestParserParse",height=0.2,width=0.4,color="black",URL="$parser_8c.html#a659e7ea125685d797a099638b3376320"]; -} diff --git a/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 b/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 deleted file mode 100644 index 9062fa0..0000000 --- a/docs/latex/sort_8c_ad438f1a61df8ee1f19ef193370b902d2_icgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -d4dd874c170f6f96950bc1c377a2b156 \ No newline at end of file diff --git a/docs/latex/stderr_8c.tex b/docs/latex/stderr_8c.tex deleted file mode 100644 index 71062a2..0000000 --- a/docs/latex/stderr_8c.tex +++ /dev/null @@ -1,39 +0,0 @@ -\hypertarget{stderr_8c}{ -\section{src/logger/stderr.c File Reference} -\label{stderr_8c}\index{src/logger/stderr.c@{src/logger/stderr.c}} -} -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for stderr.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{stderr_8c_a677bd96e9a85b74f5624a07221b79fbc}{INIT\_\-IFACE} (\hyperlink{structLogger}{Logger}, logStderr) -\item -\hyperlink{stderr_8c_a2536b6205a32b98ee5ee97ace564a412}{CREATE\_\-CLASS} (\hyperlink{structLoggerStderr}{LoggerStderr}, \hyperlink{structLogger}{Logger}, IFACE(\hyperlink{structLogger}{Logger})) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{stderr_8c_a2536b6205a32b98ee5ee97ace564a412}{ -\index{stderr.c@{stderr.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!stderr.c@{stderr.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf LoggerStderr}}]{, } -\item[{{\bf Logger}}]{, } -\item[{IFACE({\bf Logger})}]{} -\end{DoxyParamCaption} -)}} -\label{stderr_8c_a2536b6205a32b98ee5ee97ace564a412} -\hypertarget{stderr_8c_a677bd96e9a85b74f5624a07221b79fbc}{ -\index{stderr.c@{stderr.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!stderr.c@{stderr.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{{\bf Logger}}]{, } -\item[{logStderr}]{} -\end{DoxyParamCaption} -)}} -\label{stderr_8c_a677bd96e9a85b74f5624a07221b79fbc} diff --git a/docs/latex/stderr_8c__incl.dot b/docs/latex/stderr_8c__incl.dot deleted file mode 100644 index c805829..0000000 --- a/docs/latex/stderr_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/logger/stderr.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/stderr_8c__incl.md5 b/docs/latex/stderr_8c__incl.md5 deleted file mode 100644 index 78e33b8..0000000 --- a/docs/latex/stderr_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -07a8f3d871f6067bb59348f10c3a93a6 \ No newline at end of file diff --git a/docs/latex/stream__reader_8c.tex b/docs/latex/stream__reader_8c.tex deleted file mode 100644 index cbd3089..0000000 --- a/docs/latex/stream__reader_8c.tex +++ /dev/null @@ -1,39 +0,0 @@ -\hypertarget{stream__reader_8c}{ -\section{src/interface/stream\_\-reader.c File Reference} -\label{stream__reader_8c}\index{src/interface/stream\_\-reader.c@{src/interface/stream\_\-reader.c}} -} -{\ttfamily \#include \char`\"{}class.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/stream\_\-reader.h\char`\"{}}\par -Include dependency graph for stream\_\-reader.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -size\_\-t \hyperlink{stream__reader_8c_aae6ed042c16a2d5f008c550fe116ad40}{streamReaderRead} (void $\ast$object, int fd) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{stream__reader_8c_aae6ed042c16a2d5f008c550fe116ad40}{ -\index{stream\_\-reader.c@{stream\_\-reader.c}!streamReaderRead@{streamReaderRead}} -\index{streamReaderRead@{streamReaderRead}!stream_reader.c@{stream\_\-reader.c}} -\subsubsection[{streamReaderRead}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t streamReaderRead ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{object, } -\item[{int}]{fd} -\end{DoxyParamCaption} -)}} -\label{stream__reader_8c_aae6ed042c16a2d5f008c550fe116ad40} - - -Definition at line 10 of file stream\_\-reader.c. - - -\begin{DoxyCode} -{ - size_t ret; - - RETCALL(object, StreamReader, read, ret, fd); - - return ret; -} -\end{DoxyCode} diff --git a/docs/latex/stream__reader_8c__incl.dot b/docs/latex/stream__reader_8c__incl.dot deleted file mode 100644 index 1d1ef1c..0000000 --- a/docs/latex/stream__reader_8c__incl.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/interface/stream_reader.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="class.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="interface/stream_reader.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/stream__reader_8c__incl.md5 b/docs/latex/stream__reader_8c__incl.md5 deleted file mode 100644 index 0445dd3..0000000 --- a/docs/latex/stream__reader_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -dae215e28e2dc15c79918e685a8a47af \ No newline at end of file diff --git a/docs/latex/stream__reader_8h.tex b/docs/latex/stream__reader_8h.tex deleted file mode 100644 index 2648a4c..0000000 --- a/docs/latex/stream__reader_8h.tex +++ /dev/null @@ -1,60 +0,0 @@ -\hypertarget{stream__reader_8h}{ -\section{include/interface/stream\_\-reader.h File Reference} -\label{stream__reader_8h}\index{include/interface/stream\_\-reader.h@{include/interface/stream\_\-reader.h}} -} -{\ttfamily \#include $<$sys/types.h$>$}\par -Include dependency graph for stream\_\-reader.h: -\subsection*{Classes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structi__StreamReader}{i\_\-StreamReader} -\end{DoxyCompactItemize} -\subsection*{Typedefs} -\begin{DoxyCompactItemize} -\item -typedef size\_\-t($\ast$ \hyperlink{stream__reader_8h_a658a56ce1aa463cc7de51f42080ca24f}{fptr\_\-streamReaderRead} )(void $\ast$, int fd) -\end{DoxyCompactItemize} -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -size\_\-t \hyperlink{stream__reader_8h_a8a8ae2e5ad974a747042b5dd70e31ca8}{streamReaderRead} (void $\ast$, int fd) -\end{DoxyCompactItemize} - - -\subsection{Typedef Documentation} -\hypertarget{stream__reader_8h_a658a56ce1aa463cc7de51f42080ca24f}{ -\index{stream\_\-reader.h@{stream\_\-reader.h}!fptr\_\-streamReaderRead@{fptr\_\-streamReaderRead}} -\index{fptr\_\-streamReaderRead@{fptr\_\-streamReaderRead}!stream_reader.h@{stream\_\-reader.h}} -\subsubsection[{fptr\_\-streamReaderRead}]{\setlength{\rightskip}{0pt plus 5cm}typedef size\_\-t($\ast$ {\bf fptr\_\-streamReaderRead})(void $\ast$, int fd)}} -\label{stream__reader_8h_a658a56ce1aa463cc7de51f42080ca24f} - - -Definition at line 6 of file stream\_\-reader.h. - - - -\subsection{Function Documentation} -\hypertarget{stream__reader_8h_a8a8ae2e5ad974a747042b5dd70e31ca8}{ -\index{stream\_\-reader.h@{stream\_\-reader.h}!streamReaderRead@{streamReaderRead}} -\index{streamReaderRead@{streamReaderRead}!stream_reader.h@{stream\_\-reader.h}} -\subsubsection[{streamReaderRead}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t streamReaderRead ( -\begin{DoxyParamCaption} -\item[{void $\ast$}]{, } -\item[{int}]{fd} -\end{DoxyParamCaption} -)}} -\label{stream__reader_8h_a8a8ae2e5ad974a747042b5dd70e31ca8} - - -Definition at line 10 of file stream\_\-reader.c. - - -\begin{DoxyCode} -{ - size_t ret; - - RETCALL(object, StreamReader, read, ret, fd); - - return ret; -} -\end{DoxyCode} diff --git a/docs/latex/stream__reader_8h__incl.dot b/docs/latex/stream__reader_8h__incl.dot deleted file mode 100644 index e65c698..0000000 --- a/docs/latex/stream__reader_8h__incl.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="include/interface/stream_reader.h",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="sys/types.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/stream__reader_8h__incl.md5 b/docs/latex/stream__reader_8h__incl.md5 deleted file mode 100644 index 451a3db..0000000 --- a/docs/latex/stream__reader_8h__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -cd75f61cfe073ac9988b9bb4a3d47b0a \ No newline at end of file diff --git a/docs/latex/structHttpHeader.tex b/docs/latex/structHttpHeader.tex deleted file mode 100644 index 5c563be..0000000 --- a/docs/latex/structHttpHeader.tex +++ /dev/null @@ -1,59 +0,0 @@ -\hypertarget{structHttpHeader}{ -\section{HttpHeader Struct Reference} -\label{structHttpHeader}\index{HttpHeader@{HttpHeader}} -} - - -{\ttfamily \#include $<$header.h$>$} - -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -unsigned long \hyperlink{structHttpHeader_a60c635bed9da0be4f2db9a1f453d73ee}{hash} -\item -char $\ast$ \hyperlink{structHttpHeader_a84cd71e92a4b68eb176446c8acfc9a0f}{name} -\item -char $\ast$ \hyperlink{structHttpHeader_aa7dd0f8361dba57f5be17ff9c6a181e5}{value} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 6 of file header.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structHttpHeader_a60c635bed9da0be4f2db9a1f453d73ee}{ -\index{HttpHeader@{HttpHeader}!hash@{hash}} -\index{hash@{hash}!HttpHeader@{HttpHeader}} -\subsubsection[{hash}]{\setlength{\rightskip}{0pt plus 5cm}unsigned long {\bf HttpHeader::hash}}} -\label{structHttpHeader_a60c635bed9da0be4f2db9a1f453d73ee} - - -Definition at line 21 of file header.h. - -\hypertarget{structHttpHeader_a84cd71e92a4b68eb176446c8acfc9a0f}{ -\index{HttpHeader@{HttpHeader}!name@{name}} -\index{name@{name}!HttpHeader@{HttpHeader}} -\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpHeader::name}}} -\label{structHttpHeader_a84cd71e92a4b68eb176446c8acfc9a0f} - - -Definition at line 22 of file header.h. - -\hypertarget{structHttpHeader_aa7dd0f8361dba57f5be17ff9c6a181e5}{ -\index{HttpHeader@{HttpHeader}!value@{value}} -\index{value@{value}!HttpHeader@{HttpHeader}} -\subsubsection[{value}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpHeader::value}}} -\label{structHttpHeader_aa7dd0f8361dba57f5be17ff9c6a181e5} - - -Definition at line 23 of file header.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/http/\hyperlink{header_8h}{header.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structHttpRequest.tex b/docs/latex/structHttpRequest.tex deleted file mode 100644 index 2703353..0000000 --- a/docs/latex/structHttpRequest.tex +++ /dev/null @@ -1,106 +0,0 @@ -\hypertarget{structHttpRequest}{ -\section{HttpRequest Struct Reference} -\label{structHttpRequest}\index{HttpRequest@{HttpRequest}} -} - - -{\ttfamily \#include $<$request.h$>$} - - - -Collaboration diagram for HttpRequest: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{structHttpRequest_a266c616e67dea85335c9fcfca6e5c0cb}{method} -\item -char $\ast$ \hyperlink{structHttpRequest_a3f880540d72ba70d88f8a312b256b7c9}{uri} -\item -char $\ast$ \hyperlink{structHttpRequest_aca04aed601a66376623f14c98244cb66}{version} -\item -\hyperlink{structHttpHeader}{HttpHeader} \hyperlink{structHttpRequest_afb868f467dd9d53bac726682415e7e05}{header} \mbox{[}128\mbox{]} -\item -int \hyperlink{structHttpRequest_abd65f3f675b3291d2ce6e584b6ada40d}{nheader} -\item -char $\ast$ \hyperlink{structHttpRequest_a4064a72196787ee73d246b117de2a7ef}{body} -\item -int \hyperlink{structHttpRequest_a797280ec2d7f176f386a3da15d202a94}{nbody} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 7 of file request.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structHttpRequest_a4064a72196787ee73d246b117de2a7ef}{ -\index{HttpRequest@{HttpRequest}!body@{body}} -\index{body@{body}!HttpRequest@{HttpRequest}} -\subsubsection[{body}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpRequest::body}}} -\label{structHttpRequest_a4064a72196787ee73d246b117de2a7ef} - - -Definition at line 34 of file request.h. - -\hypertarget{structHttpRequest_afb868f467dd9d53bac726682415e7e05}{ -\index{HttpRequest@{HttpRequest}!header@{header}} -\index{header@{header}!HttpRequest@{HttpRequest}} -\subsubsection[{header}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpHeader} {\bf HttpRequest::header}\mbox{[}128\mbox{]}}} -\label{structHttpRequest_afb868f467dd9d53bac726682415e7e05} - - -Definition at line 31 of file request.h. - -\hypertarget{structHttpRequest_a266c616e67dea85335c9fcfca6e5c0cb}{ -\index{HttpRequest@{HttpRequest}!method@{method}} -\index{method@{method}!HttpRequest@{HttpRequest}} -\subsubsection[{method}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpRequest::method}}} -\label{structHttpRequest_a266c616e67dea85335c9fcfca6e5c0cb} - - -Definition at line 27 of file request.h. - -\hypertarget{structHttpRequest_a797280ec2d7f176f386a3da15d202a94}{ -\index{HttpRequest@{HttpRequest}!nbody@{nbody}} -\index{nbody@{nbody}!HttpRequest@{HttpRequest}} -\subsubsection[{nbody}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf HttpRequest::nbody}}} -\label{structHttpRequest_a797280ec2d7f176f386a3da15d202a94} - - -Definition at line 35 of file request.h. - -\hypertarget{structHttpRequest_abd65f3f675b3291d2ce6e584b6ada40d}{ -\index{HttpRequest@{HttpRequest}!nheader@{nheader}} -\index{nheader@{nheader}!HttpRequest@{HttpRequest}} -\subsubsection[{nheader}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf HttpRequest::nheader}}} -\label{structHttpRequest_abd65f3f675b3291d2ce6e584b6ada40d} - - -Definition at line 32 of file request.h. - -\hypertarget{structHttpRequest_a3f880540d72ba70d88f8a312b256b7c9}{ -\index{HttpRequest@{HttpRequest}!uri@{uri}} -\index{uri@{uri}!HttpRequest@{HttpRequest}} -\subsubsection[{uri}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpRequest::uri}}} -\label{structHttpRequest_a3f880540d72ba70d88f8a312b256b7c9} - - -Definition at line 28 of file request.h. - -\hypertarget{structHttpRequest_aca04aed601a66376623f14c98244cb66}{ -\index{HttpRequest@{HttpRequest}!version@{version}} -\index{version@{version}!HttpRequest@{HttpRequest}} -\subsubsection[{version}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpRequest::version}}} -\label{structHttpRequest_aca04aed601a66376623f14c98244cb66} - - -Definition at line 29 of file request.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/http/\hyperlink{request_8h}{request.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structHttpRequestParser.tex b/docs/latex/structHttpRequestParser.tex deleted file mode 100644 index 3909b89..0000000 --- a/docs/latex/structHttpRequestParser.tex +++ /dev/null @@ -1,84 +0,0 @@ -\hypertarget{structHttpRequestParser}{ -\section{HttpRequestParser Struct Reference} -\label{structHttpRequestParser}\index{HttpRequestParser@{HttpRequestParser}} -} - - -{\ttfamily \#include $<$request\_\-parser.h$>$} - - - -Collaboration diagram for HttpRequestParser: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{structHttpRequestParser_a6c93a89e984f6ee2c7f52bfa281c2f94}{buffer} -\item -size\_\-t \hyperlink{structHttpRequestParser_a8c978afebc23adea883f35699d0b1421}{buffer\_\-used} -\item -size\_\-t \hyperlink{structHttpRequestParser_aa969bc054c7215c626abecdc2b0e4b31}{buffer\_\-size} -\item -\hyperlink{structHttpRequestQueue}{HttpRequestQueue} \hyperlink{structHttpRequestParser_a5106282e74d88ab2238d5a1e11e1877a}{request\_\-queue} -\item -\hyperlink{request__parser_8h_acaccfe3e34d50afe26e415749f7f4827}{HttpRequestState} \hyperlink{structHttpRequestParser_a8b0173db304820355cc8764e57cc5b63}{state} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 18 of file request\_\-parser.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structHttpRequestParser_a6c93a89e984f6ee2c7f52bfa281c2f94}{ -\index{HttpRequestParser@{HttpRequestParser}!buffer@{buffer}} -\index{buffer@{buffer}!HttpRequestParser@{HttpRequestParser}} -\subsubsection[{buffer}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpRequestParser::buffer}}} -\label{structHttpRequestParser_a6c93a89e984f6ee2c7f52bfa281c2f94} - - -Definition at line 32 of file request\_\-parser.h. - -\hypertarget{structHttpRequestParser_aa969bc054c7215c626abecdc2b0e4b31}{ -\index{HttpRequestParser@{HttpRequestParser}!buffer\_\-size@{buffer\_\-size}} -\index{buffer\_\-size@{buffer\_\-size}!HttpRequestParser@{HttpRequestParser}} -\subsubsection[{buffer\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t {\bf HttpRequestParser::buffer\_\-size}}} -\label{structHttpRequestParser_aa969bc054c7215c626abecdc2b0e4b31} - - -Definition at line 34 of file request\_\-parser.h. - -\hypertarget{structHttpRequestParser_a8c978afebc23adea883f35699d0b1421}{ -\index{HttpRequestParser@{HttpRequestParser}!buffer\_\-used@{buffer\_\-used}} -\index{buffer\_\-used@{buffer\_\-used}!HttpRequestParser@{HttpRequestParser}} -\subsubsection[{buffer\_\-used}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t {\bf HttpRequestParser::buffer\_\-used}}} -\label{structHttpRequestParser_a8c978afebc23adea883f35699d0b1421} - - -Definition at line 33 of file request\_\-parser.h. - -\hypertarget{structHttpRequestParser_a5106282e74d88ab2238d5a1e11e1877a}{ -\index{HttpRequestParser@{HttpRequestParser}!request\_\-queue@{request\_\-queue}} -\index{request\_\-queue@{request\_\-queue}!HttpRequestParser@{HttpRequestParser}} -\subsubsection[{request\_\-queue}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpRequestQueue} {\bf HttpRequestParser::request\_\-queue}}} -\label{structHttpRequestParser_a5106282e74d88ab2238d5a1e11e1877a} - - -Definition at line 36 of file request\_\-parser.h. - -\hypertarget{structHttpRequestParser_a8b0173db304820355cc8764e57cc5b63}{ -\index{HttpRequestParser@{HttpRequestParser}!state@{state}} -\index{state@{state}!HttpRequestParser@{HttpRequestParser}} -\subsubsection[{state}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpRequestState} {\bf HttpRequestParser::state}}} -\label{structHttpRequestParser_a8b0173db304820355cc8764e57cc5b63} - - -Definition at line 37 of file request\_\-parser.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/http/\hyperlink{request__parser_8h}{request\_\-parser.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structHttpRequestParser__coll__graph.dot b/docs/latex/structHttpRequestParser__coll__graph.dot deleted file mode 100644 index 0c62ea3..0000000 --- a/docs/latex/structHttpRequestParser__coll__graph.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{HttpRequestParser\n|+ buffer\l+ buffer_used\l+ buffer_size\l+ request_queue\l+ state\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="request_queue",arrowtail="open"]; - Node2 [label="{HttpRequestQueue\n|+ requests\l+ nrequests\l|}",height=0.2,width=0.4,color="black",URL="$structHttpRequestQueue.html"]; - Node3 -> Node2 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="requests",arrowtail="open"]; - Node3 [label="{HttpRequest\n|+ method\l+ uri\l+ version\l+ header\l+ nheader\l+ body\l+ nbody\l|}",height=0.2,width=0.4,color="black",URL="$structHttpRequest.html"]; - Node4 -> Node3 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="header",arrowtail="open"]; - Node4 [label="{HttpHeader\n|+ hash\l+ name\l+ value\l|}",height=0.2,width=0.4,color="black",URL="$structHttpHeader.html"]; -} diff --git a/docs/latex/structHttpRequestParser__coll__graph.md5 b/docs/latex/structHttpRequestParser__coll__graph.md5 deleted file mode 100644 index 845dd38..0000000 --- a/docs/latex/structHttpRequestParser__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -ac3db2115a96ac90e60677fd3b277bd4 \ No newline at end of file diff --git a/docs/latex/structHttpRequestQueue.tex b/docs/latex/structHttpRequestQueue.tex deleted file mode 100644 index d110a38..0000000 --- a/docs/latex/structHttpRequestQueue.tex +++ /dev/null @@ -1,51 +0,0 @@ -\hypertarget{structHttpRequestQueue}{ -\section{HttpRequestQueue Struct Reference} -\label{structHttpRequestQueue}\index{HttpRequestQueue@{HttpRequestQueue}} -} - - -{\ttfamily \#include $<$request\_\-queue.h$>$} - - - -Collaboration diagram for HttpRequestQueue: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -\hyperlink{structHttpRequest}{HttpRequest} \hyperlink{structHttpRequestQueue_a9413ed3fe003274c47618adde5335164}{requests} \mbox{[}HTTP\_\-REQUEST\_\-QUEUE\_\-MAX\mbox{]} -\item -size\_\-t \hyperlink{structHttpRequestQueue_a2bd08c36442f90e82b29b09f54a08682}{nrequests} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 10 of file request\_\-queue.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structHttpRequestQueue_a2bd08c36442f90e82b29b09f54a08682}{ -\index{HttpRequestQueue@{HttpRequestQueue}!nrequests@{nrequests}} -\index{nrequests@{nrequests}!HttpRequestQueue@{HttpRequestQueue}} -\subsubsection[{nrequests}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t {\bf HttpRequestQueue::nrequests}}} -\label{structHttpRequestQueue_a2bd08c36442f90e82b29b09f54a08682} - - -Definition at line 21 of file request\_\-queue.h. - -\hypertarget{structHttpRequestQueue_a9413ed3fe003274c47618adde5335164}{ -\index{HttpRequestQueue@{HttpRequestQueue}!requests@{requests}} -\index{requests@{requests}!HttpRequestQueue@{HttpRequestQueue}} -\subsubsection[{requests}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpRequest} {\bf HttpRequestQueue::requests}\mbox{[}HTTP\_\-REQUEST\_\-QUEUE\_\-MAX\mbox{]}}} -\label{structHttpRequestQueue_a9413ed3fe003274c47618adde5335164} - - -Definition at line 20 of file request\_\-queue.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/http/\hyperlink{request__queue_8h}{request\_\-queue.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structHttpRequestQueue__coll__graph.dot b/docs/latex/structHttpRequestQueue__coll__graph.dot deleted file mode 100644 index 6ca4565..0000000 --- a/docs/latex/structHttpRequestQueue__coll__graph.dot +++ /dev/null @@ -1,11 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{HttpRequestQueue\n|+ requests\l+ nrequests\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="requests",arrowtail="open"]; - Node2 [label="{HttpRequest\n|+ method\l+ uri\l+ version\l+ header\l+ nheader\l+ body\l+ nbody\l|}",height=0.2,width=0.4,color="black",URL="$structHttpRequest.html"]; - Node3 -> Node2 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="header",arrowtail="open"]; - Node3 [label="{HttpHeader\n|+ hash\l+ name\l+ value\l|}",height=0.2,width=0.4,color="black",URL="$structHttpHeader.html"]; -} diff --git a/docs/latex/structHttpRequestQueue__coll__graph.md5 b/docs/latex/structHttpRequestQueue__coll__graph.md5 deleted file mode 100644 index 58ad34b..0000000 --- a/docs/latex/structHttpRequestQueue__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -2c3433c602ee84c7bf4f0f1cfbd7cc76 \ No newline at end of file diff --git a/docs/latex/structHttpRequest__coll__graph.dot b/docs/latex/structHttpRequest__coll__graph.dot deleted file mode 100644 index 0b07501..0000000 --- a/docs/latex/structHttpRequest__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{HttpRequest\n|+ method\l+ uri\l+ version\l+ header\l+ nheader\l+ body\l+ nbody\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="header",arrowtail="open"]; - Node2 [label="{HttpHeader\n|+ hash\l+ name\l+ value\l|}",height=0.2,width=0.4,color="black",URL="$structHttpHeader.html"]; -} diff --git a/docs/latex/structHttpRequest__coll__graph.md5 b/docs/latex/structHttpRequest__coll__graph.md5 deleted file mode 100644 index b7f7c1a..0000000 --- a/docs/latex/structHttpRequest__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -cf36acda91e0171699b23958eaa44adc \ No newline at end of file diff --git a/docs/latex/structHttpResponse.tex b/docs/latex/structHttpResponse.tex deleted file mode 100644 index 4f290b9..0000000 --- a/docs/latex/structHttpResponse.tex +++ /dev/null @@ -1,106 +0,0 @@ -\hypertarget{structHttpResponse}{ -\section{HttpResponse Struct Reference} -\label{structHttpResponse}\index{HttpResponse@{HttpResponse}} -} - - -{\ttfamily \#include $<$response.h$>$} - - - -Collaboration diagram for HttpResponse: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -char $\ast$ \hyperlink{structHttpResponse_ac74d5ca0e4f7e9c053ea014d9eb8e674}{http\_\-version} -\item -char $\ast$ \hyperlink{structHttpResponse_a3db0e40bc5f3d969fd15eb8b96214571}{status} -\item -char $\ast$ \hyperlink{structHttpResponse_aa74792db8cbc7e9c6046a41cfc79b895}{reson} -\item -\hyperlink{structHttpHeader}{HttpHeader} \hyperlink{structHttpResponse_aab84006da7b1af3df1fca9cd91045462}{header} \mbox{[}128\mbox{]} -\item -int \hyperlink{structHttpResponse_ab79cf221a040988a1dd5b1a6f0ed38a0}{nheader} -\item -char $\ast$ \hyperlink{structHttpResponse_a48b139a9e8a5385630d90c3ffa0a1666}{body} -\item -int \hyperlink{structHttpResponse_a27f5d9dfbbadf674387c12ebbae46561}{nbody} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 6 of file response.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structHttpResponse_a48b139a9e8a5385630d90c3ffa0a1666}{ -\index{HttpResponse@{HttpResponse}!body@{body}} -\index{body@{body}!HttpResponse@{HttpResponse}} -\subsubsection[{body}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpResponse::body}}} -\label{structHttpResponse_a48b139a9e8a5385630d90c3ffa0a1666} - - -Definition at line 33 of file response.h. - -\hypertarget{structHttpResponse_aab84006da7b1af3df1fca9cd91045462}{ -\index{HttpResponse@{HttpResponse}!header@{header}} -\index{header@{header}!HttpResponse@{HttpResponse}} -\subsubsection[{header}]{\setlength{\rightskip}{0pt plus 5cm}{\bf HttpHeader} {\bf HttpResponse::header}\mbox{[}128\mbox{]}}} -\label{structHttpResponse_aab84006da7b1af3df1fca9cd91045462} - - -Definition at line 30 of file response.h. - -\hypertarget{structHttpResponse_ac74d5ca0e4f7e9c053ea014d9eb8e674}{ -\index{HttpResponse@{HttpResponse}!http\_\-version@{http\_\-version}} -\index{http\_\-version@{http\_\-version}!HttpResponse@{HttpResponse}} -\subsubsection[{http\_\-version}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpResponse::http\_\-version}}} -\label{structHttpResponse_ac74d5ca0e4f7e9c053ea014d9eb8e674} - - -Definition at line 26 of file response.h. - -\hypertarget{structHttpResponse_a27f5d9dfbbadf674387c12ebbae46561}{ -\index{HttpResponse@{HttpResponse}!nbody@{nbody}} -\index{nbody@{nbody}!HttpResponse@{HttpResponse}} -\subsubsection[{nbody}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf HttpResponse::nbody}}} -\label{structHttpResponse_a27f5d9dfbbadf674387c12ebbae46561} - - -Definition at line 34 of file response.h. - -\hypertarget{structHttpResponse_ab79cf221a040988a1dd5b1a6f0ed38a0}{ -\index{HttpResponse@{HttpResponse}!nheader@{nheader}} -\index{nheader@{nheader}!HttpResponse@{HttpResponse}} -\subsubsection[{nheader}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf HttpResponse::nheader}}} -\label{structHttpResponse_ab79cf221a040988a1dd5b1a6f0ed38a0} - - -Definition at line 31 of file response.h. - -\hypertarget{structHttpResponse_aa74792db8cbc7e9c6046a41cfc79b895}{ -\index{HttpResponse@{HttpResponse}!reson@{reson}} -\index{reson@{reson}!HttpResponse@{HttpResponse}} -\subsubsection[{reson}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpResponse::reson}}} -\label{structHttpResponse_aa74792db8cbc7e9c6046a41cfc79b895} - - -Definition at line 28 of file response.h. - -\hypertarget{structHttpResponse_a3db0e40bc5f3d969fd15eb8b96214571}{ -\index{HttpResponse@{HttpResponse}!status@{status}} -\index{status@{status}!HttpResponse@{HttpResponse}} -\subsubsection[{status}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf HttpResponse::status}}} -\label{structHttpResponse_a3db0e40bc5f3d969fd15eb8b96214571} - - -Definition at line 27 of file response.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/http/\hyperlink{response_8h}{response.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structHttpResponse__coll__graph.dot b/docs/latex/structHttpResponse__coll__graph.dot deleted file mode 100644 index 1477ba1..0000000 --- a/docs/latex/structHttpResponse__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{HttpResponse\n|+ http_version\l+ status\l+ reson\l+ header\l+ nheader\l+ body\l+ nbody\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="header",arrowtail="open"]; - Node2 [label="{HttpHeader\n|+ hash\l+ name\l+ value\l|}",height=0.2,width=0.4,color="black",URL="$structHttpHeader.html"]; -} diff --git a/docs/latex/structHttpResponse__coll__graph.md5 b/docs/latex/structHttpResponse__coll__graph.md5 deleted file mode 100644 index 4e9afea..0000000 --- a/docs/latex/structHttpResponse__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -cc8270b80f70fa1017ef091a3cf5cbf5 \ No newline at end of file diff --git a/docs/latex/structLogger.tex b/docs/latex/structLogger.tex deleted file mode 100644 index 687651c..0000000 --- a/docs/latex/structLogger.tex +++ /dev/null @@ -1,37 +0,0 @@ -\hypertarget{structLogger}{ -\section{Logger Struct Reference} -\label{structLogger}\index{Logger@{Logger}} -} - - -{\ttfamily \#include $<$logger.h$>$} - -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -\hyperlink{logger_8h_a63296c69f4b9bf51d6756a5d2c482d1e}{logger\_\-level} \hyperlink{structLogger_ae0e2ee030c14c5ef01dc0d1568c6fd3f}{min\_\-level} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 19 of file logger.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structLogger_ae0e2ee030c14c5ef01dc0d1568c6fd3f}{ -\index{Logger@{Logger}!min\_\-level@{min\_\-level}} -\index{min\_\-level@{min\_\-level}!Logger@{Logger}} -\subsubsection[{min\_\-level}]{\setlength{\rightskip}{0pt plus 5cm}{\bf logger\_\-level} {\bf Logger::min\_\-level}}} -\label{structLogger_ae0e2ee030c14c5ef01dc0d1568c6fd3f} - - -Definition at line 36 of file logger.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{logger_8h}{logger.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structLoggerStderr.tex b/docs/latex/structLoggerStderr.tex deleted file mode 100644 index 4ee6da3..0000000 --- a/docs/latex/structLoggerStderr.tex +++ /dev/null @@ -1,37 +0,0 @@ -\hypertarget{structLoggerStderr}{ -\section{LoggerStderr Struct Reference} -\label{structLoggerStderr}\index{LoggerStderr@{LoggerStderr}} -} - - -{\ttfamily \#include $<$logger.h$>$} - -\subsection*{Public Member Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{structLoggerStderr_a533c72d4344f76a26516ac903651297a}{EXTENDS} (\hyperlink{structLogger}{Logger}) -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 39 of file logger.h. - - - -\subsection{Member Function Documentation} -\hypertarget{structLoggerStderr_a533c72d4344f76a26516ac903651297a}{ -\index{LoggerStderr@{LoggerStderr}!EXTENDS@{EXTENDS}} -\index{EXTENDS@{EXTENDS}!LoggerStderr@{LoggerStderr}} -\subsubsection[{EXTENDS}]{\setlength{\rightskip}{0pt plus 5cm}LoggerStderr::EXTENDS ( -\begin{DoxyParamCaption} -\item[{{\bf Logger}}]{} -\end{DoxyParamCaption} -)}} -\label{structLoggerStderr_a533c72d4344f76a26516ac903651297a} - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{logger_8h}{logger.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structLoggerSyslog.tex b/docs/latex/structLoggerSyslog.tex deleted file mode 100644 index b125827..0000000 --- a/docs/latex/structLoggerSyslog.tex +++ /dev/null @@ -1,37 +0,0 @@ -\hypertarget{structLoggerSyslog}{ -\section{LoggerSyslog Struct Reference} -\label{structLoggerSyslog}\index{LoggerSyslog@{LoggerSyslog}} -} - - -{\ttfamily \#include $<$logger.h$>$} - -\subsection*{Public Member Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{structLoggerSyslog_a116fa3bce3c65fc1fdd0a2b1f6a15011}{EXTENDS} (\hyperlink{structLogger}{Logger}) -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 55 of file logger.h. - - - -\subsection{Member Function Documentation} -\hypertarget{structLoggerSyslog_a116fa3bce3c65fc1fdd0a2b1f6a15011}{ -\index{LoggerSyslog@{LoggerSyslog}!EXTENDS@{EXTENDS}} -\index{EXTENDS@{EXTENDS}!LoggerSyslog@{LoggerSyslog}} -\subsubsection[{EXTENDS}]{\setlength{\rightskip}{0pt plus 5cm}LoggerSyslog::EXTENDS ( -\begin{DoxyParamCaption} -\item[{{\bf Logger}}]{} -\end{DoxyParamCaption} -)}} -\label{structLoggerSyslog_a116fa3bce3c65fc1fdd0a2b1f6a15011} - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{logger_8h}{logger.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structServer.tex b/docs/latex/structServer.tex deleted file mode 100644 index 68a3326..0000000 --- a/docs/latex/structServer.tex +++ /dev/null @@ -1,137 +0,0 @@ -\hypertarget{structServer}{ -\section{Server Struct Reference} -\label{structServer}\index{Server@{Server}} -} - - -{\ttfamily \#include $<$server.h$>$} - - - -Collaboration diagram for Server: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -\hyperlink{structLogger}{Logger} \hyperlink{structServer_ab50b5b20130564ba7e9a12032070882f}{logger} -\item -\hyperlink{structSock}{Sock} \hyperlink{structServer_a4cdc9c048a3a1846683fdedc2269c0f8}{sock} -\item -void $\ast$ \hyperlink{structServer_a241c1cbc117f318453934fa10c2c4a23}{reader} -\item -nfds\_\-t \hyperlink{structServer_a156e386a6d4c73e6233531706a091fb3}{nfds} -\item -nfds\_\-t \hyperlink{structServer_a88eb6b108b1d22967076fc1d9e21c4d4}{ndel} -\item -\begin{tabbing} -xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=xx\=\kill -struct \{\\ -\>\hyperlink{structSock}{Sock} \hyperlink{structServer_a4cdc9c048a3a1846683fdedc2269c0f8}{sock}\\ -\>void $\ast$ \hyperlink{structServer_a241c1cbc117f318453934fa10c2c4a23}{reader}\\ -\>char \hyperlink{structServer_a8914561393eb8d570a2cfb5348b6aeb7}{wbuf} \mbox{[}2048\mbox{]}\\ -\>char $\ast$ \hyperlink{structServer_a898e067058a6db3a8d5cf3968fc79c8a}{rbuf}\\ -\>unsigned int \hyperlink{structServer_af39a8d40450b5c6a947be2c1a95c0943}{rpos}\\ -\>unsigned int \hyperlink{structServer_a95e4cdf2ef584a6709f794d58d9190b3}{wpos}\\ -\} \hyperlink{structServer_a05ddcbbda8dfb0e506f624799de9d8f4}{conns} \mbox{[}POLL\_FD\_NSIZE\mbox{]}\\ - -\end{tabbing}\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 24 of file server.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structServer_a05ddcbbda8dfb0e506f624799de9d8f4}{ -\index{Server@{Server}!conns@{conns}} -\index{conns@{conns}!Server@{Server}} -\subsubsection[{conns}]{\setlength{\rightskip}{0pt plus 5cm}struct \{ ... \} {\bf Server::conns}\mbox{[}POLL\_\-FD\_\-NSIZE\mbox{]}}} -\label{structServer_a05ddcbbda8dfb0e506f624799de9d8f4} -\hypertarget{structServer_ab50b5b20130564ba7e9a12032070882f}{ -\index{Server@{Server}!logger@{logger}} -\index{logger@{logger}!Server@{Server}} -\subsubsection[{logger}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Logger} {\bf Server::logger}}} -\label{structServer_ab50b5b20130564ba7e9a12032070882f} - - -Definition at line 60 of file server.h. - -\hypertarget{structServer_a88eb6b108b1d22967076fc1d9e21c4d4}{ -\index{Server@{Server}!ndel@{ndel}} -\index{ndel@{ndel}!Server@{Server}} -\subsubsection[{ndel}]{\setlength{\rightskip}{0pt plus 5cm}nfds\_\-t {\bf Server::ndel}}} -\label{structServer_a88eb6b108b1d22967076fc1d9e21c4d4} - - -Definition at line 73 of file server.h. - -\hypertarget{structServer_a156e386a6d4c73e6233531706a091fb3}{ -\index{Server@{Server}!nfds@{nfds}} -\index{nfds@{nfds}!Server@{Server}} -\subsubsection[{nfds}]{\setlength{\rightskip}{0pt plus 5cm}nfds\_\-t {\bf Server::nfds}}} -\label{structServer_a156e386a6d4c73e6233531706a091fb3} -loeschen: fds\mbox{[}i\mbox{]}.event auf 0 dann nfds um die anzahl der geloeschten elemente verkleinern. die in close pending stehenden socket schliessen. vor jedem poll qsort auf fds ueber event. nach dem poll qsort auf fds ueber revent und reuckgebewert von poll beruecksichtigen. - -Definition at line 72 of file server.h. - -\hypertarget{structServer_a898e067058a6db3a8d5cf3968fc79c8a}{ -\index{Server@{Server}!rbuf@{rbuf}} -\index{rbuf@{rbuf}!Server@{Server}} -\subsubsection[{rbuf}]{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ {\bf Server::rbuf}}} -\label{structServer_a898e067058a6db3a8d5cf3968fc79c8a} - - -Definition at line 81 of file server.h. - -\hypertarget{structServer_a241c1cbc117f318453934fa10c2c4a23}{ -\index{Server@{Server}!reader@{reader}} -\index{reader@{reader}!Server@{Server}} -\subsubsection[{reader}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ {\bf Server::reader}}} -\label{structServer_a241c1cbc117f318453934fa10c2c4a23} - - -Definition at line 62 of file server.h. - -\hypertarget{structServer_af39a8d40450b5c6a947be2c1a95c0943}{ -\index{Server@{Server}!rpos@{rpos}} -\index{rpos@{rpos}!Server@{Server}} -\subsubsection[{rpos}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int {\bf Server::rpos}}} -\label{structServer_af39a8d40450b5c6a947be2c1a95c0943} - - -Definition at line 82 of file server.h. - -\hypertarget{structServer_a4cdc9c048a3a1846683fdedc2269c0f8}{ -\index{Server@{Server}!sock@{sock}} -\index{sock@{sock}!Server@{Server}} -\subsubsection[{sock}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Sock} {\bf Server::sock}}} -\label{structServer_a4cdc9c048a3a1846683fdedc2269c0f8} - - -Definition at line 61 of file server.h. - -\hypertarget{structServer_a8914561393eb8d570a2cfb5348b6aeb7}{ -\index{Server@{Server}!wbuf@{wbuf}} -\index{wbuf@{wbuf}!Server@{Server}} -\subsubsection[{wbuf}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf Server::wbuf}\mbox{[}2048\mbox{]}}} -\label{structServer_a8914561393eb8d570a2cfb5348b6aeb7} - - -Definition at line 80 of file server.h. - -\hypertarget{structServer_a95e4cdf2ef584a6709f794d58d9190b3}{ -\index{Server@{Server}!wpos@{wpos}} -\index{wpos@{wpos}!Server@{Server}} -\subsubsection[{wpos}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int {\bf Server::wpos}}} -\label{structServer_a95e4cdf2ef584a6709f794d58d9190b3} - - -Definition at line 83 of file server.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{server_8h}{server.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structServer__coll__graph.dot b/docs/latex/structServer__coll__graph.dot deleted file mode 100644 index c9c6eba..0000000 --- a/docs/latex/structServer__coll__graph.dot +++ /dev/null @@ -1,12 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{Server\n|+ logger\l+ sock\l+ reader\l+ nfds\l+ ndel\l+ wbuf\l+ rbuf\l+ rpos\l+ wpos\l+ conns\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="sock",arrowtail="open"]; - Node2 [label="{Sock\n|+ log\l+ port\l+ handle\l|}",height=0.2,width=0.4,color="black",URL="$structSock.html"]; - Node3 -> Node2 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="log",arrowtail="open"]; - Node3 [label="{Logger\n|+ min_level\l|}",height=0.2,width=0.4,color="black",URL="$structLogger.html"]; - Node3 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="logger",arrowtail="open"]; -} diff --git a/docs/latex/structServer__coll__graph.md5 b/docs/latex/structServer__coll__graph.md5 deleted file mode 100644 index 6380bff..0000000 --- a/docs/latex/structServer__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -d8808721040ff98e07313b8031cf9656 \ No newline at end of file diff --git a/docs/latex/structSock.tex b/docs/latex/structSock.tex deleted file mode 100644 index f0018a5..0000000 --- a/docs/latex/structSock.tex +++ /dev/null @@ -1,62 +0,0 @@ -\hypertarget{structSock}{ -\section{Sock Struct Reference} -\label{structSock}\index{Sock@{Sock}} -} - - -{\ttfamily \#include $<$socket.h$>$} - - - -Collaboration diagram for Sock: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -\hyperlink{structLogger}{Logger} \hyperlink{structSock_a7441b6368f3e778b5da7554a4f5a7eb6}{log} -\item -in\_\-port\_\-t \hyperlink{structSock_a29ba0820a4596f40009a514d7cb82f39}{port} -\item -int \hyperlink{structSock_a1b5945aef923a906501d7abac82449c3}{handle} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 9 of file socket.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structSock_a1b5945aef923a906501d7abac82449c3}{ -\index{Sock@{Sock}!handle@{handle}} -\index{handle@{handle}!Sock@{Sock}} -\subsubsection[{handle}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf Sock::handle}}} -\label{structSock_a1b5945aef923a906501d7abac82449c3} - - -Definition at line 29 of file socket.h. - -\hypertarget{structSock_a7441b6368f3e778b5da7554a4f5a7eb6}{ -\index{Sock@{Sock}!log@{log}} -\index{log@{log}!Sock@{Sock}} -\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Logger} {\bf Sock::log}}} -\label{structSock_a7441b6368f3e778b5da7554a4f5a7eb6} - - -Definition at line 26 of file socket.h. - -\hypertarget{structSock_a29ba0820a4596f40009a514d7cb82f39}{ -\index{Sock@{Sock}!port@{port}} -\index{port@{port}!Sock@{Sock}} -\subsubsection[{port}]{\setlength{\rightskip}{0pt plus 5cm}in\_\-port\_\-t {\bf Sock::port}}} -\label{structSock_a29ba0820a4596f40009a514d7cb82f39} - - -Definition at line 27 of file socket.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{socket_8h}{socket.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structSock__coll__graph.dot b/docs/latex/structSock__coll__graph.dot deleted file mode 100644 index 3ed333c..0000000 --- a/docs/latex/structSock__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{Sock\n|+ log\l+ port\l+ handle\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="log",arrowtail="open"]; - Node2 [label="{Logger\n|+ min_level\l|}",height=0.2,width=0.4,color="black",URL="$structLogger.html"]; -} diff --git a/docs/latex/structSock__coll__graph.md5 b/docs/latex/structSock__coll__graph.md5 deleted file mode 100644 index db37269..0000000 --- a/docs/latex/structSock__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -f6141196087b85a4744564eb4d4bf5a0 \ No newline at end of file diff --git a/docs/latex/structclass.tex b/docs/latex/structclass.tex deleted file mode 100644 index 09f14cc..0000000 --- a/docs/latex/structclass.tex +++ /dev/null @@ -1,73 +0,0 @@ -\hypertarget{structclass}{ -\section{class Struct Reference} -\label{structclass}\index{class@{class}} -} - - -{\ttfamily \#include $<$class.h$>$} - - - -Collaboration diagram for class: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -const int \hyperlink{structclass_a395a6874758c92188945df7c070f5ff1}{magic} -\item -\hyperlink{structclass}{class\_\-ptr} \hyperlink{structclass_a97f697cb86be7a39d4477e971074ae6e}{parent} -\item -size\_\-t \hyperlink{structclass_a31f0b35f94229885e948d55bac214c0d}{object\_\-size} -\item -\hyperlink{class_8h_aa0ba47bce818b20155a8ef17a1fdc35c}{fptr\_\-classInit} \hyperlink{structclass_a744967ad02b74a9464c1224c7fa05b23}{init} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 77 of file class.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structclass_a744967ad02b74a9464c1224c7fa05b23}{ -\index{class@{class}!init@{init}} -\index{init@{init}!class@{class}} -\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-classInit} {\bf class::init}}} -\label{structclass_a744967ad02b74a9464c1224c7fa05b23} - - -Definition at line 81 of file class.h. - -\hypertarget{structclass_a395a6874758c92188945df7c070f5ff1}{ -\index{class@{class}!magic@{magic}} -\index{magic@{magic}!class@{class}} -\subsubsection[{magic}]{\setlength{\rightskip}{0pt plus 5cm}const int {\bf class::magic}}} -\label{structclass_a395a6874758c92188945df7c070f5ff1} - - -Definition at line 78 of file class.h. - -\hypertarget{structclass_a31f0b35f94229885e948d55bac214c0d}{ -\index{class@{class}!object\_\-size@{object\_\-size}} -\index{object\_\-size@{object\_\-size}!class@{class}} -\subsubsection[{object\_\-size}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t {\bf class::object\_\-size}}} -\label{structclass_a31f0b35f94229885e948d55bac214c0d} - - -Definition at line 80 of file class.h. - -\hypertarget{structclass_a97f697cb86be7a39d4477e971074ae6e}{ -\index{class@{class}!parent@{parent}} -\index{parent@{parent}!class@{class}} -\subsubsection[{parent}]{\setlength{\rightskip}{0pt plus 5cm}{\bf class\_\-ptr} {\bf class::parent}}} -\label{structclass_a97f697cb86be7a39d4477e971074ae6e} - - -Definition at line 79 of file class.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{class_8h}{class.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structclass__coll__graph.dot b/docs/latex/structclass__coll__graph.dot deleted file mode 100644 index d516a51..0000000 --- a/docs/latex/structclass__coll__graph.dot +++ /dev/null @@ -1,8 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{class\n|+ magic\l+ parent\l+ object_size\l+ init\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="parent",arrowtail="open"]; -} diff --git a/docs/latex/structclass__coll__graph.md5 b/docs/latex/structclass__coll__graph.md5 deleted file mode 100644 index 4d218d2..0000000 --- a/docs/latex/structclass__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -e7435c01bd06a73b4e9a129f0611c38a \ No newline at end of file diff --git a/docs/latex/structi__Class.tex b/docs/latex/structi__Class.tex deleted file mode 100644 index 514eb00..0000000 --- a/docs/latex/structi__Class.tex +++ /dev/null @@ -1,73 +0,0 @@ -\hypertarget{structi__Class}{ -\section{i\_\-Class Struct Reference} -\label{structi__Class}\index{i\_\-Class@{i\_\-Class}} -} - - -{\ttfamily \#include $<$class.h$>$} - - - -Collaboration diagram for i\_\-Class: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} $\ast$const \hyperlink{structi__Class_a988da6337fdaa9c14010c864c628555c}{\_\-} -\item -\hyperlink{interface_2class_8h_a207fe2c25aae0b91e9df60b0ece4217e}{fptr\_\-ctor} \hyperlink{structi__Class_ace20a21c57a14d2846cfd061002970f4}{ctor} -\item -\hyperlink{interface_2class_8h_a59366634eecbace7ae9c8c5e65199c91}{fptr\_\-dtor} \hyperlink{structi__Class_aced52ce163499af9cc7de1ae979e0ee2}{dtor} -\item -\hyperlink{interface_2class_8h_a6d852b3640eeb6ef8a3d776b87736392}{fptr\_\-clone} \hyperlink{structi__Class_ad3af0db4f258c8af23f62e14283bff43}{clone} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 15 of file class.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structi__Class_a988da6337fdaa9c14010c864c628555c}{ -\index{i\_\-Class@{i\_\-Class}!\_\-@{\_\-}} -\index{\_\-@{\_\-}!i_Class@{i\_\-Class}} -\subsubsection[{\_\-}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf interface}$\ast$ const {\bf i\_\-Class::\_\-}}} -\label{structi__Class_a988da6337fdaa9c14010c864c628555c} - - -Definition at line 16 of file class.h. - -\hypertarget{structi__Class_ad3af0db4f258c8af23f62e14283bff43}{ -\index{i\_\-Class@{i\_\-Class}!clone@{clone}} -\index{clone@{clone}!i_Class@{i\_\-Class}} -\subsubsection[{clone}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-clone} {\bf i\_\-Class::clone}}} -\label{structi__Class_ad3af0db4f258c8af23f62e14283bff43} - - -Definition at line 19 of file class.h. - -\hypertarget{structi__Class_ace20a21c57a14d2846cfd061002970f4}{ -\index{i\_\-Class@{i\_\-Class}!ctor@{ctor}} -\index{ctor@{ctor}!i_Class@{i\_\-Class}} -\subsubsection[{ctor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-ctor} {\bf i\_\-Class::ctor}}} -\label{structi__Class_ace20a21c57a14d2846cfd061002970f4} - - -Definition at line 17 of file class.h. - -\hypertarget{structi__Class_aced52ce163499af9cc7de1ae979e0ee2}{ -\index{i\_\-Class@{i\_\-Class}!dtor@{dtor}} -\index{dtor@{dtor}!i_Class@{i\_\-Class}} -\subsubsection[{dtor}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-dtor} {\bf i\_\-Class::dtor}}} -\label{structi__Class_aced52ce163499af9cc7de1ae979e0ee2} - - -Definition at line 18 of file class.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/interface/\hyperlink{interface_2class_8h}{class.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structi__Class__coll__graph.dot b/docs/latex/structi__Class__coll__graph.dot deleted file mode 100644 index b2142b0..0000000 --- a/docs/latex/structi__Class__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{i_Class\n|+ _\l+ ctor\l+ dtor\l+ clone\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="_",arrowtail="open"]; - Node2 [label="{interface\n|+ name\l+ nmethods\l|}",height=0.2,width=0.4,color="black",URL="$structinterface.html"]; -} diff --git a/docs/latex/structi__Class__coll__graph.md5 b/docs/latex/structi__Class__coll__graph.md5 deleted file mode 100644 index ed2ea33..0000000 --- a/docs/latex/structi__Class__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -98b7fa135f0f0ccf6da06ec25f249444 \ No newline at end of file diff --git a/docs/latex/structi__Logger.tex b/docs/latex/structi__Logger.tex deleted file mode 100644 index 400d694..0000000 --- a/docs/latex/structi__Logger.tex +++ /dev/null @@ -1,51 +0,0 @@ -\hypertarget{structi__Logger}{ -\section{i\_\-Logger Struct Reference} -\label{structi__Logger}\index{i\_\-Logger@{i\_\-Logger}} -} - - -{\ttfamily \#include $<$logger.h$>$} - - - -Collaboration diagram for i\_\-Logger: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} $\ast$const \hyperlink{structi__Logger_a4e6025014bd73827bbb1c3e3dd571160}{\_\-} -\item -\hyperlink{interface_2logger_8h_a4dcd041363da34329e1c9442c98a273e}{fptr\_\-log} \hyperlink{structi__Logger_ac8380d02d5fb624d46df64e0c8a4e236}{log} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 13 of file logger.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structi__Logger_a4e6025014bd73827bbb1c3e3dd571160}{ -\index{i\_\-Logger@{i\_\-Logger}!\_\-@{\_\-}} -\index{\_\-@{\_\-}!i_Logger@{i\_\-Logger}} -\subsubsection[{\_\-}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf interface}$\ast$ const {\bf i\_\-Logger::\_\-}}} -\label{structi__Logger_a4e6025014bd73827bbb1c3e3dd571160} - - -Definition at line 14 of file logger.h. - -\hypertarget{structi__Logger_ac8380d02d5fb624d46df64e0c8a4e236}{ -\index{i\_\-Logger@{i\_\-Logger}!log@{log}} -\index{log@{log}!i_Logger@{i\_\-Logger}} -\subsubsection[{log}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-log} {\bf i\_\-Logger::log}}} -\label{structi__Logger_ac8380d02d5fb624d46df64e0c8a4e236} - - -Definition at line 15 of file logger.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/interface/\hyperlink{interface_2logger_8h}{logger.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structi__Logger__coll__graph.dot b/docs/latex/structi__Logger__coll__graph.dot deleted file mode 100644 index 9bcb9a5..0000000 --- a/docs/latex/structi__Logger__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{i_Logger\n|+ _\l+ log\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="_",arrowtail="open"]; - Node2 [label="{interface\n|+ name\l+ nmethods\l|}",height=0.2,width=0.4,color="black",URL="$structinterface.html"]; -} diff --git a/docs/latex/structi__Logger__coll__graph.md5 b/docs/latex/structi__Logger__coll__graph.md5 deleted file mode 100644 index ae99750..0000000 --- a/docs/latex/structi__Logger__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -91f14fb435f59097c771a24ee15146b3 \ No newline at end of file diff --git a/docs/latex/structi__StreamReader.tex b/docs/latex/structi__StreamReader.tex deleted file mode 100644 index 0735dc7..0000000 --- a/docs/latex/structi__StreamReader.tex +++ /dev/null @@ -1,51 +0,0 @@ -\hypertarget{structi__StreamReader}{ -\section{i\_\-StreamReader Struct Reference} -\label{structi__StreamReader}\index{i\_\-StreamReader@{i\_\-StreamReader}} -} - - -{\ttfamily \#include $<$stream\_\-reader.h$>$} - - - -Collaboration diagram for i\_\-StreamReader: -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -struct \hyperlink{structinterface}{interface} $\ast$const \hyperlink{structi__StreamReader_ac1a75d5e8f7932c13f1575805f097a4a}{\_\-} -\item -\hyperlink{stream__reader_8h_a658a56ce1aa463cc7de51f42080ca24f}{fptr\_\-streamReaderRead} \hyperlink{structi__StreamReader_ae27c6977fb19bd1199316d8724b1c693}{read} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 10 of file stream\_\-reader.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structi__StreamReader_ac1a75d5e8f7932c13f1575805f097a4a}{ -\index{i\_\-StreamReader@{i\_\-StreamReader}!\_\-@{\_\-}} -\index{\_\-@{\_\-}!i_StreamReader@{i\_\-StreamReader}} -\subsubsection[{\_\-}]{\setlength{\rightskip}{0pt plus 5cm}struct {\bf interface}$\ast$ const {\bf i\_\-StreamReader::\_\-}}} -\label{structi__StreamReader_ac1a75d5e8f7932c13f1575805f097a4a} - - -Definition at line 11 of file stream\_\-reader.h. - -\hypertarget{structi__StreamReader_ae27c6977fb19bd1199316d8724b1c693}{ -\index{i\_\-StreamReader@{i\_\-StreamReader}!read@{read}} -\index{read@{read}!i_StreamReader@{i\_\-StreamReader}} -\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}{\bf fptr\_\-streamReaderRead} {\bf i\_\-StreamReader::read}}} -\label{structi__StreamReader_ae27c6977fb19bd1199316d8724b1c693} - - -Definition at line 12 of file stream\_\-reader.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/interface/\hyperlink{stream__reader_8h}{stream\_\-reader.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structi__StreamReader__coll__graph.dot b/docs/latex/structi__StreamReader__coll__graph.dot deleted file mode 100644 index 380df07..0000000 --- a/docs/latex/structi__StreamReader__coll__graph.dot +++ /dev/null @@ -1,9 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="{i_StreamReader\n|+ _\l+ read\l|}",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node2 -> Node1 [dir=back,color="darkorchid3",fontsize="10",style="dashed",label="_",arrowtail="open"]; - Node2 [label="{interface\n|+ name\l+ nmethods\l|}",height=0.2,width=0.4,color="black",URL="$structinterface.html"]; -} diff --git a/docs/latex/structi__StreamReader__coll__graph.md5 b/docs/latex/structi__StreamReader__coll__graph.md5 deleted file mode 100644 index 0143499..0000000 --- a/docs/latex/structi__StreamReader__coll__graph.md5 +++ /dev/null @@ -1 +0,0 @@ -be25c3522d6d846a82a92b9f20df079c \ No newline at end of file diff --git a/docs/latex/structiface__impl.tex b/docs/latex/structiface__impl.tex deleted file mode 100644 index 3e8851a..0000000 --- a/docs/latex/structiface__impl.tex +++ /dev/null @@ -1,59 +0,0 @@ -\hypertarget{structiface__impl}{ -\section{iface\_\-impl Struct Reference} -\label{structiface__impl}\index{iface\_\-impl@{iface\_\-impl}} -} - - -{\ttfamily \#include $<$interface.h$>$} - -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -const size\_\-t \hyperlink{structiface__impl_af2eaa008e863bdef373ed0c6fa26722b}{nimpl} -\item -char \hyperlink{structiface__impl_a9ee4589aed892fb213117b692e63e302}{simpl} -\item -const void $\ast$ \hyperlink{structiface__impl_a4f3e0d7f7bbd7e3f98472a140c37c1ea}{impl} \mbox{[}MAX\_\-IFACE\mbox{]} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 28 of file interface.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structiface__impl_a4f3e0d7f7bbd7e3f98472a140c37c1ea}{ -\index{iface\_\-impl@{iface\_\-impl}!impl@{impl}} -\index{impl@{impl}!iface_impl@{iface\_\-impl}} -\subsubsection[{impl}]{\setlength{\rightskip}{0pt plus 5cm}const void$\ast$ {\bf iface\_\-impl::impl}\mbox{[}MAX\_\-IFACE\mbox{]}}} -\label{structiface__impl_a4f3e0d7f7bbd7e3f98472a140c37c1ea} - - -Definition at line 31 of file interface.h. - -\hypertarget{structiface__impl_af2eaa008e863bdef373ed0c6fa26722b}{ -\index{iface\_\-impl@{iface\_\-impl}!nimpl@{nimpl}} -\index{nimpl@{nimpl}!iface_impl@{iface\_\-impl}} -\subsubsection[{nimpl}]{\setlength{\rightskip}{0pt plus 5cm}const size\_\-t {\bf iface\_\-impl::nimpl}}} -\label{structiface__impl_af2eaa008e863bdef373ed0c6fa26722b} - - -Definition at line 29 of file interface.h. - -\hypertarget{structiface__impl_a9ee4589aed892fb213117b692e63e302}{ -\index{iface\_\-impl@{iface\_\-impl}!simpl@{simpl}} -\index{simpl@{simpl}!iface_impl@{iface\_\-impl}} -\subsubsection[{simpl}]{\setlength{\rightskip}{0pt plus 5cm}char {\bf iface\_\-impl::simpl}}} -\label{structiface__impl_a9ee4589aed892fb213117b692e63e302} - - -Definition at line 30 of file interface.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{interface_8h}{interface.h}\end{DoxyCompactItemize} diff --git a/docs/latex/structinterface.tex b/docs/latex/structinterface.tex deleted file mode 100644 index 77ec68d..0000000 --- a/docs/latex/structinterface.tex +++ /dev/null @@ -1,48 +0,0 @@ -\hypertarget{structinterface}{ -\section{interface Struct Reference} -\label{structinterface}\index{interface@{interface}} -} - - -{\ttfamily \#include $<$interface.h$>$} - -\subsection*{Public Attributes} -\begin{DoxyCompactItemize} -\item -const char $\ast$ \hyperlink{structinterface_aee0f8e8ed8b404d358a6da91196da0d9}{name} -\item -const size\_\-t \hyperlink{structinterface_a7efc08a40bdff0c29b10594c7148168f}{nmethods} -\end{DoxyCompactItemize} - - -\subsection{Detailed Description} - - -Definition at line 22 of file interface.h. - - - -\subsection{Member Data Documentation} -\hypertarget{structinterface_aee0f8e8ed8b404d358a6da91196da0d9}{ -\index{interface@{interface}!name@{name}} -\index{name@{name}!interface@{interface}} -\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf interface::name}}} -\label{structinterface_aee0f8e8ed8b404d358a6da91196da0d9} - - -Definition at line 23 of file interface.h. - -\hypertarget{structinterface_a7efc08a40bdff0c29b10594c7148168f}{ -\index{interface@{interface}!nmethods@{nmethods}} -\index{nmethods@{nmethods}!interface@{interface}} -\subsubsection[{nmethods}]{\setlength{\rightskip}{0pt plus 5cm}const size\_\-t {\bf interface::nmethods}}} -\label{structinterface_a7efc08a40bdff0c29b10594c7148168f} - - -Definition at line 24 of file interface.h. - - - -The documentation for this struct was generated from the following file:\begin{DoxyCompactItemize} -\item -include/\hyperlink{interface_8h}{interface.h}\end{DoxyCompactItemize} diff --git a/docs/latex/syslog_8c.tex b/docs/latex/syslog_8c.tex deleted file mode 100644 index 914a6f6..0000000 --- a/docs/latex/syslog_8c.tex +++ /dev/null @@ -1,39 +0,0 @@ -\hypertarget{syslog_8c}{ -\section{src/logger/syslog.c File Reference} -\label{syslog_8c}\index{src/logger/syslog.c@{src/logger/syslog.c}} -} -{\ttfamily \#include $<$syslog.h$>$}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/logger.h\char`\"{}}\par -Include dependency graph for syslog.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -\hyperlink{syslog_8c_aaf569dba91297bc3e203e7ad7f9c90f8}{INIT\_\-IFACE} (\hyperlink{structLogger}{Logger}, logSyslog) -\item -\hyperlink{syslog_8c_a86d902d1f3ac6c51e9e184744b37f7e3}{CREATE\_\-CLASS} (\hyperlink{structLoggerSyslog}{LoggerSyslog}, \hyperlink{structLogger}{Logger}, IFACE(\hyperlink{structLogger}{Logger})) -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{syslog_8c_a86d902d1f3ac6c51e9e184744b37f7e3}{ -\index{syslog.c@{syslog.c}!CREATE\_\-CLASS@{CREATE\_\-CLASS}} -\index{CREATE\_\-CLASS@{CREATE\_\-CLASS}!syslog.c@{syslog.c}} -\subsubsection[{CREATE\_\-CLASS}]{\setlength{\rightskip}{0pt plus 5cm}CREATE\_\-CLASS ( -\begin{DoxyParamCaption} -\item[{{\bf LoggerSyslog}}]{, } -\item[{{\bf Logger}}]{, } -\item[{IFACE({\bf Logger})}]{} -\end{DoxyParamCaption} -)}} -\label{syslog_8c_a86d902d1f3ac6c51e9e184744b37f7e3} -\hypertarget{syslog_8c_aaf569dba91297bc3e203e7ad7f9c90f8}{ -\index{syslog.c@{syslog.c}!INIT\_\-IFACE@{INIT\_\-IFACE}} -\index{INIT\_\-IFACE@{INIT\_\-IFACE}!syslog.c@{syslog.c}} -\subsubsection[{INIT\_\-IFACE}]{\setlength{\rightskip}{0pt plus 5cm}INIT\_\-IFACE ( -\begin{DoxyParamCaption} -\item[{{\bf Logger}}]{, } -\item[{logSyslog}]{} -\end{DoxyParamCaption} -)}} -\label{syslog_8c_aaf569dba91297bc3e203e7ad7f9c90f8} diff --git a/docs/latex/syslog_8c__incl.dot b/docs/latex/syslog_8c__incl.dot deleted file mode 100644 index b9d5156..0000000 --- a/docs/latex/syslog_8c__incl.dot +++ /dev/null @@ -1,13 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/logger/syslog.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="syslog.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="interface/logger.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/syslog_8c__incl.md5 b/docs/latex/syslog_8c__incl.md5 deleted file mode 100644 index 45c15e2..0000000 --- a/docs/latex/syslog_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -1957c89e2cab59f16261638ee9e985b5 \ No newline at end of file diff --git a/docs/latex/testserver_8c.tex b/docs/latex/testserver_8c.tex deleted file mode 100644 index 29be917..0000000 --- a/docs/latex/testserver_8c.tex +++ /dev/null @@ -1,58 +0,0 @@ -\hypertarget{testserver_8c}{ -\section{src/testserver.c File Reference} -\label{testserver_8c}\index{src/testserver.c@{src/testserver.c}} -} -{\ttfamily \#include $<$stdio.h$>$}\par -{\ttfamily \#include $<$socket.h$>$}\par -{\ttfamily \#include $<$string.h$>$}\par -{\ttfamily \#include \char`\"{}server.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}logger.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}http/request\_\-parser.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}signalHandling.h\char`\"{}}\par -{\ttfamily \#include \char`\"{}interface/class.h\char`\"{}}\par -Include dependency graph for testserver.c: -\subsection*{Functions} -\begin{DoxyCompactItemize} -\item -int \hyperlink{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{main} () -\end{DoxyCompactItemize} - - -\subsection{Function Documentation} -\hypertarget{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4}{ -\index{testserver.c@{testserver.c}!main@{main}} -\index{main@{main}!testserver.c@{testserver.c}} -\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main ( -\begin{DoxyParamCaption} -{} -\end{DoxyParamCaption} -)}} -\label{testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4} - - -Definition at line 14 of file testserver.c. - - -\begin{DoxyCode} -{ - Logger logger = new(LoggerStderr, LOGGER_ERR); - HttpRequestParser parser = new(HttpRequestParser); - Server server = new(Server, logger, parser, 11212, SOMAXCONN); - - //Server server = new(Server, logger, parser, 11212, 20); - - init_signals(); - serverRun(server); - - delete(&server); - delete(&logger); - delete(&parser); - - return 0; -} -\end{DoxyCode} - - -Here is the call graph for this function: - - diff --git a/docs/latex/testserver_8c__incl.dot b/docs/latex/testserver_8c__incl.dot deleted file mode 100644 index a485b22..0000000 --- a/docs/latex/testserver_8c__incl.dot +++ /dev/null @@ -1,23 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - Node1 [label="src/testserver.c",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="stdio.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="socket.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="string.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="server.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="logger.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node7 [color="midnightblue",fontsize="10",style="solid"]; - Node7 [label="http/request_parser.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node8 [color="midnightblue",fontsize="10",style="solid"]; - Node8 [label="signalHandling.h",height=0.2,width=0.4,color="grey75"]; - Node1 -> Node9 [color="midnightblue",fontsize="10",style="solid"]; - Node9 [label="interface/class.h",height=0.2,width=0.4,color="grey75"]; -} diff --git a/docs/latex/testserver_8c__incl.md5 b/docs/latex/testserver_8c__incl.md5 deleted file mode 100644 index a251679..0000000 --- a/docs/latex/testserver_8c__incl.md5 +++ /dev/null @@ -1 +0,0 @@ -18fca92f2360ddadc5f6815e99240563 \ No newline at end of file diff --git a/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.dot b/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.dot deleted file mode 100644 index fe12cc1..0000000 --- a/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.dot +++ /dev/null @@ -1,18 +0,0 @@ -digraph G -{ - bgcolor="transparent"; - edge [fontname="Helvetica",fontsize="10",labelfontname="Helvetica",labelfontsize="10"]; - node [fontname="Helvetica",fontsize="10",shape=record]; - rankdir=LR; - Node1 [label="main",height=0.2,width=0.4,color="black", fillcolor="grey75", style="filled" fontcolor="black"]; - Node1 -> Node2 [color="midnightblue",fontsize="10",style="solid"]; - Node2 [label="init_signals",height=0.2,width=0.4,color="black",URL="$signalHandling_8h.html#a1de31bdef82f181f8045b94ae0933916"]; - Node2 -> Node3 [color="midnightblue",fontsize="10",style="solid"]; - Node3 [label="terminate",height=0.2,width=0.4,color="black",URL="$signalHandling_8h.html#a64612b9588ed0fb05d70680db02b3630"]; - Node1 -> Node4 [color="midnightblue",fontsize="10",style="solid"]; - Node4 [label="serverRun",height=0.2,width=0.4,color="black",URL="$server_8h.html#a67a4d9073b80d8ae1459fb11ddd23675"]; - Node4 -> Node5 [color="midnightblue",fontsize="10",style="solid"]; - Node5 [label="loggerLog",height=0.2,width=0.4,color="black",URL="$interface_2logger_8h.html#ae9f8662ec8b300dcfb5064906937553e"]; - Node4 -> Node6 [color="midnightblue",fontsize="10",style="solid"]; - Node6 [label="serverCloseConn",height=0.2,width=0.4,color="black",URL="$server_8h.html#a81f787254ea87cbc851d292e5a7d195d"]; -} diff --git a/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 b/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 deleted file mode 100644 index 8bd453c..0000000 --- a/docs/latex/testserver_8c_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 +++ /dev/null @@ -1 +0,0 @@ -b8fcefbc2234eef5ab76d80a87b473d0 \ No newline at end of file