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


The Have packet payload contains a 4 byte big-endian integer specifying the index of the piece the peer just downloaded and verified.
Definition at line 38 of file Have.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. | |
| Have (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 |
| Have packet's private data. More... | |
|
|
|
|
|
|
|
|
Virtual copy constructor.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
Getter for the packet field pieceIndex.
|
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. |
|
|
Setter for the packet field pieceIndex.
|
|
|
Writes the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. |