Added exponential backoff when errors occur in sicspoll

This commit is contained in:
2016-11-24 13:49:07 +01:00
parent e5ecf5218e
commit 3fda3d9864
3 changed files with 37 additions and 4 deletions

View File

@ -16,6 +16,7 @@ typedef struct __POLLDRIV {
void *objPointer; /* a pointer to the object */
time_t nextPoll; /* next polling time */
int pollIntervall; /* poll intervall */
int actualPollIntervall; /* for supporting exponential backoff */
int (*isDue) (struct __POLLDRIV * self, time_t now, SConnection * pCon);
/* function called to determine if this object must be polled */
int (*poll) (struct __POLLDRIV * self, SConnection * pCon);