summaryrefslogtreecommitdiff
path: root/src/param.h
diff options
context:
space:
mode:
authorbustico2008-03-21 09:03:34 +0000
committerbustico2008-03-21 09:03:34 +0000
commit6ca781b8a38474ab428d5fcb3b489dfe3e974334 (patch)
tree8c8725c88c3fd031d632a9f2b1f7376d1cb3c75b /src/param.h
parent50236114f04a0050625bedee7c4c02b36b1213ae (diff)
downloadivy-c-6ca781b8a38474ab428d5fcb3b489dfe3e974334.zip
ivy-c-6ca781b8a38474ab428d5fcb3b489dfe3e974334.tar.gz
ivy-c-6ca781b8a38474ab428d5fcb3b489dfe3e974334.tar.bz2
ivy-c-6ca781b8a38474ab428d5fcb3b489dfe3e974334.tar.xz
- numerous fixes
- socket in non blocking mode (resolve some deadlock, and agent are immune to another agent beeing blocked)
Diffstat (limited to 'src/param.h')
-rw-r--r--src/param.h58
1 files changed, 58 insertions, 0 deletions
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