#include <QueryRoutingReset.h> [code]
Inherits Gnutella::Packets::QueryRouting.
Inheritance diagram for Gnutella::Packets::QueryRoutingReset:


Definition at line 33 of file QueryRoutingReset.h.
Public Member Functions | |
| QueryRoutingReset (const QByteArray &rawHeader, const QByteArray &rawPayload) | |
| QueryRoutingReset (quint32 tableLength, quint8 infinity) | |
| ~QueryRoutingReset () | |
| QueryRoutingReset * | copy () const |
| A virtual copy contructor. | |
| QString | name () const |
| quint32 | tableLength () const |
| quint8 | infinity () const |
Static Public Member Functions | |
| static QueryRoutingReset & | castFrom (Packet &packet) |
| static const QueryRoutingReset & | castFrom (const Packet &packet) |
Protected Member Functions | |
| bool | prepareReadPayload (const QByteArray &rawPayload) |
| Verifies the structure of the rawPayload. | |
| void | readPayload (QDataStream &stream) |
| Reads the payload fields from the stream. The structure of the data in the stream is already verified by verifyPayload(). | |
| int | prepareWritePayload () const |
| Gets ready to write the payload and returns the payload length. | |
| void | writePayload (QDataStream &stream) const |
| Writes the payload fields into the stream. | |
Private Attributes | |
| Gnutella::Packets::QueryRoutingReset::Data | p |
Classes | |
| struct | Data |
|
||||||||||||
|
Creates a QueryRoutingReset object from the raw bytes in rawHeader and rawPayload. Definition at line 36 of file QueryRoutingReset.cpp. |
|
||||||||||||
|
Definition at line 42 of file QueryRoutingReset.cpp. |
|
|
Definition at line 49 of file QueryRoutingReset.cpp. |
|
|
Reimplemented from Gnutella::Packets::QueryRouting. Definition at line 37 of file QueryRoutingReset.h. |
|
|
Reimplemented from Gnutella::Packets::QueryRouting. Definition at line 36 of file QueryRoutingReset.h. |
|
|
A virtual copy contructor.
Implements Gnutella::Packets::QueryRouting. Definition at line 43 of file QueryRoutingReset.h. |
|
|
Definition at line 48 of file QueryRoutingReset.h. |
|
|
Implements Gnutella::Packets::Packet. Definition at line 45 of file QueryRoutingReset.h. |
|
|
Verifies the structure of the rawPayload. Verifies if the rawPayload can be correctly parsed by readPayload(). The function just goes over the whole rawPayload and checks if the structure of the payload is correct. Some data may be gathered and stored to ease the work of readPayload(). For example, the size of the query hit data field can only be calculated with knowledge of the payloadLength, which is not available in the QDataStream object passed to readPayload(). The size of this field is read here and stored for use later in readPayload(). Implements Gnutella::Packets::QueryRouting. Definition at line 53 of file QueryRoutingReset.cpp. |
|
|
Gets ready to write the payload and returns the payload length.
Implements Gnutella::Packets::QueryRouting. Definition at line 65 of file QueryRoutingReset.cpp. |
|
|
Reads the payload fields from the stream. The structure of the data in the stream is already verified by verifyPayload().
Implements Gnutella::Packets::QueryRouting. Definition at line 58 of file QueryRoutingReset.cpp. |
|
|
Definition at line 47 of file QueryRoutingReset.h. |
|
|
Writes the payload fields into the stream.
Implements Gnutella::Packets::QueryRouting. Definition at line 70 of file QueryRoutingReset.cpp. |
|
|
Reimplemented from Gnutella::Packets::QueryRouting. |