| 137 | |
| 138 | |
| 139 | bool CUpDownClient::AskForDownload() |
| 140 | { |
| 141 | // 0.42e |
| 142 | if (theApp->listensocket->TooManySockets()) { |
| 143 | if (!m_socket) { |
| 144 | if (GetDownloadState() != DS_TOOMANYCONNS) { |
| 145 | SetDownloadState(DS_TOOMANYCONNS); |
| 146 | } |
| 147 | return true; |
| 148 | } else if (!m_socket->IsConnected()) { |
| 149 | if (GetDownloadState() != DS_TOOMANYCONNS) { |
| 150 | SetDownloadState(DS_TOOMANYCONNS); |
| 151 | } |
| 152 | return true; |
| 153 | } |
| 154 | } |
| 155 | m_bUDPPending = false; |
| 156 | m_dwLastAskedTime = ::GetTickCount64(); |
| 157 | SetDownloadState(DS_CONNECTING); |
| 158 | SetSentCancelTransfer(0); |
| 159 | return TryToConnect(); |
| 160 | } |
| 161 | |
| 162 | |
| 163 | void CUpDownClient::SendStartupLoadReq() |
no test coverage detected