Revision f217ce38 include/trade_sig_ha.h

View differences:

include/trade_sig_ha.h
62 62
 * @param[in] trans_id transaction number associated with this request.
63 63
 * @return 1 on success, <0 on error.
64 64
 */
65
int requestChunks(const struct nodeID *to, const struct chunkID_set *cset, int max_deliver, uint16_t trans_id);
65
int requestChunks(const struct nodeID *localID, const struct nodeID *to, const struct chunkID_set *cset, int max_deliver, uint16_t trans_id);
66 66

  
67 67
/**
68 68
 * @brief Deliver a set of Chunks to a Peer as a reply of its previous request of Chunks.
......
75 75
 * @param[in] trans_id transaction number associated with this request.
76 76
 * @return 1 on success, <0 on error.
77 77
 */
78
int deliverChunks(const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
78
int deliverChunks(const struct nodeID *localID, const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
79 79

  
80 80
/**
81 81
 * @brief Offer a (sub)set of chunks to a Peer.
......
89 89
 * @param[in] trans_id transaction number associated with this request.
90 90
 * @return 1 on success, <0 on error.
91 91
 */
92
int offerChunks(const struct nodeID *to, struct chunkID_set *cset, int max_deliver, uint16_t trans_id);
92
int offerChunks(const struct nodeID *localID, const struct nodeID *to, struct chunkID_set *cset, int max_deliver, uint16_t trans_id);
93 93

  
94 94
/**
95 95
 * @brief Accept a (sub)set of chunks from a Peer.
......
102 102
 * @param[in] trans_id transaction number associated with this request.
103 103
 * @return 1 on success, <0 on error.
104 104
 */
105
int acceptChunks(const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
105
int acceptChunks(const struct nodeID *localID, const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
106 106

  
107 107
/**
108 108
 * @brief Send a BufferMap to a Peer.
......
116 116
 * @param[in] trans_id transaction number associated with this send.
117 117
 * @return 1 Success, <0 on error.
118 118
 */
119
int sendBufferMap(const struct nodeID *to, const struct nodeID *owner, struct chunkID_set *bmap, int cb_size, uint16_t trans_id);
119
int sendBufferMap(const struct nodeID *localID, const struct nodeID *to, const struct nodeID *owner, struct chunkID_set *bmap, int cb_size, uint16_t trans_id);
120 120

  
121 121
/**
122 122
 * @brief Request a BufferMap to a Peer.
......
128 128
 * @param[in] trans_id transaction number associated with this request.
129 129
 * @return 1 Success, <0 on error.
130 130
 */
131
int requestBufferMap(const struct nodeID *to, const struct nodeID *owner, uint16_t trans_id);
131
int requestBufferMap(const struct nodeID *localID, const struct nodeID *to, const struct nodeID *owner, uint16_t trans_id);
132 132

  
133 133
/**
134 134
 * @brief Send an Acknoledgement to a Peer.
......
140 140
 * @param[in] trans_id transaction number associated with this send.
141 141
 * @return 1 Success, <0 on error.
142 142
 */
143
int sendAck(const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
143
int sendAck(const struct nodeID *localID, const struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id);
144 144

  
145 145
#endif //TRADE_SIG_HA_H 

Also available in: Unified diff