Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

SOFIAPUBFUN char const* su_gli_strerror ( int  error  ) 

Describe su_localinfo errors.

Describe su_localinfo errors.

The function su_gli_strerror() returns a string describing the error condition indicated by the code that was returned by the function su_getlocalinfo().

Parameters:
error error code returned by su_getlocalinfo()
Returns:
A pointer to string describing the error condition.

Definition at line 288 of file su_localinfo.c.

References ELI_BADHINTS, ELI_FAMILY, ELI_MEMORY, ELI_NOADDRESS, ELI_NOERROR, ELI_RESOLVER, ELI_SYSTEM, and su_gli_strerror().

Referenced by soa_init_sdp_connection(), stun_determine_ip_address(), su_gli_strerror(), and test_sockaddr().

{
  switch (error) {
  case ELI_NOERROR:   return "No error";
  case ELI_NOADDRESS: return "No matching address";
  case ELI_MEMORY:    return "Memory allocation error";
  case ELI_FAMILY:    return "Unknown address family";
  case ELI_RESOLVER:  return "Error when resolving address";
  case ELI_SYSTEM:    return "System error";
  case ELI_BADHINTS:  return "Invalid value for hints";
  default:            return "Unknown error";
  }
}


Generated by  Doxygen 1.6.0   Back to index