• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/

Lines Matching refs:theApp

68 #include "amule.h"		// Needed for theApp
140 if ((m_Friend = theApp->friendlist->FindFriend(CMD4Hash(), m_dwUserIP, m_nUserPort)) != NULL){
411 if ( theApp->clientlist ) {
412 theApp->clientlist->RemoveClient( this );
416 if (theApp->uploadqueue) {
417 theApp->uploadqueue->RemoveFromUploadQueue(this);
418 theApp->uploadqueue->RemoveFromWaitingQueue(this);
420 if (theApp->downloadqueue) {
421 theApp->downloadqueue->RemoveSource(this);
673 if (!theApp->AddServer(addsrv)) {
687 CClientCredits* pFoundCredits = theApp->clientcredits->GetCredit(m_UserHash);
690 if (!theApp->clientlist->ComparePriorUserhash(m_dwUserIP, m_nUserPort, pFoundCredits)){
701 if ((m_Friend = theApp->friendlist->FindFriend(m_UserHash, m_dwUserIP, m_nUserPort)) != NULL){
738 if ( theApp->ipfilter->IsFiltered(StringIPtoUint32(address.IPAddress()))) {
783 CTagString tag1(ET_OS_INFO,theApp->GetOSType());
813 uint32 dwTagValue = (theApp->CryptoAvailable() ? 3 : 0);
1039 data->WriteUInt32(theApp->GetID());
1044 if( theApp->clientlist->GetBuddy() && theApp->IsFirewalled() ) {
1078 if( theApp->clientlist->GetBuddy() && theApp->IsFirewalled() ) {
1079 CTagVarInt tagBuddyIP(CT_EMULE_BUDDYIP, theApp->clientlist->GetBuddy()->GetIP(), GetVBTTags() ? 0 : 32);
1084 ((uint32)theApp->clientlist->GetBuddy()->GetUDPPort() )
1101 const uint32 uSupportSecIdent = theApp->CryptoAvailable() ? 3 : 0;
1180 if (theApp->IsConnectedED2K()) {
1181 dwIP = theApp->serverconnect->GetCurrentServer()->GetIP();
1182 nPort = theApp->serverconnect->GetCurrentServer()->GetPort();
1265 //wxASSERT(theApp->clientlist->IsValidClient(this));
1274 theApp->clientlist->RemoveDirectCallback(this);
1276 theApp->clientlist->AddDeadSource(this);
1293 theApp->uploadqueue->RemoveFromUploadQueue(this);
1304 theApp->clientlist->AddDeadSource(this);
1305 theApp->downloadqueue->RemoveSource(this);
1348 theApp->clientlist->AddDeadSource(this);
1357 theApp->clientlist->AddDeadSource(this);
1371 wxASSERT (theApp->listensocket->IsValidSocket(m_socket));
1410 if (theApp->listensocket->TooManySockets() && !bIgnoreMaxCon ) {
1439 if (theApp->ipfilter->IsFiltered(uClientIP)) {
1449 if (theApp->clientlist->IsBannedClient(uClientIP)) {
1466 if (!theApp->CanDoCallback(GetServerIP(), GetServerPort())) {
1484 //If ANYTHING changes with the "if(!theApp->CanDoCallback(this))" above that will let you fall through
1487 if (HasValidBuddyID() && !GetBuddyIP() && !GetBuddyPort() && !theApp->serverconnect->IsLocalServer(GetServerIP(), GetServerPort())
1519 // we already check above with !theApp->CanDoCallback(this) if any callback is possible at all
1521 theApp->clientlist->AddDirectCallbackClient(this);
1532 theApp->clientudp->SendPacket(packet, GetConnectIP(), GetKadPort(), ShouldReceiveCryptUDPPackets(), GetUserHash().GetHash(), false, 0);
1545 if (theApp->serverconnect->IsLocalServer(m_dwServerIP,m_nServerPort)) {
1553 theApp->serverconnect->SendPacket(packet);
1559 theApp->downloadqueue->RemoveSource(this);
1569 theApp->downloadqueue->RemoveSource(this);
1585 theApp->clientudp->SendPacket(packet, GetBuddyIP(), GetBuddyPort(), false, NULL, true, 0);
1663 if (theApp->GetPublicIP(true) == 0 && theApp->IsConnectedED2K()) {
1669 theApp->clientlist->RemoveDirectCallback(this);
1722 if (theApp->uploadqueue->IsDownloading(this)) {
1995 theApp->searchlist->ProcessSharedFileList(pachPacket, nSize, this, NULL, pszDirectory);
2062 if (!theApp->CryptoAvailable())
2066 data.WriteUInt8(theApp->clientcredits->GetPubKeyLen());
2067 data.Write(theApp->clientcredits->GetPublicKey(), theApp->clientcredits->GetPubKeyLen());
2084 if (!theApp->CryptoAvailable()) {
2106 if (::IsLowID(theApp->GetED2KID())) {
2111 ChallengeIP = theApp->GetED2KID();
2118 uint8 siglen = theApp->clientcredits->CreateSignature(credits, achBuffer, 250, ChallengeIP, byChaIPKind );
2141 theApp->clientlist->AddTrackClient(this);
2148 if (!theApp->CryptoAvailable())
2185 if (!theApp->CryptoAvailable())
2204 if (theApp->clientcredits->VerifyIdent(credits, pachPacket+1, pachPacket[0], GetIP(), byChaIPKind ) ) {
2218 if (theApp->CryptoAvailable()){
2354 if (theApp->GetPublicIP(true) == 0 && !IsLowID(dwIP) ) {
2355 theApp->SetPublicIP(dwIP);
2418 theApp->clientlist->UpdateClientID( this, nUserID );
2426 theApp->clientlist->UpdateClientIP( this, val );
2438 theApp->clientlist->UpdateClientHash( this, userhash );
2610 return credits ? credits->GetScoreRatio(GetIP(), theApp->CryptoAvailable()) : 0;
2617 CServer* cserver = theApp->serverlist->GetServerByAddress(
2630 return (thePrefs::IsClientCryptLayerSupported() && SupportsCryptLayer() && theApp->GetPublicIP() != 0
2647 && theApp->amuledlg->m_chatwnd->IsIdValid(id)) {
2669 CCaptchaDialog * dialog = new CCaptchaDialog(theApp->amuledlg, imgCaptcha, id);
2687 && theApp->amuledlg->m_chatwnd->IsIdValid(id)) {
2690 theApp->amuledlg->m_chatwnd->ShowCaptchaResult(id, nStatus == 0);
2801 theApp->amuledlg->m_chatwnd->EndSession(GUI_ID(GetIP(),GetUserPort()));
2844 const unsigned folderCount = theApp->glob_prefs->shareddir_list.size();
2846 foldersToSend.push_back(theApp->glob_prefs->shareddir_list[i]);
2850 for (unsigned i = 0; i < theApp->glob_prefs->GetCatCount(); ++i) {
2851 foldersToSend.push_back(theApp->glob_prefs->GetCategory(i)->path);
2866 tempfile.WriteString( theApp->sharedfiles->GetPublicSharedDirName(*it), GetUnicodeSupport() );
2885 int iQueuedFiles = theApp->downloadqueue->GetFileCount();
2887 CPartFile* pFile = theApp->downloadqueue->GetFileByIndex(i);
2895 const CPath *sharedDir = theApp->sharedfiles->GetDirForPublicSharedDirName(strReqDir);
2897 theApp->sharedfiles->GetSharedFilesByDirectory(sharedDir->GetRaw(), list);
2971 Kademlia::CKademlia::GetUDPListener()->SendPacket(testPacket1, KADEMLIA2_FIREWALLUDP, wxUINT32_SWAP_ALWAYS(GetConnectIP()), remoteInternPort, Kademlia::CKadUDPKey(senderKey, theApp->GetPublicIP(false)), NULL);
2979 Kademlia::CKademlia::GetUDPListener()->SendPacket(testPacket2, KADEMLIA2_FIREWALLUDP, wxUINT32_SWAP_ALWAYS(GetConnectIP()), remoteExternPort, Kademlia::CKadUDPKey(senderKey, theApp->GetPublicIP(false)), NULL);