| 69 | |
| 70 | |
| 71 | void 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 | |
| 90 | void CClientCredits::AddUploaded(uint32 bytes, uint32 dwForIP, bool cryptoavail) |