File: mg_error_data.md

package info (click to toggle)
civetweb 1.15%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,428 kB
  • sloc: ansic: 30,865; cpp: 1,290; sh: 494; javascript: 204; python: 143; makefile: 93; perl: 6; php: 1
file content (23 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Civetweb API Reference

### `struct mg_error_data;`

### Fields

| Field | Type | Description |
| :--- | :--- | :--- |
|**`code`**|`unsigned *`| A pointer to an `unsigned` variable, to store the error code. |
|**`text`**|`char *`| A text buffer to store the error text. |
|**`text_buffer_size`**|`size_t`| Size of the text buffer. |

### Description

The structure `mg_error_data` is used in [`mg_start2()`](mg_start.md), [`mg_start_domain2();`](mg_start_domain2.md), [`mg_connect_client2();`](mg_connect_client2.md) and [`mg_get_response2();`](mg_get_response2.md) to return error information.

### See Also

* [`mg_start2();`](mg_start2.md)
* [`mg_start_domain2();`](mg_start_domain2.md)
* [`mg_connect_client2();`](mg_connect_client2.md)
* [`mg_get_response2();`](mg_get_response2.md)
* [`struct mg_init_data;`](mg_init_data.md)