Ignore:
Timestamp:
Jun 11, 2007 4:51:18 PM (17 years ago)
Author:
bennylp
Message:

Ticket #330: Changed DNS SRV resolver to use the new DNS A response parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/srv_resolver.h

    r1102 r1357  
    7676 
    7777/** 
    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(). 
    8780 */ 
    8881typedef struct pj_dns_srv_record 
     
    9386    /** Address records. */ 
    9487    struct 
    95     { 
     88v    { 
    9689        /** Server priority (the lower the higher the priority). */ 
    9790        unsigned                priority; 
     
    10093        unsigned                weight; 
    10194 
    102         /** The server's address. */ 
    103         pj_sockaddr             addr; 
     95        /** Port number. */ 
     96        pj_uint16_t             port; 
    10497 
    105         /** Address length. */ 
    106         int                     addr_len; 
     98        /** The host address. */ 
     99        pj_dns_a_record         server; 
    107100 
    108101    } entry[PJ_DNS_SRV_MAX_ADDR]; 
     
    139132 * @param cb            Pointer to callback function to receive the 
    140133 *                      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. 
    141137 * 
    142138 * @return              PJ_SUCCESS on success, or the appropriate error code. 
     
    149145                                        pj_bool_t fallback_a, 
    150146                                        void *token, 
    151                                         pj_dns_srv_resolver_cb *cb); 
     147                                        pj_dns_srv_resolver_cb *cb, 
     148                                        pj_dns_async_query **p_query); 
    152149 
    153150 
Note: See TracChangeset for help on using the changeset viewer.