Add workers
This commit is contained in:
30
src/workers.h
Normal file
30
src/workers.h
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
* sesimos - secure, simple, modern web server
|
||||
* @brief Worker interface (header file)
|
||||
* @file src/workers.h
|
||||
* @author Lorenz Stechauner
|
||||
* @date 2022-12-29
|
||||
*/
|
||||
|
||||
#ifndef SESIMOS_WORKERS_H
|
||||
#define SESIMOS_WORKERS_H
|
||||
|
||||
#include "server.h"
|
||||
|
||||
int workers_init(void);
|
||||
|
||||
void workers_stop(void);
|
||||
|
||||
void workers_destroy(void);
|
||||
|
||||
int tcp_accept(client_ctx_t *ctx);
|
||||
|
||||
int tcp_close(client_ctx_t *ctx);
|
||||
|
||||
int handle_request(client_ctx_t *ctx);
|
||||
|
||||
int respond(client_ctx_t *ctx);
|
||||
|
||||
int fastcgi_handle(client_ctx_t *ctx);
|
||||
|
||||
#endif //SESIMOS_WORKERS_H
|
Reference in New Issue
Block a user