[Sumover-dev] [svn commit] r4227 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Fri Jul 25 15:44:19 BST 2008
Author: soohyunc
Date: Fri Jul 25 15:44:18 2008
New Revision: 4227
Modified:
vic/branches/cc/cc/cc.cpp
vic/branches/cc/cc/cc.h
Log:
(temporary commit)
o assigning packet seqno_ and printing on console
(nothing does more than this with this commit)
o no regular RTP send routine (no video will come out with this commit)
Modified: vic/branches/cc/cc/cc.cpp
==============================================================================
--- vic/branches/cc/cc/cc.cpp (original)
+++ vic/branches/cc/cc/cc.cpp Fri Jul 25 15:44:18 2008
@@ -33,6 +33,7 @@
* $Id$
*/
+#include "assert.h"
#include "config.h"
#include "timer.h"
#include "rtp.h"
@@ -43,10 +44,17 @@
#include "transmitter.h"
#include "cc.h"
-CcManager::CcManager() {
-}
+CcManager::CcManager() :
+ seqno_(-1)
+{}
void CcManager::cc_parse_buf(pktbuf* pb) {
- printf("cc_parse_buf called\n");
- // currently do nothing
+
+ // get RTP hearder information
+ rtphdr* rh =(rtphdr*) pb->data;
+ seqno_ = ntohs(rh->rh_seqno);
+
+ // sequence number must be greater than zero
+ assert (seqno_ > 0);
+ debug_msg("seqno: %d\n", seqno_);
}
Modified: vic/branches/cc/cc/cc.h
==============================================================================
--- vic/branches/cc/cc/cc.h (original)
+++ vic/branches/cc/cc/cc.h Fri Jul 25 15:44:18 2008
@@ -39,10 +39,12 @@
class CcManager {
public:
CcManager();
- void cc_parse_buf(pktbuf*);
+ void cc_parse_buf(pktbuf*); // get pktbuf from transmitter module
+ u_int16_t seqno_; // packet sequence number
protected:
CcManager* ccman_;
+private:
};
#endif
More information about the Sumover-dev
mailing list