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-apps/src/samples/vid_streamutil.c

    r4815 r5311  
    348348    pjmedia_vid_stream *stream = NULL; 
    349349    pjmedia_port *enc_port, *dec_port; 
     350    char addr[PJ_INET_ADDRSTRLEN]; 
    350351    pj_status_t status;  
    351352 
     
    860861    else if (dir == PJMEDIA_DIR_ENCODING) 
    861862        printf("Stream is active, dir is send-only, sending to %s:%d\n", 
    862                pj_inet_ntoa(remote_addr.sin_addr), 
     863               pj_inet_ntop2(pj_AF_INET(), &remote_addr.sin_addr, addr, 
     864                             sizeof(addr)), 
    863865               pj_ntohs(remote_addr.sin_port)); 
    864866    else 
     
    866868               "sending to %s:%d\n", 
    867869               local_port, 
    868                pj_inet_ntoa(remote_addr.sin_addr), 
     870               pj_inet_ntop2(pj_AF_INET(), &remote_addr.sin_addr, addr, 
     871                             sizeof(addr)), 
    869872               pj_ntohs(remote_addr.sin_port)); 
    870873 
Note: See TracChangeset for help on using the changeset viewer.