| 646 | |
| 647 | |
| 648 | CServer* CServerList::GetServerByIPUDP(uint32 nIP, uint16 nUDPPort, bool bObfuscationPorts) const |
| 649 | { |
| 650 | for (CInternalList::const_iterator it = m_servers.begin(); it != m_servers.end(); ++it){ |
| 651 | CServer* const s =*it; |
| 652 | if (s->GetIP() == nIP |
| 653 | && (s->GetPort() == nUDPPort-4 |
| 654 | || (bObfuscationPorts && s->GetObfuscationPortUDP() == nUDPPort) |
| 655 | || s->GetPort() == nUDPPort - 12)) |
| 656 | return s; |
| 657 | } |
| 658 | return NULL; |
| 659 | } |
| 660 | |
| 661 | |
| 662 | CServer* CServerList::GetServerByECID(uint32 ecid) const |
no test coverage detected