#include <LocalSearch.h>
Public Member Functions | |
CLocalSearch (CQuerySearch *pSearch, CNeighbour *pNeighbour, BOOL bWrapped=FALSE) | |
CLocalSearch (CQuerySearch *pSearch, SOCKADDR_IN *pEndpoint) | |
CLocalSearch (CQuerySearch *pSearch, CBuffer *pBuffer, PROTOCOLID nProtocol=PROTOCOL_G1) | |
virtual | ~CLocalSearch () |
int | Execute (int nMaximum=-1) |
void | WriteVirtualTree () |
Protected Member Functions | |
int | ExecuteSharedFiles (int nMaximum) |
BOOL | AddHit (CLibraryFile *pFile, int nIndex) |
BOOL | AddHitG1 (CLibraryFile *pFile, int nIndex) |
BOOL | AddHitG2 (CLibraryFile *pFile, int nIndex) |
int | ExecutePartialFiles (int nMaximum) |
void | AddHit (CDownload *pDownload, int nIndex) |
void | CreatePacket (int nCount) |
void | CreatePacketG1 (int nCount) |
void | CreatePacketG2 () |
void | AddMetadata (CSchema *pSchema, CXMLElement *pXML, int nIndex) |
CString | GetXMLString () |
void | WriteTrailer () |
void | WriteTrailerG1 () |
void | WriteTrailerG2 () |
void | DispatchPacket () |
void | DestroyPacket () |
CG2Packet * | AlbumToPacket (CAlbumFolder *pFolder) |
CG2Packet * | FoldersToPacket () |
CG2Packet * | FolderToPacket (CLibraryFolder *pFolder) |
Protected Attributes | |
CQuerySearch * | m_pSearch |
CNeighbour * | m_pNeighbour |
SOCKADDR_IN * | m_pEndpoint |
CBuffer * | m_pBuffer |
DWORD | m_nTTL |
GGUID | m_pGUID |
PROTOCOLID | m_nProtocol |
BOOL | m_bWrapped |
CPacket * | m_pPacket |
CMapPtrToPtr | m_pSchemas |
|
Definition at line 71 of file LocalSearch.cpp. References CSettings::Gnutella1, m_bWrapped, CNeighbour::m_nProtocol, m_nProtocol, m_nTTL, m_pBuffer, m_pEndpoint, m_pNeighbour, m_pPacket, m_pSearch, CSettings::sGnutella1::MaximumTTL, NULL, PROTOCOL_G1, and Settings. |
|
Definition at line 85 of file LocalSearch.cpp. References CSettings::Gnutella1, m_bWrapped, m_nProtocol, m_nTTL, m_pBuffer, m_pEndpoint, m_pNeighbour, m_pPacket, m_pSearch, CSettings::sGnutella1::MaximumTTL, NULL, PROTOCOL_G2, and Settings. |
|
Definition at line 97 of file LocalSearch.cpp. References CSettings::Gnutella1, m_bWrapped, m_nProtocol, m_nTTL, m_pBuffer, m_pEndpoint, m_pNeighbour, m_pPacket, m_pSearch, CSettings::sGnutella1::MaximumTTL, NULL, and Settings. |
|
Definition at line 109 of file LocalSearch.cpp. References GetXMLString(). |
|
|
Definition at line 184 of file LocalSearch.cpp. References AddHitG1(), AddHitG2(), CSettings::sGnutella1::EnableToday, CSettings::Gnutella1, m_nProtocol, m_pPacket, CShareazaApp::Message(), MSG_ERROR, NULL, PROTOCOL_G1, Settings, and theApp. Referenced by ExecutePartialFiles(), and ExecuteSharedFiles(). |
|
Definition at line 205 of file LocalSearch.cpp. References AddMetadata(), CSettings::Gnutella1, CED2K::HashToString(), CTigerNode::HashToString(), CSHA::HashToString(), CSettings::sGnutella1::HitQueueLimit, CQuerySearch::m_bWantXML, m_pPacket, m_pSearch, NULL, PROTOCOL_HTTP, CSettings::sGnutella1::QueryHitUTF8, CUploadQueues::QueueRank(), Settings, UploadQueues, CPacket::WriteByte(), CPacket::WriteLongLE(), CPacket::WriteString(), and CPacket::WriteStringUTF8(). Referenced by AddHit(). |
|
|
Definition at line 789 of file LocalSearch.cpp. References CXMLElement::AddAttribute(), CXMLNode::GetParent(), CSchema::Instantiate(), m_pSchemas, and NULL. Referenced by AddHitG1(). |
|
|
Definition at line 674 of file LocalSearch.cpp. References CreatePacketG1(), CreatePacketG2(), GetXMLString(), m_nProtocol, m_pPacket, m_pSchemas, NULL, and PROTOCOL_G1. Referenced by ExecuteSharedFiles(). |
|
Definition at line 686 of file LocalSearch.cpp. References CSettings::Connection, G1_PACKET_HIT, CUploads::m_bStable, CUploads::m_nBestSpeed, m_nTTL, m_pGUID, CNetwork::m_pHost, m_pPacket, Network, CG1Packet::New(), CSettings::sConnection::OutSpeed, Settings, Uploads, CPacket::WriteByte(), CPacket::WriteLongLE(), and CPacket::WriteShortLE(). Referenced by CreatePacket(). |
|
|
Definition at line 983 of file LocalSearch.cpp. References m_pPacket, NULL, and CPacket::Release(). Referenced by ExecuteSharedFiles(). |
|
Definition at line 949 of file LocalSearch.cpp. References Datagrams, G2_PACKET_HIT_WRAP, m_bWrapped, m_pBuffer, m_pEndpoint, m_pNeighbour, m_pPacket, CShareazaApp::Message(), MSG_DEFAULT, CG2Packet::New(), NULL, CPacket::Release(), CDatagrams::Send(), CNeighbour::Send(), theApp, and CPacket::ToBuffer(). Referenced by ExecutePartialFiles(), ExecuteSharedFiles(), and WriteVirtualTree(). |
|
Definition at line 117 of file LocalSearch.cpp. References CNetwork::CreateID(), ExecutePartialFiles(), ExecuteSharedFiles(), CUploadQueues::GetQueueRemaining(), CSettings::Gnutella, CQuerySearch::m_bWantPFS, m_nProtocol, m_pBuffer, CQuerySearch::m_pGUID, m_pGUID, m_pSearch, CSettings::sGnutella::MaxHits, Network, NULL, PROTOCOL_G2, Settings, and UploadQueues. Referenced by CG2Neighbour::OnQuery(), CG1Neighbour::OnQuery(), CDatagrams::OnQuery(), and CUploadTransferHTTP::RequestHostBrowse(). |
|
|
Definition at line 151 of file LocalSearch.cpp. References AddHit(), CreatePacket(), DestroyPacket(), DispatchPacket(), CSettings::Gnutella, CSettings::sGnutella::HitsPerPacket, Library, m_pSearch, CLibrary::m_pSection, NULL, CLibrary::Search(), Settings, and WriteTrailer(). Referenced by Execute(). |
|
Definition at line 1063 of file LocalSearch.cpp. References FolderToPacket(), CLibraryFolders::GetFolderIterator(), CLibraryFolders::GetNextFolder(), LibraryFolders, CG2Packet::New(), and CG2Packet::WritePacket(). Referenced by WriteVirtualTree(). |
|
Definition at line 1079 of file LocalSearch.cpp. References CG2Packet::GetStringLen(), CLibraryFile::m_nIndex, CG2Packet::New(), NULL, CPacket::WriteLongBE(), CG2Packet::WritePacket(), and CG2Packet::WriteString(). Referenced by FoldersToPacket(). |
|
Definition at line 813 of file LocalSearch.cpp. References CXMLElement::DeleteAttribute(), CXMLElement::Detach(), and m_pSchemas. Referenced by CreatePacket(), WriteTrailerG1(), and ~CLocalSearch(). |
|
Definition at line 845 of file LocalSearch.cpp. References m_nProtocol, m_pPacket, NULL, PROTOCOL_G1, WriteTrailerG1(), and WriteTrailerG2(). Referenced by ExecuteSharedFiles(). |
|
|
Definition at line 937 of file LocalSearch.cpp. References m_pGUID, m_pPacket, CPacket::Write(), and CPacket::WriteByte(). Referenced by ExecutePartialFiles(), and WriteTrailer(). |
|
Definition at line 995 of file LocalSearch.cpp. References AlbumToPacket(), DispatchPacket(), FoldersToPacket(), CLibrary::GetAlbumRoot(), Library, m_pPacket, CLibrary::m_pSection, and NULL. Referenced by CUploadTransferHTTP::RequestHostBrowse(). |
|
Definition at line 58 of file LocalSearch.h. Referenced by CLocalSearch(), and DispatchPacket(). |
|
Definition at line 57 of file LocalSearch.h. Referenced by AddHit(), CLocalSearch(), CreatePacket(), Execute(), ExecutePartialFiles(), and WriteTrailer(). |
|
Definition at line 55 of file LocalSearch.h. Referenced by CLocalSearch(), and CreatePacketG1(). |
|
Definition at line 54 of file LocalSearch.h. Referenced by CLocalSearch(), DispatchPacket(), and Execute(). |
|
Definition at line 53 of file LocalSearch.h. Referenced by CLocalSearch(), and DispatchPacket(). |
|
Definition at line 56 of file LocalSearch.h. Referenced by CreatePacketG1(), Execute(), and WriteTrailerG2(). |
|
Definition at line 52 of file LocalSearch.h. Referenced by CLocalSearch(), and DispatchPacket(). |
|
Definition at line 60 of file LocalSearch.h. Referenced by AddHit(), AddHitG1(), AddHitG2(), CLocalSearch(), CreatePacket(), CreatePacketG1(), CreatePacketG2(), DestroyPacket(), DispatchPacket(), ExecutePartialFiles(), WriteTrailer(), WriteTrailerG1(), WriteTrailerG2(), and WriteVirtualTree(). |
|
Definition at line 61 of file LocalSearch.h. Referenced by AddMetadata(), CreatePacket(), and GetXMLString(). |
|
Definition at line 51 of file LocalSearch.h. Referenced by AddHit(), AddHitG1(), AddHitG2(), CLocalSearch(), Execute(), ExecutePartialFiles(), and ExecuteSharedFiles(). |