[Sumover-dev] [svn commit] r4619 - vic/branches/cc/rtp

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Wed Feb 17 18:42:54 GMT 2010


Author: soohyunc
Date: Wed Feb 17 18:42:54 2010
New Revision: 4619

Modified:
   vic/branches/cc/rtp/transmitter.cpp

Log:
modifed comments according to Revision 4617



Modified: vic/branches/cc/rtp/transmitter.cpp
==============================================================================
--- vic/branches/cc/rtp/transmitter.cpp	(original)
+++ vic/branches/cc/rtp/transmitter.cpp	Wed Feb 17 18:42:54 2010
@@ -219,7 +219,7 @@
 	// window-based congestion control (TFWC)
 	//
 	case WBCC:
-		// if it is the very first packet, just send it.
+		// pb is empty - try sending a packet
 		if(is_buf_empty_) {
 			if (head_ != 0) {
 				tail_->next = pb;
@@ -230,7 +230,7 @@
 			cc_tfwc_output();
 			is_buf_empty_ = false;
 		} 
-		// if it is not, just queue up the packets.
+		// if not, check if cwnd allows send this packet
 		else {
 			if (head_ != 0) {
 				tail_->next = pb;
@@ -246,7 +246,7 @@
 	// rate-based congestion control (TFRC)
 	//
 	case RBCC:
-		// if it is the very first packet, just send it.
+		// pb is empty
 		if(is_buf_empty_) {
 			if (head_ != 0) {
 				tail_->next = pb;
@@ -256,8 +256,8 @@
 			pb->next = 0;
 			cc_tfrc_output();
 			is_buf_empty_ = false;
-		} 
-		// if it is not, just queue up the packets.
+		}
+		// pb is not emtpy
 		else {
 			if (head_ != 0) {
 				tail_->next = pb;



More information about the Sumover-dev mailing list