Ignore:
Timestamp:
Nov 26, 2007 5:36:18 AM (16 years ago)
Author:
bennylp
Message:

Fixed pj_gethostip() returns 0.0.0.0. Also how it returns the first interface if else fails

File:
1 edited

Legend:

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

    r1585 r1599  
    107107 
    108108/** 
     109 * Get the IP address of the default interface. Default interface is the 
     110 * interface of the default route. 
     111 * 
     112 * @param ip_addr   On successful resolution, this will be filled up with 
     113 *                  the IP address, in network byte order. 
     114 * 
     115 * @return          PJ_SUCCESS on success, or the appropriate error code. 
     116 */ 
     117PJ_DECL(pj_status_t) pj_getdefaultipinterface(pj_in_addr *ip_addr); 
     118 
     119 
     120/** 
    109121 * This function translates the name of a service location (for example,  
    110122 * a host name) and returns a set of addresses and associated information 
Note: See TracChangeset for help on using the changeset viewer.