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


A mechanism that allows a firewalled servent to contribute file-based data to the network.
Definition at line 38 of file Push.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. | |
| Push (QUuid serventId=QUuid(), quint32 fileIndex=0, const QHostAddress &ipAddress=QHostAddress(), quint16 port=0, const GgepBlock &ggepBlock=GgepBlock()) | |
| QUuid | serventId () const |
| Getter for the packet field serventId. | |
| void | setServentId (QUuid) |
| Setter for the packet field serventId. | |
| quint32 | fileIndex () const |
| Getter for the packet field fileIndex. | |
| void | setFileIndex (quint32) |
| Setter for the packet field fileIndex. | |
| QHostAddress | ipAddress () const |
| Getter for the packet field ipAddress. | |
| void | setIpAddress (const QHostAddress &) |
| Setter for the packet field ipAddress. | |
| quint16 | port () const |
| Getter for the packet field port. | |
| void | setPort (quint16) |
| Setter for the packet field port. | |
| 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 |
| Push packet's private data. More... | |
|
||||||||||||||||||||||||
|
|
|
|
Virtual copy constructor.
Implements Protocols::Gnutella::Packets::PacketBase. |
|
|
Getter for the packet field fileIndex.
|
|
|
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. |
|
|
Getter for the packet field serventId.
|
|
|
Setter for the packet field fileIndex.
|
|
|
Setter for the packet field ggepBlock.
|
|
|
Setter for the packet field ipAddress.
|
|
|
Setter for the packet field port.
|
|
|
Setter for the packet field serventId.
|
|
|
Writes the packet's payload fields.
Implements Protocols::Gnutella::Packets::PacketBase. |