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

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Oct 16 21:55:21 BST 2008


Author: soohyunc
Date: Thu Oct 16 21:55:21 2008
New Revision: 4300

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

Log:
o  fixed and corrected the header point in the RTP data packet queue 


Modified: vic/branches/cc/rtp/session.cpp
==============================================================================
--- vic/branches/cc/rtp/session.cpp	(original)
+++ vic/branches/cc/rtp/session.cpp	Thu Oct 16 21:55:21 2008
@@ -1211,6 +1211,7 @@
 
 void SessionManager::cc_output() 
 {
+	//printf("\tentering cc_output()\n");
 	pktbuf* pb = head_;	// head of the packet queue
 	rtphdr* rh;		// declare rtp header
 
@@ -1220,13 +1221,15 @@
 
 	// cwnd value
 	int magic = (int) tfwc_magic();
+	//debug_msg("cwnd: %d\n", magic);
 	// last acked seqno
 	int jack = (int) tfwc_sndr_just_acked();
+	//debug_msg("jack: %d\n", jack);
 
 	// while packet seqno is within "cwnd + jack", send that packet
 	while (ntohs(rh->rh_seqno) <= magic + jack) {
-		//debug_msg("seqno: %d\n", ntohs(rh->rh_seqno));
 		if (pb != 0) {
+			//debug_msg("seqno: %d\n", ntohs(rh->rh_seqno));
 			// record seqno and timestamp at TfwcSndr side
 			tfwc_sndr_send(pb);
 
@@ -1240,8 +1243,11 @@
 			// if pb is not 0, then parse rtp header
 			if (pb != 0)
 				rh = (rtphdr *) pb->data;
-			else
+			else 
 				break;
+
+			// move head pointer
+			head_ = pb;
 		}
 	} // end while
 }



More information about the Sumover-dev mailing list