ns-allinone-2.35/tcp/tfrc.cc
double TfrcAgent::initial_rate()
{
        if (rate_init_option_ == 1) {
		// init_option = 1: static initial rate of rate_init_
                return (rate_init_);
        }
        else if (rate_init_option_ == 2) {
                // do initial rate according to RFC 3390.
		return (rfc3390(size_));
        }
        // XXX what should we return here???
        fprintf(stderr, "Wrong number of rate_init_option_ %d\n",
                rate_init_option_);
        abort();
        return (2.0); // XXX make msvc happy.
}
/*
 * Used in setting the initial rate.
 * This is from TcpAgent::initial_wnd().
 */
Used in setting the initial rate.
Used in setting the initial rate .
double TfrcAgent::initial_rate()
{
        if (rate_init_option_ == 1) {
                return (rate_init_);
        }
        else if (rate_init_option_ == 2) {
		return (rfc3390(size_));
        }
        fprintf(stderr, "Wrong number of rate_init_option_ %d\n",
                rate_init_option_);
        abort();
        return (2.0); 
}
double TfrcAgent :: initial_rate ( ) { if ( rate_init_option_ == 1 ) { return ( rate_init_ ) ; } else if ( rate_init_option_ == 2 ) { return ( rfc3390 ( size_ ) ) ; } fprintf ( stderr , " \n " , rate_init_option_ ) ; abort ( ) ; return ( 2.0 ) ; }
Used in setting the initial rate.
Used in setting the initial rate .
// init_option = 1: static initial rate of rate_init_ // do initial rate according to RFC 3390. // XXX what should we return here??? // XXX make msvc happy.