added library build mode

This commit is contained in:
Mohamed Boussaffa
2016-03-03 04:07:26 +08:00
parent c0b69e51af
commit 53234af7ab
9 changed files with 332 additions and 30 deletions

18
libnethogs.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef NETHOGSMINITOR_H
#define NETHOGSMINITOR_H
class NethogsMonitor
{
NethogsMonitor();
public:
static void start();
static void stop();
private:
static void threadProc();
static void handleUpdate();
static bool _trace;
static bool _promisc;
};
#endif // NETHOGSMINITOR_H