summaryrefslogtreecommitdiffstats
path: root/tcpsrv.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-01 16:26:21 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-01 16:26:21 +0200
commit0edf73f88096f3656da466027417d04ce7a2511c (patch)
treeca890d2481488afad0385c40b56a62ce6ec42a40 /tcpsrv.h
parent945bc9bd0d9de984ab11b9faf609b809a1f3cb90 (diff)
downloadrsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.gz
rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.tar.xz
rsyslog-0edf73f88096f3656da466027417d04ce7a2511c.zip
added new config directive $InputTCPFlowControl...
... to select if tcp received messages shall be flagged as light delayable or not.
Diffstat (limited to 'tcpsrv.h')
-rw-r--r--tcpsrv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tcpsrv.h b/tcpsrv.h
index 57bdf4b1..6c2bad45 100644
--- a/tcpsrv.h
+++ b/tcpsrv.h
@@ -56,6 +56,7 @@ struct tcpsrv_s {
permittedPeers_t *pPermPeers;/**< driver's permitted peers */
sbool bEmitMsgOnClose; /**< emit an informational message when the remote peer closes connection */
sbool bUsingEPoll; /**< are we in epoll mode (means we do not need to keep track of sessions!) */
+ sbool bUseFlowControl; /**< use flow control (make light delayable) */
int iLstnCurr; /**< max nbr of listeners currently supported */
netstrm_t **ppLstn; /**< our netstream listners */
tcpLstnPortList_t **ppLstnPort; /**< pointer to relevant listen port description */
@@ -121,8 +122,10 @@ BEGINinterface(tcpsrv) /* name must also be changed in ENDinterface macro! */
rsRetVal (*SetNotificationOnRemoteClose)(tcpsrv_t *pThis, int bNewVal); /* 2009-10-01 */
/* added v9 -- rgerhards, 2010-03-01 */
rsRetVal (*SetbDisableLFDelim)(tcpsrv_t*, int);
+ /* added v10 -- rgerhards, 2011-04-01 */
+ rsRetVal (*SetUseFlowControl)(tcpsrv_t*, int);
ENDinterface(tcpsrv)
-#define tcpsrvCURR_IF_VERSION 9 /* increment whenever you change the interface structure! */
+#define tcpsrvCURR_IF_VERSION 10 /* increment whenever you change the interface structure! */
/* change for v4:
* - SetAddtlFrameDelim() added -- rgerhards, 2008-12-10
* - SetInputName() added -- rgerhards, 2008-12-10