MCPcopy Create free account
hub / github.com/amule-project/amule / GetServerByIPTCP

Method GetServerByIPTCP

src/ServerList.cpp:637–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635
636
637CServer* 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
648CServer* CServerList::GetServerByIPUDP(uint32 nIP, uint16 nUDPPort, bool bObfuscationPorts) const

Callers 2

OnBnClickedAddserverMethod · 0.45
Get_EC_Response_ServerFunction · 0.45

Calls 4

beginMethod · 0.45
endMethod · 0.45
GetIPMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected