libexplain  1.4.D001
Functions | Variables
libexplain/buffer/address_family.c File Reference
#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 []

Function Documentation

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.

Parameters:
sbThe string buffer to print into.
domainThe 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.

Parameters:
textThe string to be parsed.
captnadditional text to add to start of error message
Returns:
the socket address family

Definition at line 231 of file address_family.c.


Variable Documentation

Definition at line 26 of file address_family.c.