ED2KPacket::ReaskFilePing Class Reference

Used to ping sources every 20 minutes to verify that we are still queued for our requested file. More...

#include <packets.h>

Inheritance diagram for ED2KPacket::ReaskFilePing:

ED2KPacket::Packet List of all members.

Public Member Functions

 ReaskFilePing (const Hash< ED2KHash > &h, const PartData *pd, uint16_t srcCnt, uint8_t udpVersion)
 ReaskFilePing (std::istream &i)
 operator std::string ()
Hash< ED2KHash > getHash () const
std::vector< bool > getPartMap () const
uint16_t getSrcCnt () const

Private Attributes

Hash< ED2KHash > m_hash
 Filehash.
std::vector< bool > m_partMap
 Availability partmap.
uint16_t m_srcCnt
 full sources count
uint8_t m_udpVersion
 Client udp version.

Detailed Description

Used to ping sources every 20 minutes to verify that we are still queued for our requested file.

By default the packet contains only filehash, but UDPv3 adds complete source count, UDPv4 adds full extended info, as in ReqFile packet (e.g. partmap).

Note that if you do not send this packet via UDP to eMules at least once per hour, you will be dropped from queues.

Definition at line 1006 of file packets.h.


Constructor & Destructor Documentation

ED2KPacket::ReaskFilePing::ReaskFilePing const Hash< ED2KHash > &  h,
const PartData *  pd,
uint16_t  srcCnt,
uint8_t  udpVersion
 

Definition at line 1283 of file packets.cpp.

References ED2KPacket::makePartMap().

ED2KPacket::ReaskFilePing::ReaskFilePing std::istream &  i  ) 
 

Definition at line 1288 of file packets.cpp.

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


Member Function Documentation

ED2KPacket::ReaskFilePing::operator std::string  ) 
 

Definition at line 1298 of file packets.cpp.

References m_hash, m_partMap, m_srcCnt, m_udpVersion, OP_REASKFILEPING, PR_EMULE, and ED2KPacket::writePartMap().

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

Definition at line 1015 of file packets.h.

References m_hash.

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

Definition at line 1016 of file packets.h.

References m_partMap.

uint16_t ED2KPacket::ReaskFilePing::getSrcCnt  )  const [inline]
 

Definition at line 1017 of file packets.h.

References m_srcCnt.


Member Data Documentation

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

Filehash.

Definition at line 1019 of file packets.h.

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

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

Availability partmap.

Definition at line 1020 of file packets.h.

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

uint16_t ED2KPacket::ReaskFilePing::m_srcCnt [private]
 

full sources count

Definition at line 1021 of file packets.h.

Referenced by getSrcCnt(), operator std::string(), and ReaskFilePing().

uint8_t ED2KPacket::ReaskFilePing::m_udpVersion [private]
 

Client udp version.

Definition at line 1022 of file packets.h.

Referenced by operator std::string().


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