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_tcp_test.c

    r3553 r5311  
    3838    pj_status_t status; 
    3939    char url[PJSIP_MAX_URL_SIZE]; 
     40    char addr[PJ_INET_ADDRSTRLEN]; 
    4041    int rtt[SEND_RECV_LOOP], min_rtt; 
    4142    int i, pkt_lost; 
     
    5859 
    5960    pj_ansi_sprintf(url, "sip:alice@%s:%d;transport=tcp", 
    60                     pj_inet_ntoa(rem_addr.sin_addr), 
     61                    pj_inet_ntop2(pj_AF_INET(), &rem_addr.sin_addr, addr, 
     62                                  sizeof(addr)), 
    6163                    pj_ntohs(rem_addr.sin_port)); 
    6264 
Note: See TracChangeset for help on using the changeset viewer.