From 6ca781b8a38474ab428d5fcb3b489dfe3e974334 Mon Sep 17 00:00:00 2001 From: bustico Date: Fri, 21 Mar 2008 09:03:34 +0000 Subject: - numerous fixes - socket in non blocking mode (resolve some deadlock, and agent are immune to another agent beeing blocked) --- src/param.h | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/param.h (limited to 'src/param.h') diff --git a/src/param.h b/src/param.h new file mode 100644 index 0000000..85b0542 --- /dev/null +++ b/src/param.h @@ -0,0 +1,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 -- cgit v1.1