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

Method AllowCallbackRequest

src/ClientList.cpp:1115–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115bool 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
1126uint32 CClientList::GetBuddyIP()
1127{

Callers 1

ProcessPacketMethod · 0.80

Calls 3

GetTickCount64Function · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected