Changeset 5311 for pjproject/trunk/pjsip-apps/src/samples/streamutil.c
- Timestamp:
- May 20, 2016 4:17:00 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/streamutil.c
r5095 r5311 231 231 pjmedia_port *stream_port; 232 232 char tmp[10]; 233 char addr[PJ_INET_ADDRSTRLEN]; 233 234 pj_status_t status; 234 235 … … 578 579 else if (dir == PJMEDIA_DIR_ENCODING) 579 580 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)), 581 583 pj_ntohs(remote_addr.sin_port)); 582 584 else … … 584 586 "sending to %s:%d\n", 585 587 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)), 587 590 pj_ntohs(remote_addr.sin_port)); 588 591
Note: See TracChangeset
for help on using the changeset viewer.