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

su_addrinfo.h File Reference


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.

#include <sofia-sip/su_types.h>

Go to the source code of this file.

Classes

struct  addrinfo

Defines

#define AI_ADDRCONFIG   0x00000400
#define AI_ALL   0x00000100
#define AI_CANONNAME   0x00000002
#define AI_DEFAULT   (AI_V4MAPPED_CFG | AI_ADDRCONFIG)
#define AI_MASK   (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST)
#define AI_NUMERICHOST   0x00000004
#define AI_PASSIVE   0x00000001
#define AI_V4MAPPED   0x00000800
#define AI_V4MAPPED_CFG   0x00000200
#define EAI_ADDRFAMILY   1
#define EAI_AGAIN   2
#define EAI_BADFLAGS   3
#define EAI_BADHINTS   12
#define EAI_FAIL   4
#define EAI_FAMILY   5
#define EAI_MAX   14
#define EAI_MEMORY   6
#define EAI_NODATA   7
#define EAI_NONAME   8
#define EAI_PROTOCOL   13
#define EAI_SERVICE   9
#define EAI_SOCKTYPE   10
#define EAI_SYSTEM   11
#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)


Generated by  Doxygen 1.6.0   Back to index