- Timestamp:
- Jun 11, 2007 4:51:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/include/pjlib-util/srv_resolver.h
r1102 r1357 76 76 77 77 /** 78 * Maximum server address entries per one SRV record 79 */ 80 #ifndef PJ_DNS_SRV_MAX_ADDR 81 # define PJ_DNS_SRV_MAX_ADDR 8 82 #endif 83 84 85 /** 86 * The server addresses returned by the resolver. 78 * This structure represents DNS SRV records as the result of DNS SRV 79 * resolution using #pj_dns_srv_resolve(). 87 80 */ 88 81 typedef struct pj_dns_srv_record … … 93 86 /** Address records. */ 94 87 struct 95 {88 v { 96 89 /** Server priority (the lower the higher the priority). */ 97 90 unsigned priority; … … 100 93 unsigned weight; 101 94 102 /** The server's address. */103 pj_ sockaddr addr;95 /** Port number. */ 96 pj_uint16_t port; 104 97 105 /** Address length. */106 int addr_len;98 /** The host address. */ 99 pj_dns_a_record server; 107 100 108 101 } entry[PJ_DNS_SRV_MAX_ADDR]; … … 139 132 * @param cb Pointer to callback function to receive the 140 133 * notification when the resolution process completes. 134 * @param p_query Optional pointer to receive the query object, if one 135 * was started. If this pointer is specified, a NULL may 136 * be returned if response cache is available immediately. 141 137 * 142 138 * @return PJ_SUCCESS on success, or the appropriate error code. … … 149 145 pj_bool_t fallback_a, 150 146 void *token, 151 pj_dns_srv_resolver_cb *cb); 147 pj_dns_srv_resolver_cb *cb, 148 pj_dns_async_query **p_query); 152 149 153 150
Note: See TracChangeset
for help on using the changeset viewer.