Server 0.0.1
HTTP/REST server implementation

src/http/worker.c File Reference

#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <search.h>
#include "class.h"
#include "stream.h"
#include "http/worker.h"
#include "http/parser.h"
#include "http/writer.h"
#include "utils/memory.h"
Include dependency graph for worker.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

ssize_t httpWorkerProcess (void *, Stream)
ssize_t httpWorkerWrite (void *, Stream)
 INIT_IFACE (Class, httpWorkerCtor, httpWorkerDtor, httpWorkerClone)
 INIT_IFACE (StreamReader, httpWorkerProcess)
 INIT_IFACE (StreamWriter, httpWorkerWrite)
 CREATE_CLASS (HttpWorker, NULL, IFACE(Class), IFACE(StreamReader), IFACE(StreamWriter))

Detailed Description

Author:
Georg Hopp

Copyright © 2012 Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Definition in file worker.c.


Define Documentation

#define _GNU_SOURCE

Definition at line 23 of file worker.c.


Function Documentation

CREATE_CLASS ( HttpWorker  ,
NULL  ,
IFACE(Class)  ,
IFACE(StreamReader)  ,
IFACE(StreamWriter)   
)
ssize_t httpWorkerProcess ( void *  ,
Stream   
)
ssize_t httpWorkerWrite ( void *  ,
Stream   
)
INIT_IFACE ( StreamWriter  ,
httpWorkerWrite   
)
INIT_IFACE ( StreamReader  ,
httpWorkerProcess   
)
INIT_IFACE ( Class  ,
httpWorkerCtor  ,
httpWorkerDtor  ,
httpWorkerClone   
)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines