Changeset 4228

Show
Ignore:
Timestamp:
07/25/08 16:24:07 (6 years ago)
Author:
soohyunc
Message:

(temporary commit)
o now, we can give a packet sequence number and print on console
o and, the receiver print the received packet's seqno on console
o note: this is an experimental commit

Location:
vic/branches/cc
Files:
5 modified

Legend:

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

    r4227 r4228  
    5757        // sequence number must be greater than zero 
    5858        assert (seqno_ > 0); 
    59         debug_msg("seqno:       %d\n", seqno_); 
     59        debug_msg("sent seqno:  %d\n", seqno_); 
    6060} 
     61 
     62u_int16_t CcManager::cc_get_seqno() { 
     63        return seqno_; 
     64} 
  • vic/branches/cc/cc/cc.h

    r4227 r4228  
    4141        CcManager(); 
    4242        void cc_parse_buf(pktbuf*);     // get pktbuf from transmitter module 
     43        u_int16_t cc_get_seqno();               // return packet sequence number 
    4344        u_int16_t seqno_;                       // packet sequence number 
    4445 
  • vic/branches/cc/rtp/session.cpp

    r4184 r4228  
    4949#include "ntp-time.h" 
    5050#include "session.h" 
     51#include "cc/cc.h" 
    5152 
    5253/* added to support the mbus  
     
    770771        //u_char* bp = pktbuf_; 
    771772         
     773        rtphdr* rh = (rtphdr*) pb->data; 
     774        seqno_ = ntohs(rh->rh_seqno);   // received packet seqno 
     775        debug_msg("received seqno:      %d\n", seqno_); 
     776         
    772777        int cc = dh->recv(pb->data, sizeof(pb->data), addrp); 
    773778        //int cc = dh->recv(bp, 2 * RTP_MTU - 4, addrp); 
  • vic/branches/cc/rtp/session.h

    r4184 r4228  
    122122        virtual void send_report(CtrlHandler*, int bye, int app = 0); 
    123123 
     124        u_int16_t seqno_;       // received packet sequence number 
     125 
    124126protected: 
    125127//      void demux(rtphdr* rh, u_char* bp, int cc, Address & addr, int layer); 
  • vic/branches/cc/rtp/transmitter.cpp

    r4224 r4228  
    9090        loop_layer_(1000), 
    9191        loopback_(0), 
    92         is_cc_active_(1) 
     92        is_cc_active_(0) 
    9393{ 
    9494        memset((char*)&mh_, 0, sizeof(mh_)); 
     
    214214                cc_parse_buf(pb); 
    215215        } else { 
     216                cc_parse_buf(pb); 
    216217                if (!busy_) { 
    217218                        double delay = txtime(pb);