summaryrefslogtreecommitdiff
path: root/tcpclt.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-12-12 17:46:20 +0100
committerMichael Biebl <biebl@debian.org>2008-12-12 17:46:20 +0100
commit84080b58f8c6c5c040723a02503ddd90f02b5898 (patch)
treecf8c63e076f1ebb9cb2bea644a4f45172808a3e5 /tcpclt.h
parent53123ea8a1b9180b9aa0568e847f9245987c1b7c (diff)
downloadrsyslog-84080b58f8c6c5c040723a02503ddd90f02b5898.tar.gz
Imported Upstream version 3.20.2upstream/3.20.2
Diffstat (limited to 'tcpclt.h')
-rw-r--r--tcpclt.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/tcpclt.h b/tcpclt.h
index d2f1fe0..1d70404 100644
--- a/tcpclt.h
+++ b/tcpclt.h
@@ -26,7 +26,6 @@
#ifndef TCPCLT_H_INCLUDED
#define TCPCLT_H_INCLUDED 1
-#include "tcpsyslog.h"
#include "obj.h"
/* the tcpclt object */
@@ -34,6 +33,7 @@ typedef struct tcpclt_s {
BEGINobjInstance; /**< Data to implement generic object - MUST be the first data element! */
TCPFRAMINGMODE tcp_framing;
char *prevMsg;
+ short bResendLastOnRecon; /* should the last message be resent on a successful reconnect? */
size_t lenPrevMsg;
/* session specific callbacks */
rsRetVal (*initFunc)(void*);
@@ -50,12 +50,13 @@ BEGINinterface(tcpclt) /* name must also be changed in ENDinterface macro! */
int (*Send)(tcpclt_t *pThis, void*pData, char*msg, size_t len);
int (*CreateSocket)(struct addrinfo *addrDest);
/* set methods */
+ rsRetVal (*SetResendLastOnRecon)(tcpclt_t*, int);
rsRetVal (*SetSendInit)(tcpclt_t*, rsRetVal (*)(void*));
rsRetVal (*SetSendFrame)(tcpclt_t*, rsRetVal (*)(void*, char*, size_t));
rsRetVal (*SetSendPrepRetry)(tcpclt_t*, rsRetVal (*)(void*));
rsRetVal (*SetFraming)(tcpclt_t*, TCPFRAMINGMODE framing);
ENDinterface(tcpclt)
-#define tcpcltCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */
+#define tcpcltCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */
/* prototypes */