ED2KPacket::FoundSources Class Reference

This is server's response to ReqSources packet, and contains the list of sources for the given hash. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::FoundSources:

ED2KPacket::Packet List of all members.

Public Member Functions

 FoundSources (std::istream &i)
uint32_t getCount () const
IPV4Address getSource (uint32_t n) const
Hash< ED2KHash > getHash () const
uint32_t getLowCount () const

Private Attributes

Hash< ED2KHash > m_hash
 File these sources belong to.
std::vector< IPV4Address > m_sources
 Sources list.
uint32_t m_lowCount
 # of LowID sources found

Detailed Description

This is server's response to ReqSources packet, and contains the list of sources for the given hash.

Definition at line 374 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::FoundSources::FoundSources std::istream &  i  ) 
 

Definition at line 488 of file packets.cpp.

References isLowId(), m_hash, m_lowCount, and m_sources.


Member Function Documentation

uint32_t ED2KPacket::FoundSources::getCount  )  const [inline]
 

Definition at line 377 of file packets.h.

References m_sources.

IPV4Address ED2KPacket::FoundSources::getSource uint32_t  n  )  const [inline]
 

Definition at line 378 of file packets.h.

References m_sources.

Hash<ED2KHash> ED2KPacket::FoundSources::getHash  )  const [inline]
 

Definition at line 379 of file packets.h.

References m_hash.

uint32_t ED2KPacket::FoundSources::getLowCount  )  const [inline]
 

Definition at line 380 of file packets.h.

References m_lowCount.


Member Data Documentation

Hash<ED2KHash> ED2KPacket::FoundSources::m_hash [private]
 

File these sources belong to.

Definition at line 382 of file packets.h.

Referenced by FoundSources(), and getHash().

std::vector<IPV4Address> ED2KPacket::FoundSources::m_sources [private]
 

Sources list.

Definition at line 383 of file packets.h.

Referenced by FoundSources(), getCount(), and getSource().

uint32_t ED2KPacket::FoundSources::m_lowCount [private]
 

# of LowID sources found

Definition at line 384 of file packets.h.

Referenced by FoundSources(), and getLowCount().


The documentation for this class was generated from the following files: