mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-09 08:14:13 +00:00
Now have a valid response to the DX command :-)
This commit is contained in:
parent
64bf2108ee
commit
b71c77a9b8
5 changed files with 24 additions and 13 deletions
|
|
@ -52,10 +52,14 @@ bool CReflectors::load()
|
|||
std::vector<CYSFHost*>& hostList = hosts.list();
|
||||
|
||||
for (std::vector<CYSFHost*>::const_iterator it = hostList.begin(); it != hostList.end(); ++it) {
|
||||
CYSFReflector* reflector = new CYSFReflector;
|
||||
reflector->m_address = CUDPSocket::lookup((*it)->m_address);
|
||||
reflector->m_port = (*it)->m_port;
|
||||
m_reflectors.push_back(reflector);
|
||||
in_addr address = CUDPSocket::lookup((*it)->m_address);
|
||||
|
||||
if (address.s_addr != INADDR_NONE) {
|
||||
CYSFReflector* reflector = new CYSFReflector;
|
||||
reflector->m_address = address;
|
||||
reflector->m_port = (*it)->m_port;
|
||||
m_reflectors.push_back(reflector);
|
||||
}
|
||||
}
|
||||
|
||||
m_it = m_reflectors.begin();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue