Changeset 4770
- Timestamp:
- 04/09/10 14:54:50 (3 years ago)
- Location:
- vic/branches/cc/cc
- Files:
-
- 2 modified
-
tfwc_sndr.cpp (modified) (2 diffs)
-
tfwc_sndr.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vic/branches/cc/cc/tfwc_sndr.cpp
r4764 r4770 142 142 143 143 // record of packet size in bytes 144 record_ = (u_int16_t *)malloc(sizeof(u_int16_t) * RECORD);145 clear_record( RECORD);144 record_ = (u_int16_t *)malloc(sizeof(u_int16_t) * PSR); 145 clear_record(PSR); 146 146 } 147 147 … … 151 151 ts_off_ = tx_ts_offset(); 152 152 153 // number of bytes for this packet154 record_[seqno_%RECORD] = pb->len;155 153 // parse seqno and mark timestamp for this data packet 156 154 rtphdr* rh = (rtphdr *) pb->data; 157 155 seqno_ = ntohs(rh->rh_seqno); 158 156 now_ = now; 157 // number of bytes for this packet 158 record_[seqno_%PSR] = pb->len; 159 //print_psize(now_, record_[seqno_%PSR]), 159 160 160 161 // timestamp vector for loss history update -
vic/branches/cc/cc/tfwc_sndr.h
r4764 r4770 42 42 #define SSZ 1000 // seqvec_ size 43 43 #define RSZ 1000 // refvec_ size 44 #define RECORD 1000044 #define PSR 10000 // packet size record 45 45 46 46 #define SHORT_HISTORY // history size = 8 … … 360 360 fprintf(stderr, " %d", vec[i]); 361 361 fprintf(stderr, " )\n"); 362 } 363 364 // print packet size 365 inline void print_psize(double now, int size) { 366 fprintf(stderr, "\tnow: %d psize: %d\n", now, size); 362 367 } 363 368
