ns-allinone-2.35/tcp/scoreboard1.cc
int ScoreBoard1::GetNextRetran()
{
	while ((nxt_to_retrx_) && (nxt_to_retrx_->GetFlag() != SKB_FLAG_LOST))
		nxt_to_retrx_ = nxt_to_retrx_->GetNext();
	if (nxt_to_retrx_) {
		return nxt_to_retrx_->GetStart();
	} else
		return -1;
}
/*
 * GetNextRetran() returns "-1" if there is no packet that is
 *   not acked and not sacked and not retransmitted.
 */
GetNextRetran() returns "-1" if there is no packet that is
not acked and not sacked and not retransmitted.
GetNextRetran () returns " - 1 " if there is no packet that is not acked and not sacked and not retransmitted .
int ScoreBoard1::GetNextRetran()
{
	while ((nxt_to_retrx_) && (nxt_to_retrx_->GetFlag() != SKB_FLAG_LOST))
		nxt_to_retrx_ = nxt_to_retrx_->GetNext();
	if (nxt_to_retrx_) {
		return nxt_to_retrx_->GetStart();
	} else
		return -1;
}
int ScoreBoard1 :: GetNextRetran ( ) { while ( ( nxt_to_retrx_ ) && ( nxt_to_retrx_ -> GetFlag ( ) != SKB_FLAG_LOST ) ) nxt_to_retrx_ = nxt_to_retrx_ -> GetNext ( ) ; if ( nxt_to_retrx_ ) { return nxt_to_retrx_ -> GetStart ( ) ; } else return -1 ; }
GetNextRetran() returns "-1" if there is no packet that is
   not acked and not sacked and not retransmitted.
GetNextRetran () returns " - 1 " if there is no packet that is not acked and not sacked and not retransmitted .