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


The response to a Ping. Contains the address of one or more connected Gnutella servents and information regarding the amount of data it is making available to the network.
Definition at line 40 of file Pong.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. | |
| Pong (quint16 port=0, const QHostAddress &ipAddress=QHostAddress(), quint32 sharedFiles=0, quint32 sharedKiloBytes=0, const GgepBlock &ggepBlock=GgepBlock()) | |
| quint16 | port () const |
| Getter for the packet field port. | |
| void | setPort (quint16) |
| Setter for the packet field port. | |
| QHostAddress | ipAddress () const |
| Getter for the packet field ipAddress. | |
| void | setIpAddress (const QHostAddress &) |
| Setter for the packet field ipAddress. | |
| quint32 | sharedFiles () const |
| Getter for the packet field sharedFiles. | |
| void | setSharedFiles (quint32) |
| Setter for the packet field sharedFiles. | |
| quint32 | sharedKiloBytes () const |
| Getter for the packet field sharedKiloBytes. | |
| void | setSharedKiloBytes (quint32) |
| Setter for the packet field sharedKiloBytes. | |
| GgepBlock | ggepBlock () const |
| Getter for the packet field ggepBlock. | |
| void | setGgepBlock (const GgepBlock &) |
| Setter for the packet field ggepBlock. | |
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 |
| Pong packet's private data. More... | |
|
||||||||||||||||||||||||
|
|
|
|
Virtual copy constructor.
Implements Protocols::Gnutella::Packets::PacketBase. |
|
|
Getter for the packet field ggepBlock.
|
|
|
Getter for the packet field ipAddress.
|
|
|
Returns the name of the PacketBase type the dynamic object belongs to.
Implements Protocols::Gnutella::Packets::PacketBase. |
|
|
Getter for the packet field port.
|
|
|
|
|
|
Reads the packet's payload fields.
Implements Protocols::Gnutella::Packets::PacketBase. |
|
|
Setter for the packet field ggepBlock.
|
|
|
Setter for the packet field ipAddress.
|
|
|
Setter for the packet field port.
|
|
|
Setter for the packet field sharedFiles.
|
|
|
Setter for the packet field sharedKiloBytes.
|
|
|
Getter for the packet field sharedFiles.
|
|
|
Getter for the packet field sharedKiloBytes.
|
|
|
Writes the packet's payload fields.
Implements Protocols::Gnutella::Packets::PacketBase. |