Changeset 1097 for pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
- Timestamp:
- Mar 23, 2007 12:42:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r974 r1097 94 94 pj_ssize_t bytes_read); 95 95 96 static pj_status_t transport_get_info(pjmedia_transport *tp, 97 pjmedia_sock_info *info); 96 98 static pj_status_t transport_attach( pjmedia_transport *tp, 97 99 void *user_data, … … 117 119 static pjmedia_transport_op transport_udp_op = 118 120 { 121 &transport_get_info, 119 122 &transport_attach, 120 123 &transport_detach, … … 325 328 pjmedia_transport_udp_info *inf) 326 329 { 327 struct transport_udp *udp = (struct transport_udp*)tp; 328 PJ_ASSERT_RETURN(tp && inf, PJ_EINVAL); 329 330 inf->skinfo.rtp_sock = udp->rtp_sock; 331 inf->skinfo.rtp_addr_name = udp->rtp_addr_name; 332 inf->skinfo.rtcp_sock = udp->rtcp_sock; 333 inf->skinfo.rtcp_addr_name = udp->rtcp_addr_name; 334 335 return PJ_SUCCESS; 330 return transport_get_info(tp, &inf->skinfo); 336 331 } 337 332 … … 528 523 529 524 525 /* Called to get the transport info */ 526 static pj_status_t transport_get_info(pjmedia_transport *tp, 527 pjmedia_sock_info *info) 528 { 529 struct transport_udp *udp = (struct transport_udp*)tp; 530 PJ_ASSERT_RETURN(tp && info, PJ_EINVAL); 531 532 info->rtp_sock = udp->rtp_sock; 533 info->rtp_addr_name = udp->rtp_addr_name; 534 info->rtcp_sock = udp->rtcp_sock; 535 info->rtcp_addr_name = udp->rtcp_addr_name; 536 537 return PJ_SUCCESS; 538 } 539 540 530 541 /* Called by application to initialize the transport */ 531 542 static pj_status_t transport_attach( pjmedia_transport *tp,
Note: See TracChangeset
for help on using the changeset viewer.