Ignore:
Timestamp:
Mar 23, 2007 12:42:47 AM (13 years ago)
Author:
bennylp
Message:

ICE (work in progress): implemented ICE media transport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r974 r1097  
    9494                       pj_ssize_t bytes_read); 
    9595 
     96static pj_status_t transport_get_info(pjmedia_transport *tp, 
     97                                      pjmedia_sock_info *info); 
    9698static pj_status_t transport_attach(   pjmedia_transport *tp, 
    9799                                       void *user_data, 
     
    117119static pjmedia_transport_op transport_udp_op =  
    118120{ 
     121    &transport_get_info, 
    119122    &transport_attach, 
    120123    &transport_detach, 
     
    325328                                pjmedia_transport_udp_info *inf) 
    326329{ 
    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); 
    336331} 
    337332 
     
    528523 
    529524 
     525/* Called to get the transport info */ 
     526static 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 
    530541/* Called by application to initialize the transport */ 
    531542static pj_status_t transport_attach(   pjmedia_transport *tp, 
Note: See TracChangeset for help on using the changeset viewer.