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

Method ResetSessionUp

src/UploadClient.cpp:408–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406
407
408void CUpDownClient::ResetSessionUp()
409{
410 m_nCurSessionUp = m_nTransferredUp;
411 m_addedPayloadQueueSession = 0;
412 m_nCurQueueSessionPayloadUp = 0;
413 // If upload was resumed there can be a remaining payload in the socket
414 // causing (prepared - sent) getting negative. So reset the counter here.
415 if (m_socket) {
416 CEMSocket* s = m_socket;
417 s->GetSentPayloadSinceLastCallAndReset();
418 }
419}
420
421
422uint32 CUpDownClient::SendBlockData()

Callers 1

AddUpNextClientMethod · 0.80

Tested by

no test coverage detected