| 1054 | } |
| 1055 | |
| 1056 | bool 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 | |
| 1067 | void CClientList::AddDirectCallbackClient(CUpDownClient* toAdd) |
| 1068 | { |
no test coverage detected