Changeset 4238

Show
Ignore:
Timestamp:
08/06/08 11:34:08 (6 years ago)
Author:
soohyunc
Message:

(temporary commit)
building a separate RTP extended send method
- the original send_report() only specifies RR and SR

Location:
vic/branches/cc/rtp
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/cc/rtp/session.cpp

    r4237 r4238  
    592592{ 
    593593        send_report(ch, 0); 
    594 } 
     594        send_xreport(ch, 0); 
     595} 
     596 
     597/* 
     598 * send RTP extended report. 
     599 */ 
     600void SessionManager::send_xreport(CtrlHandler* ch, int bye, int app) 
     601{ 
     602        UNUSED(app); 
     603 
     604        SourceManager& sm = SourceManager::instance(); 
     605        Source& s = *sm.localsrc();     // local source 
     606        rtcphdr* rh = (rtcphdr*)pktbuf_; 
     607        rh->rh_ssrc = s.srcid(); 
     608 
     609        int flags = RTP_VERSION << 14; 
     610        int layer = ch- ch_; 
     611        Source:: Layer& sl = s.layer(layer); 
     612        timeval now = unixtime(); 
     613        sl.lts_ctrl(now); 
     614 
     615        rtcp_xr* xr;    // extended report 
     616 
     617        flags |= RTCP_PT_XR; 
     618        xr = (rtcp_xr*)(rh + 1); 
     619} 
     620 
     621 
    595622 
    596623/*XXX check for buffer overflow*/ 
  • vic/branches/cc/rtp/session.h

    r4234 r4238  
    128128//      virtual void send_report(); 
    129129        virtual void send_report(CtrlHandler*, int bye, int app = 0); 
     130        virtual void send_xreport(CtrlHandler*, int bye, int app = 0); 
    130131 
    131132protected: