Lines Matching refs:theApp
51 #include "amule.h" // Needed for theApp
87 || !theApp->sharedfiles->GetFileByID(cur_client->GetUploadFileID())) {
195 || !theApp->sharedfiles->GetFileByID(directadd->GetUploadFileID())) {
221 theApp->uploadBandwidthThrottler->AddToStandardList(m_uploadinglist.size(), newclient->GetSocket());
252 || theApp->listensocket->TooManySockets()) {
282 uint64 sentBytes = theApp->uploadBandwidthThrottler->GetNumberOfSentBytesSinceLastCallAndReset();
283 (void)theApp->uploadBandwidthThrottler->GetNumberOfSentBytesOverheadSinceLastCallAndReset();
384 if (theApp->serverconnect->IsConnected() && theApp->serverconnect->IsLowID() && !theApp->serverconnect->IsLocalServer(client->GetServerIP(),client->GetServerPort()) && client->GetDownloadState() == DS_NONE && !client->IsFriend() && theStats::GetWaitingUserCount() > 50) {
397 CClientList::SourceList found = theApp->clientlist->GetClientsByHash( client->GetUserHash() );
437 theApp->clientlist->AddTrackClient( cur_client );
449 theApp->clientlist->AddTrackClient( client );
464 found = theApp->clientlist->GetClientsByIP( client->GetIP() );
476 } else if ( theApp->clientlist->GetClientsFromIP(client->GetIP()) >= 3 ) {
505 && !theApp->listensocket->TooManySockets()) {
525 theApp->clientlist->AddTrackClient(client);
698 int nrDownloads = theApp->downloadqueue->GetFileCount();
700 CPartFile * download = theApp->downloadqueue->GetFileByIndex(idownload);