libexplain  1.4.D001
Functions
libexplain/buffer/sockopt_name.h File Reference
#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)

Function Documentation

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.

Parameters:
sbThe string buffer to print into.
levelThe sockopt level value. This is important because the names are dependent on the level.
nameThe 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.

Parameters:
textThe text string to be parsed.
captionadditional information for error messages.
Returns:
The sockopt name value. On error it prints a fatal error message and exits.

Definition at line 376 of file sockopt_name.c.