added code to selective turn on/off an output thread

This commit is contained in:
2011-07-28 21:57:39 +00:00
parent f4ad3e3b66
commit 5e85ab6613
7 changed files with 229 additions and 73 deletions

View File

@ -120,6 +120,11 @@ typedef struct qse_http_range_t qse_http_range_t;
extern "C" {
#endif
int qse_comparehttpversions (
const qse_http_version_t* v1,
const qse_http_version_t* v2
);
const qse_mchar_t* qse_gethttpmethodname (
qse_http_method_t type
);

View File

@ -111,8 +111,18 @@ void qse_httpd_setcbs (
qse_httpd_cbs_t* cbs
);
/**
* The qse_httpd_loop() function starts a httpd server loop.
* If @a threaded is non-zero, it creates a separate output thread.
* If no thread support is available, it is ignored.
*
* @note
* In the future, the @a threaded parameter will be extended to
* specify the number of output threads.
*/
int qse_httpd_loop (
qse_httpd_t* httpd
qse_httpd_t* httpd,
int threaded
);
/**
@ -149,6 +159,12 @@ int qse_httpd_entasktext (
const qse_mchar_t* text
);
int qse_httpd_entaskstatictext (
qse_httpd_t* httpd,
qse_httpd_client_t* client,
const qse_mchar_t* text
);
int qse_httpd_entaskformat (
qse_httpd_t* httpd,
qse_httpd_client_t* client,