Ignore:
Timestamp:
Nov 18, 2007 2:53:47 PM (12 years ago)
Author:
bennylp
Message:

Ticket #415: implement IPv6 support in PJLIB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/addr_resolv.h

    r974 r1585  
    7474#define h_addr h_addr_list[0] 
    7575 
     76/**  
     77 * This structure describes address information pj_getaddrinfo(). 
     78 */ 
     79typedef struct pj_addrinfo 
     80{ 
     81    char         ai_canonname[PJ_MAX_HOSTNAME]; /**< Canonical name for host*/ 
     82    pj_sockaddr  ai_addr;                       /**< Binary address.        */ 
     83} pj_addrinfo; 
     84 
     85 
    7686/** 
    7787 * This function fills the structure of type pj_hostent for a given host name. 
     
    96106 
    97107 
     108/** 
     109 * This function translates the name of a service location (for example,  
     110 * a host name) and returns a set of addresses and associated information 
     111 * to be used in creating a socket with which to address the specified  
     112 * service. 
     113 * 
     114 * @param name      Descriptive name or an address string, such as host 
     115 *                  name. 
     116 * @param af        The desired address family to query. 
     117 * @param count     On input, it specifies the number of elements in 
     118 *                  \a ai array. On output, this will be set with the 
     119 *                  number of address informations found for the 
     120 *                  specified name. 
     121 * 
     122 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     123 */ 
     124PJ_DECL(pj_status_t) pj_getaddrinfo(const pj_str_t *nodename, int af, 
     125                                    unsigned *count, pj_addrinfo ai[]); 
     126 
     127 
     128 
    98129/** @} */ 
    99130 
Note: See TracChangeset for help on using the changeset viewer.