3 #include "base_plugin.h"
4 #include "base_settings.h"
5 #include "../../../traffcounter.h"
8 #define PAYLOAD_LEN (96)
12 extern "C" BASE_PLUGIN * GetPlugin();
14 //-----------------------------------------------------------------------------
15 class IPQ_CAP :public BASE_PLUGIN
21 void SetUsers(USERS *){};
22 void SetTariffs(TARIFFS *){};
23 void SetAdmins(ADMINS *){};
24 void SetTraffcounter(TRAFFCOUNTER * tc);
25 void SetStore(BASE_STORE *){};
26 void SetStgSettings(const SETTINGS *){};
30 int Reload() { return 0; };
33 void SetSettings(const MODULE_SETTINGS &){};
34 int ParseSettings(){ return 0; };
35 const string & GetStrError() const;
36 const string GetVersion() const;
37 uint16_t GetStartPosition() const;
38 uint16_t GetStopPosition() const;
41 static void * Run(void *);
44 int IPQCapRead(void * buffer, int blen);
46 struct ipq_handle *ipq_h;
47 mutable string errorStr;
54 TRAFFCOUNTER * traffCnt;
55 unsigned char buf[BUFSIZE];