MCPcopy Create free account
hub / github.com/amule-project/amule / ProcessSearchAnswer

Method ProcessSearchAnswer

src/SearchList.cpp:541–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539
540
541void CSearchList::ProcessSearchAnswer(const uint8_t* in_packet, uint32_t size, bool optUTF8, uint32_t serverIP, uint16_t serverPort)
542{
543 CMemFile packet(in_packet, size);
544
545 uint32_t results = packet.ReadUInt32();
546 for (; results > 0; --results) {
547 AddToList(new CSearchFile(packet, optUTF8, m_currentSearch, serverIP, serverPort), false);
548 }
549}
550
551
552void CSearchList::ProcessUDPSearchAnswer(const CMemFile& packet, bool optUTF8, uint32_t serverIP, uint16_t serverPort)

Callers 1

ProcessPacketMethod · 0.80

Calls 1

ReadUInt32Method · 0.80

Tested by

no test coverage detected