Ignore:
Timestamp:
Dec 1, 2007 8:52:57 AM (16 years ago)
Author:
bennylp
Message:

More ticket #415: more IPv6 and some reorganization of the source codes

File:
1 edited

Legend:

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

    r1104 r1601  
    5454 
    5555/** 
    56  * Enumerate the local IP interface currently active in the host. 
     56 * Enumerate the local IP interfaces currently active in the host. 
    5757 * 
     58 * @param af        Family of the address to be retrieved. Application 
     59 *                  may specify pj_AF_UNSPEC() to retrieve all addresses, 
     60 *                  or pj_AF_INET() or pj_AF_INET6() to retrieve interfaces 
     61 *                  with specific address family. 
    5862 * @param count     On input, specify the number of entries. On output, 
    5963 *                  it will be filled with the actual number of entries. 
    60  * @param ifs       Array of IP addresses. 
     64 * @param ifs       Array of socket addresses, which address part will 
     65 *                  be filled with the interface address. The address 
     66 *                  family part will be initialized with the address 
     67 *                  family of the IP address. 
    6168 * 
    6269 * @return          PJ_SUCCESS on success, or the appropriate error code. 
    6370 */ 
    64 PJ_DECL(pj_status_t) pj_enum_ip_interface(unsigned *count, 
    65                                           pj_in_addr ifs[]); 
     71PJ_DECL(pj_status_t) pj_enum_ip_interface(int af, 
     72                                          unsigned *count, 
     73                                          pj_sockaddr ifs[]); 
    6674 
    6775 
Note: See TracChangeset for help on using the changeset viewer.