Ignore:
Timestamp:
May 20, 2016 4:17:00 AM (6 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-apps/src/samples/streamutil.c

    r5095 r5311  
    231231    pjmedia_port *stream_port; 
    232232    char tmp[10]; 
     233    char addr[PJ_INET_ADDRSTRLEN]; 
    233234    pj_status_t status;  
    234235 
     
    578579    else if (dir == PJMEDIA_DIR_ENCODING) 
    579580        printf("Stream is active, dir is send-only, sending to %s:%d\n", 
    580                pj_inet_ntoa(remote_addr.sin_addr), 
     581               pj_inet_ntop2(pj_AF_INET(), &remote_addr.sin_addr, addr, 
     582                             sizeof(addr)), 
    581583               pj_ntohs(remote_addr.sin_port)); 
    582584    else 
     
    584586               "sending to %s:%d\n", 
    585587               local_port, 
    586                pj_inet_ntoa(remote_addr.sin_addr), 
     588               pj_inet_ntop2(pj_AF_INET(), &remote_addr.sin_addr, addr, 
     589                             sizeof(addr)), 
    587590               pj_ntohs(remote_addr.sin_port)); 
    588591 
Note: See TracChangeset for help on using the changeset viewer.