mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-03 02:02:24 +00:00
First public version
This commit is contained in:
26 files changed
+7941
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
#ifndef WEBSERVER_H_INCLUDED
|
||||
#define WEBSERVER_H_INCLUDED
|
||||
|
||||
typedef std::string (*response_callback)(std::string, std::string); //process arguments and POST data and return served-content
|
||||
|
||||
#define RESPONSE_CALLBACK_ARGS std::string argument, std::string postdata
|
||||
|
||||
struct listener_args
|
||||
{
|
||||
std::string listen_address;
|
||||
int port;
|
||||
int max_conn;
|
||||
int max_workers;
|
||||
};
|
||||
|
||||
void append_response(std::string type, std::string request, std::string content_type, response_callback response);
|
||||
int start_web_server(void *argv);
|
||||
int start_web_server_multi(void *argv);
|
||||
|
||||
#endif // WEBSERVER_H_INCLUDED
|
||||
Reference in new issue
Block a user