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

Method AddDownloaded

src/ClientCredits.cpp:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71void CClientCredits::AddDownloaded(uint32 bytes, uint32 dwForIP, bool cryptoavail)
72{
73 switch (GetCurrentIdentState(dwForIP)) {
74 case IS_IDFAILED:
75 case IS_IDBADGUY:
76 case IS_IDNEEDED:
77 if (cryptoavail) {
78 return;
79 }
80 break;
81 case IS_NOTAVAILABLE:
82 case IS_IDENTIFIED:
83 break;
84 }
85
86 m_pCredits->downloaded += bytes;
87}
88
89
90void CClientCredits::AddUploaded(uint32 bytes, uint32 dwForIP, bool cryptoavail)

Callers 1

ProcessBlockPacketMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected