| libexplain
    1.4.D001
    | 
Go to the source code of this file.
| Functions | |
| void | explain_buffer_socket_protocol (struct explain_string_buffer_t *sb, int protocol) | 
| int | explain_parse_socket_protocol_or_die (const char *text, const char *cptn) | 
| void explain_buffer_socket_protocol | ( | struct explain_string_buffer_t * | sb, | 
| int | protocol | ||
| ) | 
The explain_buffer_socket_protocol function may be used to print a symbolic value of a socket protocol value to the given string buffer.
| sb | The string buffer to print into. | 
| protocol | The socket protocol value to interpret. | 
Definition at line 111 of file socket_protocol.c.
| int explain_parse_socket_protocol_or_die | ( | const char * | text, | 
| const char * | cptn | ||
| ) | 
The explain_parse_socket_protocol function is used to parse a string into a socket protocol value. On error, prints a diagnostic and exits EXIT_FAILURE.
| text | The string to be parsed. | 
| cptn | additional text to add to start of error message | 
Definition at line 135 of file socket_protocol.c.
 1.7.6.1
 1.7.6.1