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

Method IsKadFirewallCheckIP

src/ClientList.cpp:1056–1065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056bool CClientList::IsKadFirewallCheckIP(uint32 ip) const
1057{
1058 uint64 ticks = ::GetTickCount64();
1059 for (IpAndTicksList::const_iterator it = m_firewallCheckRequests.begin(); it != m_firewallCheckRequests.end(); ++it) {
1060 if (it->ip == ip && ticks - it->inserted < SEC2MS(180)) {
1061 return true;
1062 }
1063 }
1064 return false;
1065}
1066
1067void CClientList::AddDirectCallbackClient(CUpDownClient* toAdd)
1068{

Callers 3

ProcessExtPacketMethod · 0.80
ReadMethod · 0.80

Calls 3

GetTickCount64Function · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected