Changeset 4624 for pjproject/trunk/pjsip-apps/src/samples/icedemo.c
- Timestamp:
- Oct 21, 2013 6:37:30 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/icedemo.c
r4613 r4624 515 515 } 516 516 517 #define PRINT( fmt, arg0, arg1, arg2, arg3, arg4, arg5) \517 #define PRINT(...) \ 518 518 printed = pj_ansi_snprintf(p, maxlen - (p-buffer), \ 519 fmt, arg0, arg1, arg2, arg3, arg4, arg5); \519 __VA_ARGS__); \ 520 520 if (printed <= 0 || printed >= (int)(maxlen - (p-buffer))) \ 521 521 return -PJ_ETOOSMALL; \ … … 541 541 542 542 PRINT("%s\n", 543 pj_ice_get_cand_type_name(cand->type), 544 0, 0, 0, 0, 0); 543 pj_ice_get_cand_type_name(cand->type)); 545 544 546 545 if (p == buffer+maxlen) … … 564 563 565 564 /* Write "dummy" SDP v=, o=, s=, and t= lines */ 566 PRINT("v=0\no=- 3414953978 3414953978 IN IP4 localhost\ns=ice\nt=0 0\n", 567 0, 0, 0, 0, 0, 0); 565 PRINT("v=0\no=- 3414953978 3414953978 IN IP4 localhost\ns=ice\nt=0 0\n"); 568 566 569 567 /* Get ufrag and pwd from current session */ … … 576 574 local_ufrag.ptr, 577 575 (int)local_pwd.slen, 578 local_pwd.ptr, 579 0, 0); 576 local_pwd.ptr); 580 577 581 578 /* Write each component */ … … 597 594 (int)pj_sockaddr_get_port(&cand[0].addr), 598 595 pj_sockaddr_print(&cand[0].addr, ipaddr, 599 sizeof(ipaddr), 0), 600 0, 0, 0, 0); 596 sizeof(ipaddr), 0)); 601 597 } else if (comp==1) { 602 598 /* For component 2, default address is in a=rtcp line */ … … 604 600 (int)pj_sockaddr_get_port(&cand[0].addr), 605 601 pj_sockaddr_print(&cand[0].addr, ipaddr, 606 sizeof(ipaddr), 0), 607 0, 0, 0, 0); 602 sizeof(ipaddr), 0)); 608 603 } else { 609 604 /* For other components, we'll just invent this.. */ … … 611 606 (int)pj_sockaddr_get_port(&cand[0].addr), 612 607 pj_sockaddr_print(&cand[0].addr, ipaddr, 613 sizeof(ipaddr), 0), 614 0, 0, 0, 0); 608 sizeof(ipaddr), 0)); 615 609 } 616 610
Note: See TracChangeset
for help on using the changeset viewer.