taskrambler
v0.1.8
Web server and task management solution.
|
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <search.h>
#include "class.h"
#include "stream.h"
#include "hash.h"
#include "queue.h"
#include "http/worker.h"
#include "http/parser.h"
#include "http/writer.h"
#include "utils/memory.h"
#include "interface/subject.h"
#include "interface/observer.h"
Go to the source code of this file.
Macros | |
#define | _GNU_SOURCE |
Functions | |
static int | httpWorkerCtor (void *_this, va_list *params) |
static void | httpWorkerDtor (void *_this) |
static void | httpWorkerClone (void *_this, void *_base) |
ssize_t | httpWorkerProcess (void *, Stream) |
ssize_t | httpWorkerWrite (void *, Stream) |
static void | httpWorkerDetach (void *_this, void *adapter) |
static void | httpWorkerAttach (void *_this, void *adapter) |
static void | httpWorkerNotify (void *_this) |
INIT_IFACE (Class, httpWorkerCtor, httpWorkerDtor, httpWorkerClone) | |
INIT_IFACE (StreamReader, httpWorkerProcess) | |
INIT_IFACE (StreamWriter, httpWorkerWrite) | |
INIT_IFACE (Subject, httpWorkerAttach, httpWorkerDetach, httpWorkerNotify) | |
CREATE_CLASS (HttpWorker, NULL, IFACE(Class), IFACE(StreamReader), IFACE(StreamWriter), IFACE(Subject)) | |
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) | , | ||
IFACE(Subject) | |||
) |
|
static |
Definition at line 139 of file worker.c.
References httpWorkerDetach().
|
static |
|
static |
Definition at line 47 of file worker.c.
References asset_pool, memMalloc(), and PARSER_MAX_BUF.
|
static |
Definition at line 128 of file worker.c.
Referenced by httpWorkerAttach().
|
static |
< cloned workers have NULL, so delete won't do anything
Definition at line 71 of file worker.c.
References asset_pool, and MEM_FREE.
|
static |
Definition at line 157 of file worker.c.
References observerUpdate().
ssize_t httpWorkerProcess | ( | void * | , |
Stream | |||
) |
ssize_t httpWorkerWrite | ( | void * | , |
Stream | |||
) |
INIT_IFACE | ( | Class | , |
httpWorkerCtor | , | ||
httpWorkerDtor | , | ||
httpWorkerClone | |||
) |
INIT_IFACE | ( | StreamReader | , |
httpWorkerProcess | |||
) |
INIT_IFACE | ( | StreamWriter | , |
httpWorkerWrite | |||
) |
INIT_IFACE | ( | Subject | , |
httpWorkerAttach | , | ||
httpWorkerDetach | , | ||
httpWorkerNotify | |||
) |