Revision b865a917

View differences:

chunk_signaling.c
31 31
#include "dbg.h"
32 32

  
33 33
static struct nodeID *localID;
34
/*
34 35

  
35 36
int sendSignalling(int type, const struct nodeID *to_id, const struct nodeID *owner_id, struct chunkID_set *cset, int max_deliver, int cb_size, int trans_id)
36 37
{
......
71 72
    ret = 1;
72 73
    free(buff);
73 74
    return ret;
74
}
75
}*/
75 76

  
76 77
/**
77 78
 * Send a BufferMap to a Peer.
......
84 85
 * @param[in] trans_id transaction number associated with this send
85 86
 * @return 0 on success, <0 on error
86 87
 */
88
/*
87 89
int sendBufferMap(const struct nodeID *to_id, const struct nodeID *owner_id, struct chunkID_set *bmap, int cb_size, int trans_id) {
88 90
  return sendSignalling(MSG_SIG_BMOFF, to_id, owner_id, bmap, 0, cb_size, trans_id);
89 91
}
......
92 94
{
93 95
  return sendBufferMap(to_id, localID, bmap, cb_size, trans_id);
94 96
}
97
*/
95 98

  
96 99
/*
97 100
int offerChunks(const struct nodeID *to_id, struct chunkID_set *cset, int max_deliver, int trans_id) {
chunk_signaling.h
29 29

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

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

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

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

  

Also available in: Unified diff