libexplain
1.4.D001
|
#include <libexplain/string_buffer.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_sockopt_name (explain_string_buffer_t *sb, int level, int name) |
int | explain_parse_sockopt_name_or_die (const char *text, const char *caption) |
void explain_buffer_sockopt_name | ( | explain_string_buffer_t * | sb, |
int | level, | ||
int | name | ||
) |
The explain_buffer_sockopt_name function may be used to print a representation of a sockopt name.
sb | The string buffer to print into. |
level | The sockopt level value. This is important because the names are dependent on the level. |
name | The sockopt_name value to be printed. |
Definition at line 257 of file sockopt_name.c.
int explain_parse_sockopt_name_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_sockopt_name_or_die function is used to parse a text string into a sockopt name value. It parses all levels.
text | The text string to be parsed. |
caption | additional information for error messages. |
Definition at line 376 of file sockopt_name.c.