Applications
[Networking Stack]


Files

file  print_error.c
 Generic application error printing functions implementation.
file  print_error.h
 Generic application error printing functions.

Modules

 Echo Service
 Ping
 Networking tests

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.

Define Documentation

#define IS_ICMP_ERROR ( error_code   )     ((error_code) > 0)

Returns whether the error code may be an ICMP error code.

Parameters:
[in] error_code The error code.
Returns:
A value indicating whether the error code may be an ICMP error code.

Definition at line 47 of file print_error.h.

#define IS_SOCKET_ERROR ( error_code   )     ((error_code) < 0)

Returns whether the error code may be socket error code.

Parameters:
[in] error_code The error code.
Returns:
A value indicating whether the error code may be a socket error code.

Definition at line 54 of file print_error.h.


Function Documentation

void icmp_print_error ( FILE output,
int  error_code,
const char *  prefix,
const char *  suffix 
)

Prints the specific ICMP error description.

Parameters:
[in] output The description output stream. May be NULL.
[in] error_code The ICMP error code.
[in] prefix The error description prefix. May be NULL.
[in] suffix The error description suffix. May be NULL.

Definition at line 51 of file print_error.c.

void print_error ( FILE output,
int  error_code,
const char *  prefix,
const char *  suffix 
)

Prints the error description.

Supports ICMP and socket error codes.

Parameters:
[in] output The description output stream. May be NULL.
[in] error_code The error code.
[in] prefix The error description prefix. May be NULL.
[in] suffix The error description suffix. May be NULL.

Definition at line 113 of file print_error.c.

void socket_print_error ( FILE output,
int  error_code,
const char *  prefix,
const char *  suffix 
)

Prints the specific socket error description.

Parameters:
[in] output The description output stream. May be NULL.
[in] error_code The socket error code.
[in] prefix The error description prefix. May be NULL.
[in] suffix The error description suffix. May be NULL.

Definition at line 128 of file print_error.c.


Generated on Thu Jun 2 07:45:55 2011 for HelenOS/USB by  doxygen 1.4.7