ED2KPacket::ReqFile Class Reference

ReqFile indicates that the sender wishes us to to upload the file to him. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ReqFile:

ED2KPacket::Packet List of all members.

Public Member Functions

 ReqFile (const Hash< ED2KHash > &h, const PartData *pd, uint16_t srcCnt=0)
 ReqFile (std::istream &i)
 operator std::string ()
Hash< ED2KHash > getHash () const

Private Attributes

Hash< ED2KHash > m_hash
 File hash.
std::vector< bool > m_partMap
 ExtReqv1: part map.
uint16_t m_srcCnt
 ExtReqv2: num COMPLETE sources.

Detailed Description

ReqFile indicates that the sender wishes us to to upload the file to him.

Thus he sends ReqFile, and expects FileName and (optionally) FileDesc answers from us before proceeding.

eMule extends this request by adding partmap and complete source counts if client supports extended requests.

Definition at line 566 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ReqFile::ReqFile const Hash< ED2KHash > &  h,
const PartData *  pd,
uint16_t  srcCnt = 0
 

Definition at line 781 of file packets.cpp.

References m_partMap, and ED2KPacket::makePartMap().

ED2KPacket::ReqFile::ReqFile std::istream &  i  ) 
 

Definition at line 787 of file packets.cpp.

References m_hash, m_partMap, m_srcCnt, and ED2KPacket::readPartMap().


Member Function Documentation

ED2KPacket::ReqFile::operator std::string  ) 
 

Definition at line 795 of file packets.cpp.

References m_hash, m_partMap, m_srcCnt, ED2KPacket::Packet::makePacket(), OP_REQFILE, and ED2KPacket::writePartMap().

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

Definition at line 572 of file packets.h.

References m_hash.


Member Data Documentation

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

File hash.

Definition at line 574 of file packets.h.

Referenced by getHash(), operator std::string(), and ReqFile().

std::vector<bool> ED2KPacket::ReqFile::m_partMap [private]
 

ExtReqv1: part map.

Definition at line 575 of file packets.h.

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

uint16_t ED2KPacket::ReqFile::m_srcCnt [private]
 

ExtReqv2: num COMPLETE sources.

Definition at line 576 of file packets.h.

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


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