ED2KPacket::FileStatus Class Reference

Finalizing the upload request sequence, this packet is sent by the uploading client to indicate that the file is ready to be uploaded. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::FileStatus:

ED2KPacket::Packet List of all members.

Public Member Functions

 FileStatus (const Hash< ED2KHash > &hash, const PartData *pd)
 FileStatus (std::istream &i)
 operator std::string ()
std::vector< bool > getPartMap () const
Hash< ED2KHash > getHash () const

Private Attributes

Hash< ED2KHash > m_hash
std::vector< bool > m_partMap

Detailed Description

Finalizing the upload request sequence, this packet is sent by the uploading client to indicate that the file is ready to be uploaded.

It also contains the part map of the file (if it is partial). Note that sending the partmap is optional, and if not sent, the receiver assumes that the entire file is available. Thus partmap is only sent if the file is partial.

Definition at line 655 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::FileStatus::FileStatus const Hash< ED2KHash > &  hash,
const PartData *  pd
 

Definition at line 870 of file packets.cpp.

References ED2KPacket::makePartMap().

ED2KPacket::FileStatus::FileStatus std::istream &  i  ) 
 

Definition at line 882 of file packets.cpp.

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


Member Function Documentation

ED2KPacket::FileStatus::operator std::string  ) 
 

Definition at line 874 of file packets.cpp.

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

std::vector<bool> ED2KPacket::FileStatus::getPartMap  )  const [inline]
 

Definition at line 661 of file packets.h.

References m_partMap.

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

Definition at line 662 of file packets.h.

References m_hash.


Member Data Documentation

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

Definition at line 664 of file packets.h.

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

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

Definition at line 665 of file packets.h.

Referenced by FileStatus(), getPartMap(), and operator std::string().


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