Protocols::BitTorrent::Packets::HaveNone Class Reference

#include <HaveNone.h> [code]

Inherits Protocols::BitTorrent::Packets::PacketBase.

Inheritance diagram for Protocols::BitTorrent::Packets::HaveNone:

Inheritance graph
[legend]
Collaboration diagram for Protocols::BitTorrent::Packets::HaveNone:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements the packet HaveNone.

The HaveNone packet contains no payload. It could be sent right after handshaking to indicate that a peer has no pieces available.

Note:
Should only be sent or received over if Fast Extension was negotiated.

Definition at line 40 of file HaveNone.h.

Public Member Functions

QString name () const
 Returns the name of the PacketBase type the dynamic object belongs to.
auto_ptr< DataBasecopy () const
 Virtual copy constructor.
 HaveNone ()

Protected Member Functions

void readPayload (BinaryReader &)
 Reads the packet's payload fields.
void writePayload (BinaryWriter &) const
 Writes the packet's payload fields.
 Q_DECLARE_SHARED_DATA (Data)

Classes

class  Data
 HaveNone packet's private data. More...


Constructor & Destructor Documentation

HaveNone::HaveNone  ) 
 

Definition at line 40 of file HaveNone.cpp.


Member Function Documentation

auto_ptr< DataBase > HaveNone::copy  )  const [virtual]
 

Virtual copy constructor.

Implements Protocols::BitTorrent::Packets::PacketBase.

Definition at line 34 of file HaveNone.cpp.

QString HaveNone::name  )  const [virtual]
 

Returns the name of the PacketBase type the dynamic object belongs to.

Todo:
Better use PacketId (which possibly contains the ProtocolId)?

Implements Protocols::BitTorrent::Packets::PacketBase.

Definition at line 28 of file HaveNone.cpp.

Protocols::BitTorrent::Packets::HaveNone::Q_DECLARE_SHARED_DATA Data   )  [protected]
 

void HaveNone::readPayload BinaryReader  )  [protected, virtual]
 

Reads the packet's payload fields.

Implements Protocols::BitTorrent::Packets::PacketBase.

Definition at line 46 of file HaveNone.cpp.

void HaveNone::writePayload BinaryWriter  )  const [protected, virtual]
 

Writes the packet's payload fields.

Implements Protocols::BitTorrent::Packets::PacketBase.

Definition at line 51 of file HaveNone.cpp.


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