| 346 | } |
| 347 | |
| 348 | void CServerUDPSocket::OnReceiveError(int errorCode, uint32 ip, uint16 port) |
| 349 | { |
| 350 | CMuleUDPSocket::OnReceiveError(errorCode, ip, port); |
| 351 | |
| 352 | // If we are not currently pinging this server, increase the failure counter |
| 353 | CServer* pServer = theApp->serverlist->GetServerByIPUDP(ip, port, true); |
| 354 | if (pServer && !pServer->GetCryptPingReplyPending() && GetTickCount64() - pServer->GetLastPinged() >= SEC2MS(30)) { |
| 355 | pServer->AddFailedCount(); |
| 356 | Notify_ServerRefresh(pServer); |
| 357 | } |
| 358 | |
| 359 | } |
| 360 | |
| 361 | void CServerUDPSocket::SendPacket(CPacket* packet, CServer* host, bool delPacket, bool rawpacket, uint16 port_offset) |
| 362 | { |
nothing calls this directly
no test coverage detected