Civetweb API Reference

mg_get_context_info( ctx, buffer, buflen );

Parameters

ParameterTypeDescription
ctxstruct mg_context *The server context handle
`bufferchar *A string buffer to store the information
`buflenintSize of the string buffer (including space for a terminating 0)

Return Value

TypeDescription
intAvailable context information in bytes (excluding the terminating 0)

Description

The function mg_get_context_info() returns statistics information collected for the server context. This may be empty if the server has not been built with statistics support (#define USE_SERVER_STATS). If data is available, the returned string is in JSON format. The exact content may vary, depending on the server state and server version.

See Also