Ignore:
Timestamp:
May 20, 2016 4:17:00 AM (8 years ago)
Author:
ming
Message:

Re #1922: Replace IPv4 specific APIs as per Apple's recommendations

https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/transport_test.c

    r4537 r5311  
    3838        struct pj_in_addr addr; 
    3939 
    40         /* Note: inet_aton() returns non-zero if addr is valid! */ 
    41         if (pj_inet_aton(&tp->local_name.host, &addr) != 0) { 
     40        if (pj_inet_pton(pj_AF_INET(), &tp->local_name.host, 
     41                         &addr) == PJ_SUCCESS) 
     42        { 
    4243            if (addr.s_addr==PJ_INADDR_ANY || addr.s_addr==PJ_INADDR_NONE) { 
    4344                PJ_LOG(3,(THIS_FILE, "   Error: invalid address name")); 
Note: See TracChangeset for help on using the changeset viewer.