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

*** finished TFRC/TFWC Retransmission Timer Mechanisms ***

min RTO - 200 ms (most Linux TCP implementation)
max RTO = 60 sec (RFC 2988)

Also, TfwcSndr? and TfrcSndr? can directly call functions defined in Transmitter.
This is specially usefule when TfwcSndr/TfrcSndr? want to call
Transmitter::output() method directly.

Files:
1 modified

Legend:

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

    r4751 r4859  
    4141 
    4242        msched((int)delay); 
    43         //status_ = TIMER_HANDLING; 
    44         set_timer_pending(); 
     43        set_timer_handling(); 
    4544} 
    4645 
     
    4948                return; 
    5049 
     50        cancel(); 
    5151        msched((int)delay); 
    52         //status_ = TIMER_HANDLING; 
    53         set_timer_pending(); 
     52        set_timer_handling(); 
    5453} 
    5554 
    56 void CcTimerHandler::cancel() { 
    57         if (status_ != TIMER_PENDING) 
     55void CcTimerHandler::stop() { 
     56        if (status_ != TIMER_HANDLING) 
    5857                abort(); 
    5958 
    60         //status_ = TIMER_IDLE; 
     59        cancel(); 
    6160        set_timer_idle(); 
    6261}