#include <AllowedFast.h> [code]
Inherits Protocols::BitTorrent::Packets::PacketBase.
Inheritance diagram for Protocols::BitTorrent::Packets::AllowedFast:


The AllowedFast packet indicates the index of a piece which the receiving peer may request even if choked.
Definition at line 40 of file AllowedFast.h.
Public Member Functions | |
| QString | name () const |
| Returns the name of the PacketBase type the dynamic object belongs to. | |
| auto_ptr< DataBase > | copy () const |
| Virtual copy constructor. | |
| AllowedFast (quint32 pieceIndex=0) | |
| quint32 | pieceIndex () const |
| Getter for the packet field pieceIndex. | |
| void | setPieceIndex (quint32) |
| Setter for the packet field pieceIndex. | |
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) | |
Private Types | |
| enum | Constants { PayloadLength = 4 } |
Classes | |
| class | Data |
| AllowedFast packet's private data. More... | |
|
|
Definition at line 74 of file AllowedFast.h. |
|
|
Definition at line 40 of file AllowedFast.cpp. |
|
|
Virtual copy constructor.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 34 of file AllowedFast.cpp. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 28 of file AllowedFast.cpp. |
|
|
Getter for the packet field pieceIndex.
Definition at line 81 of file AllowedFast.h. |
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 48 of file AllowedFast.cpp. |
|
|
Setter for the packet field pieceIndex.
Definition at line 85 of file AllowedFast.h. |
|
|
Writes the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 55 of file AllowedFast.cpp. |