Revision 5941d7a1

View differences:

include/grapes_msg_types.h
1
#ifndef GRAPES_MSG_TYPES_H
2
#define GRAPES_MSG_TYPES_H
3

  
4

  
5
/**
6
 * @file msg_types.h
7
 * @brief Basic message type mappings.
8
 *
9
 * Here the definitions of the various SOM message types are collected.
10
 *
11
 */
12
#define MSG_TYPE_TOPOLOGY   0x10
13
#define MSG_TYPE_CHUNK      0x11
14
#define MSG_TYPE_SIGNALLING 0x12
15
#define MSG_TYPE_TMAN       0x13
16

  
17
#endif	/* GRAPES_MSG_TYPES_H */
include/msg_types.h
1
#ifndef MSG_TYPES_H
2
#define MSG_TYPES_H
3

  
4

  
5
/**
6
 * @file msg_types.h
7
 * @brief Basic message type mappings.
8
 *
9
 * Here the definitions of the various SOM message types are collected.
10
 *
11
 */
12
#define MSG_TYPE_TOPOLOGY   0x10
13
#define MSG_TYPE_CHUNK      0x11
14
#define MSG_TYPE_SIGNALLING 0x12
15
#define MSG_TYPE_TMAN       0x13
16

  
17
#endif	/* MSG_TYPES_H */
src/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
#include "grapes_msg_types.h"
15 15

  
16 16
static struct nodeID *localID;
17 17

  
src/ChunkTrading/chunk_signaling.c
18 18
#include <arpa/inet.h>
19 19

  
20 20
#include "chunk.h"
21
#include "msg_types.h"
21
#include "grapes_msg_types.h"
22 22
#include "chunkidset.h"
23 23
#include "trade_sig_la.h"
24 24
#include "trade_sig_ha.h"
src/Tests/chunk_sending_test.c
16 16
#include "trade_msg_la.h"
17 17
#include "trade_msg_ha.h"
18 18
#include "net_helpers.h"
19
#include "msg_types.h"
19
#include "grapes_msg_types.h"
20 20

  
21 21
static const char *my_addr = "127.0.0.1";
22 22
static int port = 6666;
src/Tests/chunk_signaling_test.c
14 14
#include "net_helpers.h"
15 15
#include "chunk.h"
16 16
#include "chunkidset.h"
17
#include "msg_types.h"
17
#include "grapes_msg_types.h"
18 18
#include "trade_sig_ha.h"
19 19
#include "chunkid_set_h.h"
20 20

  
src/Tests/topology.c
11 11
#include <stdio.h>
12 12
#include <string.h>
13 13

  
14
#include "msg_types.h"
14
#include "grapes_msg_types.h"
15 15
#include "net_helper.h"
16 16
#include "topmanager.h"
17 17
#include "tman.h"
src/TopologyManager/ncast.c
17 17
#include "topocache.h"
18 18
#include "topo_proto.h"
19 19
#include "proto.h"
20
#include "msg_types.h"
20
#include "grapes_msg_types.h"
21 21

  
22 22
#define MAX_PEERS 10
23 23
#define BOOTSTRAP_CYCLES 5
src/TopologyManager/tman.c
16 16
#include "topocache.h"
17 17
#include "topo_proto.h"
18 18
#include "proto.h"
19
#include "msg_types.h"
19
#include "grapes_msg_types.h"
20 20
#include "tman.h"
21 21

  
22 22
#define TMAN_INIT_PEERS 10 // max # of neighbors in local cache (should be >= than the next)
src/TopologyManager/topo_proto.c
12 12
#include "topocache.h"
13 13
#include "proto.h"
14 14
#include "topo_proto.h"
15
#include "msg_types.h"
15
#include "grapes_msg_types.h"
16 16

  
17 17
#define MAX_MSG_SIZE 1500
18 18

  
src/net_helper-ml.c
17 17
#include "net_helper.h"
18 18
#include "ml.h"
19 19

  
20
#include "msg_types.h"/**/
20
#include "grapes_msg_types.h"
21 21

  
22 22

  
23 23
#ifdef MONL

Also available in: Unified diff