few tweaks for library performance improvement
This commit is contained in:
10
libnethogs.h
10
libnethogs.h
@@ -36,15 +36,17 @@ public:
|
||||
//register async callback to receive updates
|
||||
//have to be called before start
|
||||
static void registerUpdateCallback(Callback const& cb);
|
||||
|
||||
static void setRefreshDelay(int seconds);
|
||||
|
||||
|
||||
//start the monitor
|
||||
static void start();
|
||||
|
||||
//stop the monitor
|
||||
static void stop();
|
||||
|
||||
|
||||
//tuning functions
|
||||
static void setRefreshDelay(int seconds);
|
||||
static void setPcapDispatchDelay(int milliseconds);
|
||||
|
||||
private:
|
||||
static void threadProc();
|
||||
static void handleUpdate();
|
||||
|
||||
Reference in New Issue
Block a user