Generic command line arguments parsing functions. More...
#include "../include/socket.h"
Functions | |
int | parse_address_family (const char *name) |
Translates the character string to the address family number. | |
int | parse_parameter_int (int argc, char **argv, int *index, int *value, const char *name, int offset) |
Parses the next parameter as an integral number. | |
int | parse_parameter_name_int (int argc, char **argv, int *index, int *value, const char *name, int offset, int(*parse_value)(const char *value)) |
Parses the next named parameter as an integral number. | |
int | parse_parameter_string (int argc, char **argv, int *index, char **value, const char *name, int offset) |
Parses the next parameter as a character string. | |
int | parse_protocol_family (const char *name) |
Translates the character string to the protocol family number. | |
int | parse_socket_type (const char *name) |
Translates the character string to the socket type number. | |
void | print_unrecognized (int index, const char *parameter) |
Prints the parameter unrecognized message and the application help. |
Generic command line arguments parsing functions.