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

su_addrinfo.h File Reference
Include dependency graph for su_addrinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  addrinfo

Defines

#define AI_ADDRCONFIG   0x00000400 /* only if any address is assigned */
#define AI_ALL   0x00000100 /* IPv6 and IPv4-mapped (with AI_V4MAPPED) */
#define AI_CANONNAME   0x00000002 /* fill ai_canonname */
#define AI_DEFAULT   (AI_V4MAPPED_CFG | AI_ADDRCONFIG)
#define AI_MASK   (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
#define AI_NUMERICHOST   0x00000004 /* prevent name resolution */
#define AI_PASSIVE   0x00000001 /* get address to use bind() */
#define AI_V4MAPPED   0x00000800 /* accept IPv4-mapped IPv6 address */
#define AI_V4MAPPED_CFG   0x00000200 /* accept IPv4-mapped if kernel supports */
#define EAI_ADDRFAMILY   1 /* address family for hostname not supported */
#define EAI_AGAIN   2 /* temporary failure in name resolution */
#define EAI_BADFLAGS   3 /* invalid value for ai_flags */
#define EAI_BADHINTS   12
#define EAI_FAIL   4 /* non-recoverable failure in name resolution */
#define EAI_FAMILY   5 /* ai_family not supported */
#define EAI_MAX   14
#define EAI_MEMORY   6 /* memory allocation failure */
#define EAI_NODATA   7 /* no address associated with hostname */
#define EAI_NONAME   8 /* hostname nor servname provided, or not known */
#define EAI_PROTOCOL   13
#define EAI_SERVICE   9 /* servname not supported for ai_socktype */
#define EAI_SOCKTYPE   10 /* ai_socktype not supported */
#define EAI_SYSTEM   11 /* system error returned in errno */
#define NI_DGRAM   0x00000010
#define NI_MAXHOST   1025
#define NI_MAXSERV   32
#define NI_NAMEREQD   0x00000004
#define NI_NOFQDN   0x00000001
#define NI_NUMERICHOST   0x00000002
#define NI_NUMERICSERV   0x00000008

Typedefs

typedef struct addrinfo su_addrinfo_t

Functions

SOFIAPUBFUN void su_freeaddrinfo (su_addrinfo_t *res)
SOFIAPUBFUN char const * su_gai_strerror (int errcode)
SOFIAPUBFUN int su_getaddrinfo (char const *node, char const *service, su_addrinfo_t const *hints, su_addrinfo_t **res)
SOFIAPUBFUN int su_getnameinfo (const union su_sockaddr_u *su, size_t sulen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)

Detailed Description

Network address and service translation.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Wed Nov 30 17:07:04 EET 2005 ppessi

Definition in file su_addrinfo.h.


Generated by  Doxygen 1.6.0   Back to index