ns-allinone-2.35/tcp/tcp-full.cc
int
FullTcpAgent::idle_restart()
{
	if (last_send_time_ < 0.0) {
		// last_send_time_ isn't set up yet, we shouldn't
		// do the idle_restart
		return (0);
	}

	double tao = now() - last_send_time_;
	if (!ts_option_) {
                double tickoff = fmod(last_send_time_ + boot_time_,
			tcp_tick_);
                tao = int((tao + tickoff) / tcp_tick_) * tcp_tick_;
	}

	return (tao > t_rtxcur_);  // verify this CHECKME
}
/*
 * determine whether enough time has elapsed in order to
 * conclude a "restart" is necessary (e.g. a slow-start)
 *
 * for now, keep track of this similarly to how rtt_update() does
 */
determine whether enough time has elapsed in order to
conclude a "restart" is necessary

for now, keep track of this similarly to how rtt_update() does
determine whether enough time has elapsed in order to conclude a " restart " is necessary for now keep track of this similarly to how rtt_update () does
int
FullTcpAgent::idle_restart()
{
	if (last_send_time_ < 0.0) {
		return (0);
	}
	double tao = now() - last_send_time_;
	if (!ts_option_) {
                double tickoff = fmod(last_send_time_ + boot_time_,
			tcp_tick_);
                tao = int((tao + tickoff) / tcp_tick_) * tcp_tick_;
	}
	return (tao > t_rtxcur_);  
}
int FullTcpAgent :: idle_restart ( ) { if ( last_send_time_ < 0.0 ) { return ( 0 ) ; } double tao = now ( ) - last_send_time_ ; if ( ! ts_option_ ) { double tickoff = fmod ( last_send_time_ + boot_time_ , tcp_tick_ ) ; tao = int ( ( tao + tickoff ) / tcp_tick_ ) * tcp_tick_ ; } return ( tao > t_rtxcur_ ) ; }
determine whether enough time has elapsed in order to
 conclude a "restart" is necessary (e.g.
determine whether enough time has elapsed in order to conclude a " restart " is necessary ( e . g .
// last_send_time_ isn't set up yet, we shouldn't // do the idle_restart // verify this CHECKME