mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-21 06:03:58 +00:00
IPv6 and FCS changes.
This commit is contained in:
parent
bdf5195362
commit
241c76e606
13 changed files with 327 additions and 190 deletions
|
|
@ -60,12 +60,18 @@ bool CYSFReflectors::load()
|
|||
std::string host = std::string(p4);
|
||||
unsigned int port = (unsigned int)::atoi(p5);
|
||||
|
||||
CYSFReflector* refl = new CYSFReflector;
|
||||
CUDPSocket::lookup(host, port, refl->m_addr, refl->m_addrLen);
|
||||
refl->m_id = std::string(p1);
|
||||
refl->m_name = std::string(p2);
|
||||
|
||||
m_reflectors.push_back(refl);
|
||||
sockaddr_storage addr;
|
||||
unsigned int addrLen;
|
||||
if (CUDPSocket::lookup(host, port, addr, addrLen) == 0) {
|
||||
CYSFReflector* refl = new CYSFReflector;
|
||||
refl->m_id = std::string(p1);
|
||||
refl->m_name = std::string(p2);
|
||||
refl->m_addr = addr;
|
||||
refl->m_addrLen = addrLen;
|
||||
m_reflectors.push_back(refl);
|
||||
} else {
|
||||
LogWarning("Unable to resolve the address for %s", host.c_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue