инициализация членов через список инициализации в конструкторе
}
//-----------------------------------------------------------------------------
DIVERT_CAP::DIVERT_CAP()
}
//-----------------------------------------------------------------------------
DIVERT_CAP::DIVERT_CAP()
+ : port(0),
+ nonstop(false),
+ isRunning(false),
+ traffCnt(NULL)
-isRunning = false;
-nonstop = false;
}
//-----------------------------------------------------------------------------
void DIVERT_CAP::SetTraffcounter(TRAFFCOUNTER * tc)
}
//-----------------------------------------------------------------------------
void DIVERT_CAP::SetTraffcounter(TRAFFCOUNTER * tc)
}
//-----------------------------------------------------------------------------
BPF_CAP::BPF_CAP()
}
//-----------------------------------------------------------------------------
BPF_CAP::BPF_CAP()
+ : nonstop(false),
+ isRunning(false),
+ capSock(-1),
+ traffCnt(NULL)
-isRunning = false;
-nonstop = false;
}
//-----------------------------------------------------------------------------
void BPF_CAP::SetSettings(const MODULE_SETTINGS & s)
}
//-----------------------------------------------------------------------------
void BPF_CAP::SetSettings(const MODULE_SETTINGS & s)