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/pjlib/src/pjlib-test/echo_clt.c

    r3553 r5311  
    5858    char send_buf[BUF_SIZE]; 
    5959    char recv_buf[BUF_SIZE]; 
     60    char addr[PJ_INET_ADDRSTRLEN]; 
    6061    pj_sockaddr_in addr; 
    6162    pj_str_t s; 
     
    8889 
    8990    PJ_LOG(3,("", "...socket connected to %s:%d",  
    90                   pj_inet_ntoa(addr.sin_addr), 
     91                  pj_inet_ntop2(pj_AF_INET(), &addr.sin_addr, 
     92                                addr, sizeof(addr)), 
    9193                  pj_ntohs(addr.sin_port))); 
    9294 
Note: See TracChangeset for help on using the changeset viewer.