Revision 026a7e5d som/ChunkTrading/chunk_delivery.c

View differences:

som/ChunkTrading/chunk_delivery.c
11 11
#include "net_helper.h"
12 12
#include "trade_msg_la.h"
13 13
#include "trade_msg_ha.h"
14
#include "msg_types.h"
14 15

  
15 16
static struct nodeID *localID;
16 17

  
......
37 38
        return -1;
38 39
    }
39 40
    res = encodeChunk(c, buff + 1, buff_len);
40
    buff[0] = 12;
41
    buff[0] = MSG_TYPE_CHUNK;
41 42
    send_data(localID, to, buff, buff_len + 1);
42 43
    free(buff);
43 44

  

Also available in: Unified diff