Revision 8e750be6 chunk_signaling.c

View differences:

chunk_signaling.c
31 31

  
32 32
static bool neigh_on_sign_recv = false;
33 33

  
34
void bmap_received(const struct nodeID *fromid, const struct nodeID *ownerid, struct chunkID_set *c_set, int cb_size, int trans_id) {
34
void bmap_received(const struct nodeID *fromid, const struct nodeID *ownerid, struct chunkID_set *c_set, int cb_size, uint16_t trans_id) {
35 35
  struct peer *owner;
36 36
  if (nodeid_equal(fromid, ownerid)) {
37 37
    owner = nodeid_to_peer(ownerid, neigh_on_sign_recv);
......
49 49
  }
50 50
}
51 51

  
52
void offer_received(const struct nodeID *fromid, struct chunkID_set *cset, int max_deliver, int trans_id) {
52
void offer_received(const struct nodeID *fromid, struct chunkID_set *cset, int max_deliver, uint16_t trans_id) {
53 53
  struct chunkID_set *cset_acc;
54 54

  
55 55
  struct peer *from = nodeid_to_peer(fromid, neigh_on_sign_recv);
......
72 72
    chunkID_set_free(cset_acc);
73 73
}
74 74

  
75
void accept_received(const struct nodeID *fromid, struct chunkID_set *cset, int max_deliver, int trans_id) {
75
void accept_received(const struct nodeID *fromid, struct chunkID_set *cset, int max_deliver, uint16_t trans_id) {
76 76
  struct peer *from = nodeid_to_peer(fromid,0);   //verify that we have really offered, 0 at least garantees that we've known the peer before
77 77
  dprintf("The peer %s accepted our offer for %d chunks, max deliver %d.\n", node_addr(fromid), chunkID_set_size(cset), max_deliver);
78 78

  

Also available in: Unified diff