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


The BitField packet is only ever sent as the first message. Its payload is a bitfield with where each bit indicates where the corresponding piece is available (bit is 1) or is missing (bit is 0).
Definition at line 41 of file BitField.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. | |
| BitField (const QByteArray &bitField=QByteArray()) | |
| QByteArray | bitField () const |
| Getter for the packet field bitField. | |
| void | setBitField (const QByteArray &) |
| Setter for the packet field bitField. | |
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 |
| BitField packet's private data. More... | |
|
|
Definition at line 40 of file BitField.cpp. |
|
|
Getter for the packet field bitField.
Definition at line 76 of file BitField.h. |
|
|
Virtual copy constructor.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 34 of file BitField.cpp. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 28 of file BitField.cpp. |
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 48 of file BitField.cpp. |
|
|
Setter for the packet field bitField.
Definition at line 80 of file BitField.h. |
|
|
Writes the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 55 of file BitField.cpp. |