Revision 026a7e5d som/Tests/chunk_sending_test.c

View differences:

som/Tests/chunk_sending_test.c
15 15
#include "trade_msg_la.h"
16 16
#include "trade_msg_ha.h"
17 17
#include "net_helpers.h"
18
#include "msg_types.h"
18 19

  
19 20
static const char *my_addr = "127.0.0.1";
20 21
static int port = 6666;
......
107 108

  
108 109
    res = recv_data(my_sock, &remote, buff, BUFFSIZE);
109 110
    /* TODO: Error check! */
110
    if (buff[0] != 12) {
111
    if (buff[0] != MSG_TYPE_CHUNK) {
111 112
      fprintf(stderr, "Wrong message type!!!\n");
112 113

  
113 114
      return -1;

Also available in: Unified diff