- Timestamp:
- Jan 17, 2008 5:29:36 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/users/nanang/pjmedia/src/pjmedia/transport_udp.c
r1630 r1698 95 95 pj_ssize_t bytes_read); 96 96 97 static pj_status_t transport_get_info(pjmedia_transport *tp, 98 pjmedia_sock_info *info); 99 static pj_status_t transport_attach( pjmedia_transport *tp, 97 /* 98 * These are media transport operations. 99 */ 100 static pj_status_t transport_get_info (pjmedia_transport *tp, 101 pjmedia_sock_info *info); 102 static pj_status_t transport_attach (pjmedia_transport *tp, 100 103 void *user_data, 101 104 const pj_sockaddr_t *rem_addr, … … 108 111 const void*, 109 112 pj_ssize_t)); 110 static void transport_detach (pjmedia_transport *tp,113 static void transport_detach (pjmedia_transport *tp, 111 114 void *strm); 112 115 static pj_status_t transport_send_rtp( pjmedia_transport *tp, … … 116 119 const void *pkt, 117 120 pj_size_t size); 121 static pj_status_t transport_media_create(pjmedia_transport *tp, 122 pj_pool_t *pool, 123 pjmedia_sdp_session *sdp_local, 124 const pjmedia_sdp_session *sdp_remote); 125 static pj_status_t transport_media_start (pjmedia_transport *tp, 126 pj_pool_t *pool, 127 pjmedia_sdp_session *sdp_local, 128 const pjmedia_sdp_session *sdp_remote, 129 unsigned media_index); 130 static pj_status_t transport_media_stop(pjmedia_transport *tp); 131 static pj_status_t transport_simulate_lost(pjmedia_transport *tp, 132 pjmedia_dir dir, 133 unsigned pct_lost); 134 static pj_status_t transport_destroy (pjmedia_transport *tp); 118 135 119 136 … … 125 142 &transport_send_rtp, 126 143 &transport_send_rtcp, 127 &pjmedia_transport_udp_close 144 &transport_media_create, 145 &transport_media_start, 146 &transport_media_stop, 147 &transport_simulate_lost, 148 &transport_destroy 128 149 }; 129 150 … … 342 363 343 364 on_error: 344 pjmedia_transport_udp_close(&tp->base);365 transport_destroy(&tp->base); 345 366 return status; 346 }347 348 349 /*350 * Get media socket info.351 */352 PJ_DEF(pj_status_t) pjmedia_transport_udp_get_info( pjmedia_transport *tp,353 pjmedia_transport_udp_info *inf)354 {355 return transport_get_info(tp, &inf->skinfo);356 367 } 357 368 … … 360 371 * Close UDP transport. 361 372 */ 362 PJ_DEF(pj_status_t) pjmedia_transport_udp_close(pjmedia_transport *tp)373 static pj_status_t transport_destroy(pjmedia_transport *tp) 363 374 { 364 375 struct transport_udp *udp = (struct transport_udp*) tp; … … 727 738 728 739 729 PJ_DEF(pj_status_t) pjmedia_transport_udp_simulate_lost(pjmedia_transport *tp, 730 pjmedia_dir dir, 731 unsigned pct_lost) 740 static pj_status_t transport_media_create(pjmedia_transport *tp, 741 pj_pool_t *pool, 742 pjmedia_sdp_session *sdp_local, 743 const pjmedia_sdp_session *sdp_remote) 744 { 745 PJ_UNUSED_ARG(tp); 746 PJ_UNUSED_ARG(pool); 747 PJ_UNUSED_ARG(sdp_local); 748 PJ_UNUSED_ARG(sdp_remote); 749 750 return PJ_SUCCESS; 751 } 752 753 static pj_status_t transport_media_start(pjmedia_transport *tp, 754 pj_pool_t *pool, 755 pjmedia_sdp_session *sdp_local, 756 const pjmedia_sdp_session *sdp_remote, 757 unsigned media_index) 758 { 759 PJ_UNUSED_ARG(tp); 760 PJ_UNUSED_ARG(pool); 761 PJ_UNUSED_ARG(sdp_local); 762 PJ_UNUSED_ARG(sdp_remote); 763 PJ_UNUSED_ARG(media_index); 764 765 return PJ_SUCCESS; 766 } 767 768 static pj_status_t transport_media_stop(pjmedia_transport *tp) 769 { 770 PJ_UNUSED_ARG(tp); 771 772 return PJ_SUCCESS; 773 } 774 775 static pj_status_t transport_simulate_lost(pjmedia_transport *tp, 776 pjmedia_dir dir, 777 unsigned pct_lost) 732 778 { 733 779 struct transport_udp *udp = (struct transport_udp*)tp;
Note: See TracChangeset
for help on using the changeset viewer.