mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-07 07:14:09 +00:00
Have initial reply to ALL working.
This commit is contained in:
parent
b71c77a9b8
commit
e0e6546cc6
4 changed files with 83 additions and 1 deletions
|
|
@ -29,6 +29,7 @@ m_hostsFile(hostsFile),
|
|||
m_socket(statusPort),
|
||||
m_reflectors(),
|
||||
m_it(),
|
||||
m_current(),
|
||||
m_timer(1000U, 60U)
|
||||
{
|
||||
assert(statusPort > 0U);
|
||||
|
|
@ -81,6 +82,18 @@ CYSFReflector* CReflectors::find(const std::string& id)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
std::vector<CYSFReflector*>& CReflectors::current()
|
||||
{
|
||||
m_current.clear();
|
||||
|
||||
for (std::vector<CYSFReflector*>::iterator it = m_reflectors.begin(); it != m_reflectors.end(); ++it) {
|
||||
if ((*it)->m_timer.isRunning() && !(*it)->m_timer.hasExpired())
|
||||
m_current.push_back(*it);
|
||||
}
|
||||
|
||||
return m_current;
|
||||
}
|
||||
|
||||
void CReflectors::clock(unsigned int ms)
|
||||
{
|
||||
m_timer.clock(ms);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue