summaryrefslogtreecommitdiff
path: root/src/param.h
diff options
context:
space:
mode:
authorbustico2009-07-06 10:22:07 +0000
committerbustico2009-07-06 10:22:07 +0000
commitc11ddf39df8c9ea9e08410277b3a476961ad1df2 (patch)
tree7191b170cf58b0546b08025a9d1b1ba6040c3017 /src/param.h
parent41ab25636882f12eed1c31a818a70aed12a46bbf (diff)
downloadivy-c-c11ddf39df8c9ea9e08410277b3a476961ad1df2.zip
ivy-c-c11ddf39df8c9ea9e08410277b3a476961ad1df2.tar.gz
ivy-c-c11ddf39df8c9ea9e08410277b3a476961ad1df2.tar.bz2
ivy-c-c11ddf39df8c9ea9e08410277b3a476961ad1df2.tar.xz
force tcp_no_delay option to reduce lag on small messages
Diffstat (limited to 'src/param.h')
-rw-r--r--src/param.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/param.h b/src/param.h
index 85b0542..3e482b3 100644
--- a/src/param.h
+++ b/src/param.h
@@ -53,6 +53,20 @@
/*
maximum number of arguments which can be catched by a regexp
*/
-#define MAX_MATCHING_ARGS 40
+#define MAX_MATCHING_ARGS 120
+
+
+/* TCP_NODELAY is for a specific purpose; to disable the Nagle buffering
+ algorithm. It should only be set for applications that send frequent
+ small bursts of information without getting an immediate response,
+ where timely delivery of data is required (the canonical example is
+ mouse movements).
+
+ Since Ivy is most of the time used to send events, we will priviligiate
+ lag over throughtput, so _TCP_NO_DELAY_ACTIVATED is set to 1
+*/
+extern const int _TCP_NO_DELAY_ACTIVATED;
+
+
#endif // PARAM_H