added code to selective turn on/off an output thread
This commit is contained in:
		| @ -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 | ||||
| ); | ||||
|  | ||||
| @ -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, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user