Revision 4a9d32c1 chunk_signaling.h

View differences:

chunk_signaling.h
21 21
struct sig_nal {
22 22
    uint8_t type;//type of signal.
23 23
    uint8_t max_deliver;//Max number of chunks to deliver.
24
    uint16_t cb_size;
24 25
    uint16_t trans_id;//future use...
25 26
    uint8_t third_peer;//for buffer map exchange from other peers, just the first byte!
26 27
} __attribute__((packed));
......
28 29

  
29 30
int sigParseData(const struct nodeID *from_id, uint8_t *buff, int buff_len);
30 31

  
31
int sendBufferMap(const struct nodeID *to_id, const struct nodeID *owner_id, ChunkIDSet *bmap, int trans_id);
32
int sendBufferMap(const struct nodeID *to_id, const struct nodeID *owner_id, ChunkIDSet *bmap, int cb_size, int trans_id);
32 33

  
33
int sendMyBufferMap(const struct nodeID *to_id, ChunkIDSet *bmap, int trans_id);
34
int sendMyBufferMap(const struct nodeID *to_id, ChunkIDSet *bmap, int cb_size, int trans_id);
34 35

  
35 36
int offerChunks(const struct nodeID *to_id, struct chunkID_set *cset, int max_deliver, int trans_id);
36 37

  

Also available in: Unified diff