Add workers

This commit is contained in:
2022-12-29 21:41:40 +01:00
parent cff5d558d6
commit 7a2acb0e66
14 changed files with 114 additions and 182 deletions

30
src/workers.h Normal file
View 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