libexplain
1.4.D001
|
#include <libexplain/ac/sys/socket.h>
#include <libexplain/buffer/address_family.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_address_family (explain_string_buffer_t *sb, int domain) |
int | explain_parse_address_family_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | table [] |
void explain_buffer_address_family | ( | explain_string_buffer_t * | sb, |
int | domain | ||
) |
The explain_buffer_address_family function may be used to print a symbolic value of a socket address family value to the given string buffer.
sb | The string buffer to print into. |
domain | The socket address family value to interpret. |
Definition at line 218 of file address_family.c.
int explain_parse_address_family_or_die | ( | const char * | text, |
const char * | captn | ||
) |
The explain_parse_address_family_or_die function is used to parse a string into a socket address family value. On error, whill prind diagnostic and exit EXIT_FAILURE.
text | The string to be parsed. |
captn | additional text to add to start of error message |
Definition at line 231 of file address_family.c.
const explain_parse_bits_table_t table[] [static] |
Definition at line 26 of file address_family.c.