summaryrefslogtreecommitdiff
path: root/src/param.h
blob: 85b0542dc2f22c6fe172f164b0420dac6b01521b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef	PARAM_H
#define PARAM_H



/*
  default port number and broadcast adress for any agent using
  ivy bus
 */
#define IVY_DEFAULT_BUS 2010
#define IVY_DEFAULT_DOMAIN 127.255.255.255

/*
  These constants are arbitrary and can be lowered to adapt the lib
  to tiny environments, or raised to adapt lib to optimise lib in
  case of very big transaction number
 */


/*
  max message length
 */
#define IVY_BUFFER_SIZE 4096

/*
  max number of captured field by a regexp
 */
#define IVY_MAX_MSG_FIELDS 200

/*
  max number of captured field by a regexp
 */
#define IVY_MAX_REGEXP 4096


/*
  if congestion occurs, fifo size will be raised by bock of this size.
  the biggest it is, the least realloc/recopy occurs, and this realloc/recopy  
  could be very slow, so if memory footprint is not a problem, 
  keep this limit high
 */
#define IVY_FIFO_ALLOC_SIZE 262144


/*
  Beginning with version 3.11, message send is non blocking, 
  if receiver is congestionned, messages are accumulated in a local
  fifo buffer. This is the maximum size for the fifo, after that, messages
  will not be sent
 */
#define IVY_FIFO_MAX_ALLOC_SIZE  (32 * 1048576)

/*
  maximum number of arguments which can be catched by a regexp
 */
#define MAX_MATCHING_ARGS 40

#endif // PARAM_H