Ignore:
Timestamp:
Sep 14, 2006 6:51:01 PM (17 years ago)
Author:
bennylp
Message:

Fix the local IP address resolution issue in PJSIP, PJMEDIA, and PJSUA, by adding a new API pj_gethostip() to resolve the default local IP address of local host. This new function will work even when local hostname resolution is not set correctly, by detecting the default IP interface in the system.

Also fix compile warnings in iLBC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/addr_resolv.h

    r65 r721  
    2222/** 
    2323 * @file addr_resolv.h 
    24  * @brief Address resolve (pj_gethostbyname()). 
     24 * @brief IP address resolution. 
    2525 */ 
    2626 
    27 #include <pj/types.h> 
     27#include <pj/sock.h> 
    2828 
    2929PJ_BEGIN_DECL 
     
    8585 
    8686 
     87/** 
     88 * Resolve the primary IP address of local host.  
     89 * 
     90 * @param ip_addr   On successful resolution, this will be filled up with 
     91 *                  the host IP address, in network byte order. 
     92 * 
     93 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     94 */ 
     95PJ_DECL(pj_status_t) pj_gethostip(pj_in_addr *ip_addr); 
     96 
     97 
    8798/** @} */ 
    8899 
Note: See TracChangeset for help on using the changeset viewer.