ED2KPacket::ReaskAck Class Reference

ReaskAck is an expected response to ReaskFilePing packet, ant includes the remote queue ranking. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ReaskAck:

ED2KPacket::Packet List of all members.

Public Member Functions

 ReaskAck (const PartData *pd, uint16_t rank, uint8_t udpVersion)
 ReaskAck (std::istream &i)
 operator std::string ()
std::vector< bool > getPartMap () const
uint16_t getQR () const

Private Attributes

std::vector< bool > m_partMap
 Availability partmap.
uint16_t m_qr
 Remote queue ranking.
uint8_t m_udpVersion
 UDP version.

Detailed Description

ReaskAck is an expected response to ReaskFilePing packet, ant includes the remote queue ranking.

UDPv4 also includes partmap;

Definition at line 1040 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ReaskAck::ReaskAck const PartData *  pd,
uint16_t  rank,
uint8_t  udpVersion
 

Definition at line 1325 of file packets.cpp.

References ED2KPacket::makePartMap(), and PR_EMULE.

ED2KPacket::ReaskAck::ReaskAck std::istream &  i  ) 
 

Definition at line 1328 of file packets.cpp.

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


Member Function Documentation

ED2KPacket::ReaskAck::operator std::string  ) 
 

Definition at line 1335 of file packets.cpp.

References m_partMap, m_qr, m_udpVersion, OP_REASKACK, PR_EMULE, and ED2KPacket::writePartMap().

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

Definition at line 1046 of file packets.h.

References m_partMap.

uint16_t ED2KPacket::ReaskAck::getQR  )  const [inline]
 

Definition at line 1047 of file packets.h.

References m_qr.


Member Data Documentation

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

Availability partmap.

Definition at line 1049 of file packets.h.

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

uint16_t ED2KPacket::ReaskAck::m_qr [private]
 

Remote queue ranking.

Definition at line 1050 of file packets.h.

Referenced by getQR(), operator std::string(), and ReaskAck().

uint8_t ED2KPacket::ReaskAck::m_udpVersion [private]
 

UDP version.

Definition at line 1051 of file packets.h.

Referenced by operator std::string().


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