Changeset 4683

Show
Ignore:
Timestamp:
03/11/10 16:06:08 (4 years ago)
Author:
soohyunc
Message:

(Tx buffer size)
-- added a method to return the current transmission packet buffer size

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

Legend:

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

    r4670 r4683  
    216216} 
    217217 
     218/* 
     219 * Tx pktbuf size 
     220 */ 
     221int Transmitter::tx_buf_size() { 
     222        int size = 0; 
     223        pktbuf* pb = head_; 
     224        while (pb) { 
     225                size++; 
     226                pb = pb->next; 
     227        }        
     228        return size; 
     229} 
     230 
    218231void Transmitter::send(pktbuf* pb) 
    219232{ 
  • vic/branches/cc/rtp/transmitter.h

    r4667 r4683  
    109109        double tx_now_offset_; 
    110110 
     111        // Tx pktbuf size 
     112        int tx_buf_size(); 
     113 
    111114protected: 
    112115        void update(int nbytes);