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


The RejectRequest packet is used to notify a peer that ist Request cannot be fulfilled.
Definition at line 40 of file RejectRequest.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. | |
| RejectRequest (quint32 pieceIndex=0, quint32 startOffset=0, quint32 bytesCount=0) | |
| quint32 | pieceIndex () const |
| Getter for the packet field pieceIndex. | |
| void | setPieceIndex (quint32) |
| Setter for the packet field pieceIndex. | |
| quint32 | startOffset () const |
| Getter for the packet field startOffset. | |
| void | setStartOffset (quint32) |
| Setter for the packet field startOffset. | |
| quint32 | bytesCount () const |
| Getter for the packet field bytesCount. | |
| void | setBytesCount (quint32) |
| Setter for the packet field bytesCount. | |
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 = 12 } |
Classes | |
| class | Data |
| RejectRequest packet's private data. More... | |
|
|
Definition at line 82 of file RejectRequest.h. |
|
||||||||||||||||
|
Definition at line 40 of file RejectRequest.cpp. |
|
|
Getter for the packet field bytesCount.
Definition at line 105 of file RejectRequest.h. |
|
|
Virtual copy constructor.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 34 of file RejectRequest.cpp. |
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 28 of file RejectRequest.cpp. |
|
|
Getter for the packet field pieceIndex.
Definition at line 89 of file RejectRequest.h. |
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 50 of file RejectRequest.cpp. |
|
|
Setter for the packet field bytesCount.
Definition at line 109 of file RejectRequest.h. |
|
|
Setter for the packet field pieceIndex.
Definition at line 93 of file RejectRequest.h. |
|
|
Setter for the packet field startOffset.
Definition at line 101 of file RejectRequest.h. |
|
|
Getter for the packet field startOffset.
Definition at line 97 of file RejectRequest.h. |
|
|
Writes the packet's payload fields.
Implements Protocols::BitTorrent::Packets::PacketBase. Definition at line 59 of file RejectRequest.cpp. |