summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
93c7c1b)
члены. Так-же инициализация членов класса реализована через список
инициализации в конструкторе
}
//-----------------------------------------------------------------------------
ETHER_CAP::ETHER_CAP()
}
//-----------------------------------------------------------------------------
ETHER_CAP::ETHER_CAP()
+ : nonstop(false),
+ isRunning(false),
+ capSock(-1),
+ traffCnt(NULL)
-isRunning = false;
-nonstop = false;
}
//-----------------------------------------------------------------------------
void ETHER_CAP::SetTraffcounter(TRAFFCOUNTER * tc)
}
//-----------------------------------------------------------------------------
void ETHER_CAP::SetTraffcounter(TRAFFCOUNTER * tc)
#ifndef ETHER_CAP_H
#define ETHER_CAP_H
#ifndef ETHER_CAP_H
#define ETHER_CAP_H
#include "base_plugin.h"
#include "base_settings.h"
#include "../../../traffcounter.h"
#include "base_plugin.h"
#include "base_settings.h"
#include "../../../traffcounter.h"
extern "C" BASE_PLUGIN * GetPlugin();
extern "C" BASE_PLUGIN * GetPlugin();
-//-----------------------------------------------------------------------------
-class ETHER_CAP_SETTINGS
-{
-public:
- const string& GetStrError() const { static string s; return s; }
- int ParseSettings(const MODULE_SETTINGS &) { return 0; }
-};
//-----------------------------------------------------------------------------
class ETHER_CAP :public BASE_PLUGIN
{
//-----------------------------------------------------------------------------
class ETHER_CAP :public BASE_PLUGIN
{
int EthCapRead(void * buffer, int blen, char ** iface);
bool WaitPackets(int sd) const;
int EthCapRead(void * buffer, int blen, char ** iface);
bool WaitPackets(int sd) const;
- ETHER_CAP_SETTINGS capSettings;
-
mutable string errorStr;
pthread_t thread;
mutable string errorStr;
pthread_t thread;