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

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Fri Sep 5 15:36:51 BST 2008


Author: soohyunc
Date: Fri Sep  5 15:36:51 2008
New Revision: 4288

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

Log:
o  we need to record seqno and timestamp for each RTP data packet on EVERY
   packet transmission, hence tfwc_sndr_send() placed at every output() method
   call - this is done in SessionManager::cc_output()


Modified: vic/branches/cc/rtp/session.cpp
==============================================================================
--- vic/branches/cc/rtp/session.cpp	(original)
+++ vic/branches/cc/rtp/session.cpp	Fri Sep  5 15:36:51 2008
@@ -1215,9 +1215,6 @@
 	pktbuf* pb = head_;
 	rtphdr* rh = (rtphdr *) pb->data;
 
-	// pass pb to TfwcSndr
-	tfwc_sndr_send(pb);
-
 	// cwnd value
 	int magic = (int) tfwc_magic();
 	// last acked seqno
@@ -1228,7 +1225,10 @@
 	while (ntohs(rh->rh_seqno) <= magic + jack) {
 		if (pb != 0) {
 			head_ = pb->next;
-			output(pb);	// call Transmitter::output(pb)
+			// call Transmitter::output(pb)
+			output(pb);
+			// record seqno and timestamp at TfwcSndr side
+			tfwc_sndr_send(pb);
 		}
 		rh = (rtphdr *) pb->data;
 	}



More information about the Sumover-dev mailing list