1 # Civetweb API Reference
3 ### `mg_get_context( conn );`
7 | Parameter | Type | Description |
9 |**`conn`**|`const struct mg_connection *`|The connection for which the context has to be returned|
13 | Type | Description |
15 |`struct mg_context *`|A pointer to the context of the given connection|
19 The function `mg_get_context()` returns the context associated with a connection.
23 * [`mg_start();`](mg_start.md)
24 * [`mg_stop();`](mg_stop.md)