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

Method GetServerByIPUDP

src/ServerList.cpp:648–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646
647
648CServer* 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
662CServer* CServerList::GetServerByECID(uint32 ecid) const

Callers 4

OnPacketReceivedMethod · 0.80
ProcessPacketMethod · 0.80
OnReceiveErrorMethod · 0.80
SendQueueMethod · 0.80

Calls 5

GetObfuscationPortUDPMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetIPMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected