ED2KPacket::GlobGetSources Class Reference

Global source aquisition; sent via UDP, and contains one or more file hashes, for which we wish to get sources for. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::GlobGetSources:

ED2KPacket::Packet List of all members.

Public Member Functions

 GlobGetSources (bool sendSize)
 sendSize Whether to also include filesizes
void addHash (const Hash< ED2KHash > &hash, uint32_t fileSize)
 operator std::string ()

Private Attributes

std::vector< std::pair< Hash<
ED2KHash >, uint32_t > > 
m_hashList
bool m_sendSize
 Whether to include filesizes in the packet.

Detailed Description

Global source aquisition; sent via UDP, and contains one or more file hashes, for which we wish to get sources for.

Definition at line 391 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::GlobGetSources::GlobGetSources bool  sendSize  ) 
 

sendSize Whether to also include filesizes

Definition at line 503 of file packets.cpp.


Member Function Documentation

void ED2KPacket::GlobGetSources::addHash const Hash< ED2KHash > &  hash,
uint32_t  fileSize
[inline]
 

Definition at line 395 of file packets.h.

References m_hashList.

Referenced by ServerList::udpGetSources().

ED2KPacket::GlobGetSources::operator std::string  ) 
 

Definition at line 504 of file packets.cpp.

References m_hashList, m_sendSize, OP_GLOBGETSOURCES, and PR_ED2K.


Member Data Documentation

std::vector<std::pair<Hash<ED2KHash>, uint32_t> > ED2KPacket::GlobGetSources::m_hashList [private]
 

Definition at line 400 of file packets.h.

Referenced by addHash(), and operator std::string().

bool ED2KPacket::GlobGetSources::m_sendSize [private]
 

Whether to include filesizes in the packet.

Definition at line 401 of file packets.h.

Referenced by operator std::string().


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