| 635 | |
| 636 | |
| 637 | CServer* CServerList::GetServerByIPTCP(uint32 nIP, uint16 nPort) const |
| 638 | { |
| 639 | for (CInternalList::const_iterator it = m_servers.begin(); it != m_servers.end(); ++it){ |
| 640 | CServer* const s = *it; |
| 641 | if (s->GetIP() == nIP && s->GetPort() == nPort) |
| 642 | return s; |
| 643 | } |
| 644 | return NULL; |
| 645 | } |
| 646 | |
| 647 | |
| 648 | CServer* CServerList::GetServerByIPUDP(uint32 nIP, uint16 nUDPPort, bool bObfuscationPorts) const |
no test coverage detected