Revision 8e750be6 streaming.c
streaming.c | ||
---|---|---|
184 | 184 |
} |
185 | 185 |
|
186 | 186 |
// a simple implementation that request everything that we miss ... up to max deliver |
187 |
struct chunkID_set *get_chunks_to_accept(struct nodeID *fromid, const struct chunkID_set *cset_off, int max_deliver, int trans_id){
|
|
187 |
struct chunkID_set *get_chunks_to_accept(struct nodeID *fromid, const struct chunkID_set *cset_off, int max_deliver, uint16_t trans_id){
|
|
188 | 188 |
struct chunkID_set *cset_acc, *my_bmap; |
189 | 189 |
int i, d, cset_off_size; |
190 | 190 |
//double lossrate; |
... | ... | |
435 | 435 |
return (double) c->timestamp; |
436 | 436 |
} |
437 | 437 |
|
438 |
void send_accepted_chunks(struct nodeID *toid, struct chunkID_set *cset_acc, int max_deliver, int trans_id){
|
|
438 |
void send_accepted_chunks(struct nodeID *toid, struct chunkID_set *cset_acc, int max_deliver, uint16_t trans_id){
|
|
439 | 439 |
int i, d, cset_acc_size, res; |
440 | 440 |
struct peer *to = nodeid_to_peer(toid, 0); |
441 | 441 |
|
Also available in: Unified diff