worker.h
444 Bytes
#ifndef __HTTP_WORKER_H__
#define __HTTP_WORKER_H__
#include <sys/types.h>
#include "class.h"
#include "http/request/parser.h"
#include "http/response/writer.h"
CLASS(HttpWorker) {
char * remoteAddr;
int handle;
HttpRequestParser parser;
HttpResponseWriter writer;
};
ssize_t httpWorkerProcess(HttpWorker, int);
ssize_t httpWorkerWrite(HttpWorker, int);
#endif // __HTTP_WORKER_H__
// vim: set ts=4 sw=4: