49 HttpWorker
this = _this;
50 char *
id = va_arg(*params,
char *);
58 sprintf(cbuf_id,
"%s_%s",
"parser",
id);
61 this->additional_headers =
new(Queue);
63 this->parser =
new(HttpParser, this->pbuf);
64 this->writer =
new(HttpWriter);
73 HttpWorker
this = _this;
77 delete(this->additional_headers);
82 if (NULL != this->pbuf) {
92 HttpWorker
this = _this;
93 HttpWorker base = _base;
96 this->application_adapter = base->application_adapter;
98 this->additional_headers =
new(Queue);
100 this->parser =
new(HttpParser, base->pbuf);
120 this->writer =
new(HttpWriter);
130 HttpWorker
this = (HttpWorker)_this;
132 if (NULL != this->application_adapter) {
133 delete(this->application_adapter);
141 HttpWorker
this = (HttpWorker)_this;
152 this->application_adapter = adapter;
159 HttpWorker
this = (HttpWorker)_this;
static void httpWorkerAttach(void *_this, void *adapter)
ssize_t httpWorkerProcess(void *, Stream)
static void httpWorkerClone(void *_this, void *_base)
static void httpWorkerNotify(void *_this)
static void httpWorkerDetach(void *_this, void *adapter)
CREATE_CLASS(HttpWorker, NULL, IFACE(Class), IFACE(StreamReader), IFACE(StreamWriter), IFACE(Subject))
static int httpWorkerCtor(void *_this, va_list *params)
INIT_IFACE(Class, httpWorkerCtor, httpWorkerDtor, httpWorkerClone)
ssize_t httpWorkerWrite(void *, Stream)
void observerUpdate(void *, void *)
static void httpWorkerDtor(void *_this)