Generic application error printing functions. More...
Defines | |
#define | IS_ICMP_ERROR(error_code) ((error_code) > 0) |
Returns whether the error code may be an ICMP error code. | |
#define | IS_SOCKET_ERROR(error_code) ((error_code) < 0) |
Returns whether the error code may be socket error code. | |
Functions | |
void | icmp_print_error (FILE *output, int error_code, const char *prefix, const char *suffix) |
Prints the specific ICMP error description. | |
void | print_error (FILE *output, int error_code, const char *prefix, const char *suffix) |
Prints the error description. | |
void | socket_print_error (FILE *output, int error_code, const char *prefix, const char *suffix) |
Prints the specific socket error description. |
Generic application error printing functions.