Changeset 1585 for pjproject/trunk/pjlib/include/pj/addr_resolv.h
- Timestamp:
- Nov 18, 2007 2:53:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/addr_resolv.h
r974 r1585 74 74 #define h_addr h_addr_list[0] 75 75 76 /** 77 * This structure describes address information pj_getaddrinfo(). 78 */ 79 typedef 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 76 86 /** 77 87 * This function fills the structure of type pj_hostent for a given host name. … … 96 106 97 107 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 */ 124 PJ_DECL(pj_status_t) pj_getaddrinfo(const pj_str_t *nodename, int af, 125 unsigned *count, pj_addrinfo ai[]); 126 127 128 98 129 /** @} */ 99 130
Note: See TracChangeset
for help on using the changeset viewer.