Revision b4d038cb src/ChunkTrading/chunk_signaling.c

View differences:

src/ChunkTrading/chunk_signaling.c
34 34
#define MSG_SIG_ACC 6
35 35
//Receive the BufferMap
36 36
#define MSG_SIG_BMOFF 10
37
//Receive the Acknoledgment
38
#define MSG_SIG_ACK 11
37 39
//Request the BufferMap
38 40
#define MSG_SIG_BMREQ 12
39 41

  
......
88 90
      case MSG_SIG_BMOFF:
89 91
        *sig_type = sig_send_buffermap;
90 92
        break;
93
      case MSG_SIG_ACK:
94
        *sig_type = sig_ack;
95
        break;
91 96
      case MSG_SIG_BMREQ:
92 97
        *sig_type = sig_request_buffermap;
93 98
        break;
......
182 187
                       cb_size, trans_id);
183 188
}
184 189

  
190
int sendAck(struct nodeID *to, struct chunkID_set *cset, uint16_t trans_id)
191
{
192
    return sendSignaling(MSG_SIG_ACK, to, NULL, cset, 0, trans_id);
193
}
194

  
185 195
int requestBufferMap(struct nodeID *to, const struct nodeID *owner,
186 196
                     uint16_t trans_id)
187 197
{

Also available in: Unified diff