diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-14 11:04:36 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-14 11:04:36 +0000 |
commit | fdfcb2a8f953cc91abbe628366e3f5474a101670 (patch) | |
tree | 9dae7bb09bd99a7f98cc9edb609c48ce09b07013 /msg.h | |
parent | de0665a4755140715ad9d95098f6b3a7ff713bd2 (diff) | |
download | rsyslog-fdfcb2a8f953cc91abbe628366e3f5474a101670.tar.gz rsyslog-fdfcb2a8f953cc91abbe628366e3f5474a101670.tar.xz rsyslog-fdfcb2a8f953cc91abbe628366e3f5474a101670.zip |
added advanced flow control for congestion cases (mode depending on message
source and its capablity to be delayed without bad side effects)
Diffstat (limited to 'msg.h')
-rw-r--r-- | msg.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -59,6 +59,8 @@ struct msg { * sockets. All in all, the parser would need parse templates, that would * resolve all these issues... rgerhards, 2005-10-06 */ + flowControl_t flowCtlType; /**< type of flow control we can apply, for enqueueing, needs not to be persisted because + once data has entered the queue, this property is no longer needed. */ short iSeverity; /* the severity 0..7 */ uchar *pszSeverity; /* severity as string... */ int iLenSeverity; /* ... and its length. */ @@ -137,6 +139,7 @@ char *getPROCID(msg_t *pM); rsRetVal MsgSetMSGID(msg_t *pMsg, char* pszMSGID); void MsgAssignTAG(msg_t *pMsg, uchar *pBuf); void MsgSetTAG(msg_t *pMsg, char* pszTAG); +rsRetVal MsgSetFlowControlType(msg_t *pMsg, flowControl_t eFlowCtl); char *getTAG(msg_t *pM); int getHOSTNAMELen(msg_t *pM); char *getHOSTNAME(msg_t *pM); |