Statistics
| Branch: | Revision:

streamers / streaming.h @ d447f71d

History | View | Annotate | Download (558 Bytes)

1
#ifndef STREAMING_H
2
#define STREAMING_H
3

    
4
void stream_init(int size, struct nodeID *myID);
5
int source_init(const char *fname, struct nodeID *myID);
6
void received_chunk(struct peerset *pset, struct nodeID *from, const uint8_t *buff, int len);
7
void send_chunk(const struct peerset *pset);
8
int generated_chunk(suseconds_t *delta);
9
struct chunkID_set *get_chunks_to_accept(struct peer *from, const struct chunkID_set *cset_off, int max_deliver);
10
void send_accepted_chunks(struct peer *to, struct chunkID_set *cset_acc, int max_deliver);
11

    
12
#endif        /* STREAMING_H */