--- parser3/src/targets/isapi/parser3isapi.C 2001/03/24 15:58:02 1.17 +++ parser3/src/targets/isapi/parser3isapi.C 2001/03/24 19:12:22 1.18 @@ -15,8 +15,13 @@ #define MAX_STATUS_LENGTH sizeof("xxxx LONGEST STATUS DESCRIPTION") -//@{ -/// SAPI funcs decl +// SAPI + +/** + ISAPI SAPI functions receive this context information. + + @see Pool::set_context +*/ struct SAPI_func_context { LPEXTENSION_CONTROL_BLOCK lpECB; String *header; @@ -137,7 +142,7 @@ void SAPI::send_body(Pool& pool, const c const_cast(buf), &num_bytes, HSE_IO_SYNC); } -/// goes to 'cs-uri-query' log file field. webmaster: switch it ON[default OFF]. +// goes to 'cs-uri-query' log file field. webmaster: switch it ON[default OFF]. void SAPI::log(Pool& pool, const char *fmt, ...) { SAPI_func_context& ctx=*static_cast(pool.context()); @@ -151,7 +156,6 @@ void SAPI::log(Pool& pool, const char *f ctx.lpECB->ServerSupportFunction(ctx.lpECB->ConnID, HSE_APPEND_LOG_PARAMETER, buf, &size, 0); } -//@} // @@ -198,8 +202,8 @@ DWORD WINAPI HttpExtensionProc(LPEXTENSI Pool pool(&pool_storage); // no allocations until assigned context [for reporting] SAPI_func_context ctx={ lpECB, - 0, // filling later: so that if there would be error pool would have ctx - 200 + 0, // filling later: so that if there would be error pool would have ctx + 200 }; pool.set_context(&ctx);// no allocations before this line!