- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjlib-util/include/pjlib-util/resolver.h
r3553 r5513 224 224 225 225 } pj_dns_a_record; 226 227 228 /** 229 * This structure represents DNS address record, i.e: DNS A and DNS AAAA 230 * records, as the result of parsing DNS response packet using 231 * #pj_dns_parse_addr_response(). 232 */ 233 typedef struct pj_dns_addr_record 234 { 235 /** The target name being queried. */ 236 pj_str_t name; 237 238 /** If target name corresponds to a CNAME entry, the alias contains 239 * the value of the CNAME entry, otherwise it will be empty. 240 */ 241 pj_str_t alias; 242 243 /** Number of IP addresses. */ 244 unsigned addr_count; 245 246 /** IP addresses of the host found in the response */ 247 struct { 248 249 /** IP address family */ 250 int af; 251 252 /** IP address */ 253 union { 254 /** IPv4 address */ 255 pj_in_addr v4; 256 257 /** IPv6 address */ 258 pj_in6_addr v6; 259 } ip; 260 261 } addr[PJ_DNS_MAX_IP_IN_A_REC]; 262 263 /** Internal buffer for hostname and alias. */ 264 char buf_[128]; 265 266 } pj_dns_addr_record; 226 267 227 268 … … 409 450 410 451 /** 452 * A utility function to parse a DNS response containing AAAA records into 453 * DNS AAAA record. 454 * 455 * @param pkt The DNS response packet. 456 * @param rec The structure to be initialized with the parsed 457 * DNS AAAA record from the packet. 458 * 459 * @return PJ_SUCCESS if response can be parsed successfully. 460 */ 461 PJ_DECL(pj_status_t) pj_dns_parse_addr_response( 462 const pj_dns_parsed_packet *pkt, 463 pj_dns_addr_record *rec); 464 465 466 /** 411 467 * Put the specified DNS packet into DNS cache. This function is mainly used 412 468 * for testing the resolver, however it can also be used to inject entries
Note: See TracChangeset
for help on using the changeset viewer.