Changeset 4669

Show
Ignore:
Timestamp:
03/04/10 15:58:27 (4 years ago)
Author:
soohyunc
Message:

-- printing seqno and now at the real location

where the packet is sent off to Netowrk::send().

This way, it will represent "get XR first", then "sending packet".

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

Legend:

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

    r4667 r4669  
    460460        recv_xreport(ch_); 
    461461 
     462        // get seqno 
     463        rtphdr* rh = (rtphdr *) pb->data; 
     464        fprintf(stderr, "\n\tnow: %f\tseqno: %d\n\n", 
     465                tx_now()-tx_now_offset_, ntohs(rh->rh_seqno)); 
     466 
    462467        // Using loop_layer for now to restrict transmission as well 
    463468        if (pb->layer < loop_layer_) { 
     
    483488        // receive XR before sending 
    484489        recv_xreport(ch_); 
     490 
     491        // get seqno 
     492        rtphdr* rh = (rtphdr *) pb->data; 
     493        fprintf(stderr, "\n\tnow: %f\tseqno: %d\n\n", 
     494                tx_now()-tx_now_offset_, ntohs(rh->rh_seqno)); 
    485495 
    486496        if (pb->layer < loop_layer_) { 
  • vic/branches/cc/rtp/transmitter.cpp

    r4665 r4669  
    317317         
    318318        if (ntohs(rh->rh_seqno) <= magic + jack) { 
    319                 fprintf(stderr, "\n\tnow: %f\tseqno: %d\n\n",  
    320                         tx_now()-tx_now_offset_, ntohs(rh->rh_seqno)); 
    321319                // record seqno and timestamp at TfwcSndr side 
    322320                tfwc_sndr_send(ntohs(rh->rh_seqno),  
     
    376374        // while packet seqno is within "cwnd + jack", send that packet 
    377375        while (ntohs(rh->rh_seqno) <= magic + jack) { 
    378                 fprintf(stderr, "\n\tnow: %f\tseqno: %d\n\n",  
    379                         tx_now()-tx_now_offset_, ntohs(rh->rh_seqno)); 
    380376                // record seqno and timestamp at TfwcSndr side 
    381377                tfwc_sndr_send(ntohs(rh->rh_seqno),