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

Method GetNextPacket

src/ExternalConn.cpp:2352–2367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2350}
2351
2352CECPacket *ECStatusMsgSource::GetNextPacket()
2353{
2354 if ( (m_last_ed2k_status_sent != GetEd2kStatus()) ||
2355 (m_last_kad_status_sent != GetKadStatus()) ||
2356 (m_server != theApp->serverconnect->GetCurrentServer()) ) {
2357
2358 m_last_ed2k_status_sent = GetEd2kStatus();
2359 m_last_kad_status_sent = GetKadStatus();
2360 m_server = theApp->serverconnect->GetCurrentServer();
2361
2362 CECPacket *response = new CECPacket(EC_OP_STATS);
2363 response->AddTag(CEC_ConnState_Tag(EC_DETAIL_UPDATE));
2364 return response;
2365 }
2366 return 0;
2367}
2368
2369/*
2370 * Downloading files

Callers 1

Calls 8

CEC_ConnState_TagClass · 0.85
eraseMethod · 0.80
CEC_SearchFile_TagClass · 0.70
GetCurrentServerMethod · 0.45
AddTagMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected