Server 0.0.1
HTTP/REST server implementation

include/http/worker.h

Go to the documentation of this file.
00001 
00024 #ifndef __HTTP_WORKER_H__
00025 #define __HTTP_WORKER_H__
00026 
00027 #include <sys/types.h>
00028 #include <time.h>
00029 
00030 #include "class.h"
00031 #include "http/parser.h"
00032 #include "http/writer.h"
00033 #include "cbuf.h"
00034 #include "session.h"
00035 
00036 #include "commons.h"
00037 
00038 struct randval {
00039         time_t timestamp;
00040         int    value;
00041 };
00042 
00043 
00044 CLASS(HttpWorker) {
00045         char           * id;
00046         struct randval * val;
00047 
00048         Cbuf       pbuf;
00049         Cbuf       wbuf;
00050 
00051         HttpParser parser;
00052         HttpWriter writer;
00053         Session    session;
00054         Session  * sroot;
00055 
00056         void *     auth;
00057 };
00058 
00059 #endif // __HTTP_WORKER_H__
00060 
00061 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines