| 1113 | } |
| 1114 | |
| 1115 | bool CClientList::AllowCallbackRequest(uint32_t ip) const |
| 1116 | { |
| 1117 | uint64_t now = ::GetTickCount64(); |
| 1118 | for (IpAndTicksList::const_iterator it = m_directCallbackRequests.begin(); it != m_directCallbackRequests.end(); ++it) { |
| 1119 | if (it->ip == ip && now - it->inserted < MIN2MS(3)) { |
| 1120 | return false; |
| 1121 | } |
| 1122 | } |
| 1123 | return true; |
| 1124 | } |
| 1125 | |
| 1126 | uint32 CClientList::GetBuddyIP() |
| 1127 | { |
no test coverage detected