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

Method GetServerByIP

src/ServerList.cpp:626–634  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624
625
626CServer* CServerList::GetServerByIP(uint32 nIP) const
627{
628 for (CInternalList::const_iterator it = m_servers.begin(); it != m_servers.end(); ++it){
629 CServer* const s = *it;
630 if (s->GetIP() == nIP)
631 return s;
632 }
633 return NULL;
634}
635
636
637CServer* CServerList::GetServerByIPTCP(uint32 nIP, uint16 nPort) const

Callers 1

ProcessPacketMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
GetIPMethod · 0.45

Tested by

no test coverage detected