diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-14 18:57:49 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-14 18:57:49 +0200 |
commit | 5416a94bbe9a24ad9236755a9e21944685fc231b (patch) | |
tree | a7a15b3170587a856ecf1831ea33c25be5b76aa5 /tcpclt.h | |
parent | c126e4464a2510eaf42526af64f85fa9a303b355 (diff) | |
download | rsyslog-5416a94bbe9a24ad9236755a9e21944685fc231b.tar.gz rsyslog-5416a94bbe9a24ad9236755a9e21944685fc231b.tar.xz rsyslog-5416a94bbe9a24ad9236755a9e21944685fc231b.zip |
added tcp output rebinding option.
needs some more testing and doc
Diffstat (limited to 'tcpclt.h')
-rw-r--r-- | tcpclt.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -36,6 +36,8 @@ typedef struct tcpclt_s { short bResendLastOnRecon; /* should the last message be resent on a successful reconnect? */ size_t lenPrevMsg; /* session specific callbacks */ + int iRebindInterval; /* how often should the send socket be rebound? */ + int iNumMsgs; /* number of messages during current "rebind session" */ rsRetVal (*initFunc)(void*); rsRetVal (*sendFunc)(void*, char*, size_t); rsRetVal (*prepRetryFunc)(void*); @@ -55,8 +57,10 @@ BEGINinterface(tcpclt) /* name must also be changed in ENDinterface macro! */ rsRetVal (*SetSendFrame)(tcpclt_t*, rsRetVal (*)(void*, char*, size_t)); rsRetVal (*SetSendPrepRetry)(tcpclt_t*, rsRetVal (*)(void*)); rsRetVal (*SetFraming)(tcpclt_t*, TCPFRAMINGMODE framing); + /* v3, 2009-07-14*/ + rsRetVal (*SetRebindInterval)(tcpclt_t*, int iRebindInterval); ENDinterface(tcpclt) -#define tcpcltCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */ +#define tcpcltCURR_IF_VERSION 3 /* increment whenever you change the interface structure! */ /* prototypes */ |