ns-allinone-2.35/tcp/tcp.cc
void TcpAgent::sendmsg(int nbytes, const char* /*flags*/)
{
	if (nbytes == -1 && curseq_ <= TCP_MAXSEQ)
		curseq_ = TCP_MAXSEQ; 
	else
		curseq_ += (nbytes/size_ + (nbytes%size_ ? 1 : 0));
	send_much(0, 0, maxburst_);
}
/*
 * Must convert bytes into packets for one-way TCPs.
 * If nbytes == -1, this corresponds to infinite send.  We approximate
 * infinite by a very large number (TCP_MAXSEQ).
 */
Must convert bytes into packets for one-way TCPs.
If nbytes == -1, this corresponds to infinite send.  We approximate
infinite by a very large number (TCP_MAXSEQ).
Must convert bytes into packets for one - way TCPs . If nbytes == - 1 this corresponds to infinite send . We approximate infinite by a very large number ( TCP_MAXSEQ ) .
void TcpAgent::sendmsg(int nbytes, const char* )
{
	if (nbytes == -1 && curseq_ <= TCP_MAXSEQ)
		curseq_ = TCP_MAXSEQ; 
	else
		curseq_ += (nbytes/size_ + (nbytes%size_ ? 1 : 0));
	send_much(0, 0, maxburst_);
}
void TcpAgent :: sendmsg ( int nbytes , const char * ) { if ( nbytes == -1 && curseq_ <= TCP_MAXSEQ ) curseq_ = TCP_MAXSEQ ; else curseq_ += ( nbytes / size_ + ( nbytes % size_ ? 1 : 0 ) ) ; send_much ( 0 , 0 , maxburst_ ) ; }
Must convert bytes into packets for one-way TCPs.
Must convert bytes into packets for one - way TCPs .
/*flags*/