Changeset 1158
- Timestamp:
- Apr 6, 2007 10:25:23 AM (18 years ago)
- Location:
- pjproject/branches/pjproject-0.5-stable
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/ioqueue_common_abs.c
r974 r1158 156 156 return !pj_list_empty(&key->accept_list); 157 157 #else 158 PJ_UNUSED_ARG(key); 158 159 return 0; 159 160 #endif -
pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/ioqueue_select.c
r974 r1158 557 557 else if (event_type == WRITEABLE_EVENT) 558 558 PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->wfdset); 559 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 559 560 else if (event_type == EXCEPTION_EVENT) 560 561 PJ_FD_CLR((pj_sock_t)key->fd, &ioqueue->xfdset); 562 #endif 561 563 else 562 564 pj_assert(0); … … 581 583 else if (event_type == WRITEABLE_EVENT) 582 584 PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->wfdset); 585 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 583 586 else if (event_type == EXCEPTION_EVENT) 584 587 PJ_FD_SET((pj_sock_t)key->fd, &ioqueue->xfdset); 588 #endif 585 589 else 586 590 pj_assert(0); … … 650 654 */ 651 655 if (PJ_FD_COUNT(&ioqueue->rfdset)==0 && 652 PJ_FD_COUNT(&ioqueue->wfdset)==0 && 653 PJ_FD_COUNT(&ioqueue->xfdset)==0) 656 PJ_FD_COUNT(&ioqueue->wfdset)==0 657 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 658 && PJ_FD_COUNT(&ioqueue->xfdset)==0 659 #endif 660 ) 654 661 { 655 662 #if PJ_IOQUEUE_HAS_SAFE_UNREG -
pjproject/branches/pjproject-0.5-stable/pjlib/src/pj/ioqueue_winnt.c
r974 r1158 367 367 PJ_DEF(pj_status_t) pj_ioqueue_destroy( pj_ioqueue_t *ioqueue ) 368 368 { 369 #if PJ_HAS_TCP 369 370 unsigned i; 371 #endif 370 372 pj_ioqueue_key_t *key; 371 373 … … 740 742 { 741 743 DWORD dwMsec; 744 #if PJ_HAS_TCP 742 745 int connect_count = 0; 746 #endif 743 747 int event_count = 0; 744 748 -
pjproject/branches/pjproject-0.5-stable/pjsip-apps/src/samples/pjsip-perf.c
r974 r1158 772 772 addrname.port = app.local_port; 773 773 774 if (app.use_tcp) { 774 if (0) { 775 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 776 } else if (app.use_tcp) { 775 777 pj_sockaddr_in local_addr; 776 778 pjsip_tpfactory *tpfactory; … … 784 786 app.local_port = tpfactory->addr_name.port; 785 787 } 788 #endif 786 789 } else { 787 790 pjsip_transport *tp; -
pjproject/branches/pjproject-0.5-stable/pjsip-apps/src/samples/sipstateless.c
r974 r1158 37 37 38 38 /* If this macro is set, TCP transport will be initialized at port 5060 */ 39 #define HAS_TCP_TRANSPORT 39 #define HAS_TCP_TRANSPORT (1 && PJ_HAS_TCP) 40 40 41 41 /* Log identification */ … … 142 142 #endif 143 143 144 #if defHAS_TCP_TRANSPORT144 #if HAS_TCP_TRANSPORT 145 145 /* 146 146 * Add UDP transport, with hard-coded port -
pjproject/branches/pjproject-0.5-stable/pjsip/include/pjsip/sip_transport_tcp.h
r974 r1158 26 26 27 27 #include <pjsip/sip_transport.h> 28 29 30 /* Only declare the API if PJ_HAS_TCP is true */ 31 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 32 28 33 29 34 PJ_BEGIN_DECL … … 113 118 */ 114 119 120 #endif /* PJ_HAS_TCP */ 121 115 122 #endif /* __PJSIP_TRANSPORT_TCP_H__ */ -
pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_transport_tcp.c
r974 r1158 30 30 #include <pj/string.h> 31 31 32 /* Only declare the API if PJ_HAS_TCP is true */ 33 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 34 32 35 33 36 #define THIS_FILE "sip_transport_tcp.c" … … 1366 1369 } 1367 1370 1371 #endif /* PJ_HAS_TCP */ 1372 -
pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsua-lib/pjsua_core.c
r1137 r1158 1014 1014 pjsua_var.tpdata[id].data.tp = tp; 1015 1015 1016 #if defined(PJ_HAS_TCP) && PJ_HAS_TCP!=0 1017 1016 1018 } else if (type == PJSIP_TRANSPORT_TCP) { 1017 1019 /* … … 1064 1066 pjsua_var.tpdata[id].local_name = tcp->addr_name; 1065 1067 pjsua_var.tpdata[id].data.factory = tcp; 1068 1069 #endif /* PJ_HAS_TCP */ 1066 1070 1067 1071 #if defined(PJSIP_HAS_TLS_TRANSPORT) && PJSIP_HAS_TLS_TRANSPORT!=0 -
pjproject/branches/pjproject-0.5-stable/pjsip/src/test-pjsip/test.c
r974 r1158 227 227 unsigned i; 228 228 pjsip_transport *tp; 229 #if PJ_HAS_TCP 229 230 pjsip_tpfactory *tpfactory; 230 #endif 231 #endif /* PJ_HAS_TCP */ 232 #endif /* INCLUDE_TSX_TEST */ 231 233 int line; 232 234 … … 332 334 } 333 335 336 #if PJ_HAS_TCP 334 337 status = pjsip_tcp_transport_start(endpt, NULL, 1, &tpfactory); 335 338 if (status == PJ_SUCCESS) { … … 343 346 goto on_return; 344 347 } 348 #endif 345 349 346 350 -
pjproject/branches/pjproject-0.5-stable/pjsip/src/test-pjsip/transport_tcp_test.c
r974 r1158 28 28 * TCP transport test. 29 29 */ 30 #if PJ_HAS_TCP 30 31 int transport_tcp_test(void) 31 32 { … … 142 143 return 0; 143 144 } 145 #else /* PJ_HAS_TCP */ 146 int transport_tcp_test(void) 147 { 148 return 0; 149 } 150 #endif /* PJ_HAS_TCP */
Note: See TracChangeset
for help on using the changeset viewer.