Protocols::BitTorrent::Packets::Unchoke Class Reference

#include <Unchoke.h> [code]

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

Inheritance diagram for Protocols::BitTorrent::Packets::Unchoke:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements the packet Unchoke.

The Unchoke packet is used to unchoke the connection.

Definition at line 37 of file Unchoke.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.
 Unchoke ()

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
 Unchoke packet's private data. More...


Constructor & Destructor Documentation

Unchoke::Unchoke  ) 
 

Definition at line 40 of file Unchoke.cpp.


Member Function Documentation

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

Virtual copy constructor.

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

Definition at line 34 of file Unchoke.cpp.

QString Unchoke::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 Unchoke.cpp.

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

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

Reads the packet's payload fields.

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

Definition at line 46 of file Unchoke.cpp.

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

Writes the packet's payload fields.

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

Definition at line 51 of file Unchoke.cpp.


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