Changeset 4218 for pjproject/trunk/pjlib/include/pj/addr_resolv.h
- Timestamp:
- Aug 7, 2012 2:18:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/addr_resolv.h
r3553 r4218 118 118 119 119 /** 120 * Get the interface IP address to send data to the specified destination. 121 * 122 * @param af The desired address family to query. Valid values 123 * are pj_AF_INET() or pj_AF_INET6(). 124 * @param dst The destination host. 125 * @param itf_addr On successful resolution, the address family and address 126 * part of this socket address will be filled up with the host 127 * IP address, in network byte order. Other parts of the socket 128 * address should be ignored. 129 * @param allow_resolve If \a dst may contain hostname (instead of IP 130 * address), specify whether hostname resolution should 131 * be performed. If not, default interface address will 132 * be returned. 133 * @param p_dst_addr If not NULL, it will be filled with the IP address of 134 * the destination host. 135 * 136 * @return PJ_SUCCESS on success, or the appropriate error code. 137 */ 138 PJ_DECL(pj_status_t) pj_getipinterface(int af, 139 const pj_str_t *dst, 140 pj_sockaddr *itf_addr, 141 pj_bool_t allow_resolve, 142 pj_sockaddr *p_dst_addr); 143 144 /** 120 145 * Get the IP address of the default interface. Default interface is the 121 146 * interface of the default route.
Note: See TracChangeset
for help on using the changeset viewer.