|
Server 0.0.1
HTTP/REST server implementation
|
#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"
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)) | |
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.
| 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 | |||
| ) |