ns-allinone-2.35/tcp/tcp-full.cc
int
FullTcpAgent::send_allowed(int seq)
{
        int win = window() * maxseg_;
        int topwin = curseq_; // 1 seq number past the last byte we can send

        if ((topwin > highest_ack_ + win) || infinite_send_)
                topwin = highest_ack_ + win; 

	return (seq < topwin);
}
/*
 * base TCP: we are allowed to send a sequence number if it
 * is in the window
 */
base TCP: we are allowed to send a sequence number if it
is in the window
base TCP : we are allowed to send a sequence number if it is in the window
int
FullTcpAgent::send_allowed(int seq)
{
        int win = window() * maxseg_;
        int topwin = curseq_; 
        if ((topwin > highest_ack_ + win) || infinite_send_)
                topwin = highest_ack_ + win; 
	return (seq < topwin);
}
int FullTcpAgent :: send_allowed ( int seq ) { int win = window ( ) * maxseg_ ; int topwin = curseq_ ; if ( ( topwin > highest_ack_ + win ) || infinite_send_ ) topwin = highest_ack_ + win ; return ( seq < topwin ) ; }
base TCP: we are allowed to send a sequence number if it
 is in the window
base TCP : we are allowed to send a sequence number if it is in the window
// 1 seq number past the last byte we can send