Show
Ignore:
Timestamp:
08/06/08 17:21:53 (6 years ago)
Author:
soohyunc
Message:

o now, ackvec build funcion is moved to TfwcRcvr? correctly

Files:
1 modified

Legend:

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

    r4244 r4245  
    646646                xr = (rtcp_xr*)(rh + 1);        // extended report 
    647647                xr->xr_begin_seq = lastseq_;// this will be used for ackofack 
    648                 xr->xr_end_seq = seqno_ + 1; 
    649                 xr->xr_ackvec = ackvec_;        // ackvec 
     648                xr->xr_end_seq = seqno_ + 1;// as defined in RFC3611 section 4.1 
     649                xr->xr_ackvec = get_ackvec();   // ackvec 
    650650        } 
    651651 
     
    798798        rtphdr* rh = (rtphdr*)pb->data; 
    799799        seqno_ = ntohs(rh->rh_seqno);   // get received packet seqno 
    800         set_received_seqno(seqno_);     // set received seqno in TfwcRcvr 
    801800 
    802801    // Ignore loopback packets 
     
    811810        } // now, loopback packets ignored (if disabled) 
    812811 
    813 /* 
    814         // set bit vector 
    815         for (int i = lastseq_+1; i <= seqno_; i++) { 
    816                         SET_BIT_VEC (ackvec_, 1); 
    817         } 
    818  
    819         // printing bit vector 
    820         bool isThere; 
    821         debug_msg("XXX received ackvec:"); 
    822         for (int i = lastseq_+1; i <= seqno_; i++) { 
    823                 isThere = SEE_BIT_VEC (ackvec_, i, seqno_); 
    824                 printf(" %d... %s ", seqno_, isThere ? "Ok" : "NOk"); 
    825         } 
    826         printf("\n"); 
    827         lastseq_ = seqno_; 
    828 */ 
     812        // set received seqno - passing seqno to TfwcRcvr 
     813        set_received_seqno(seqno_, lastseq_); 
     814        lastseq_ = seqno_;      // set last seqno 
     815 
    829816        int version = pb->data[0] >> 6; 
    830817        //int version = *(u_char*)rh >> 6;