#include <GgepBlock.h> [code]
GgepBlock implements GGEP extension block specified in Gnutella Generic Extension Protocol (GGEP) v0.5 available at: http://rfc-gnutella.sourceforge.net/src/GnutellaGenericExtensionProtocol.0.51.html
GgepBlock is a simple list of Ggep objects. GgepBlock objects can be compared, assigned, copied, extensions could be added or accessed.
GgepBlocks can be serialized in Gnutella packet format using BinaryReader::readGgepBlock() and BinaryWriter::writeGgepBlock().
Definition at line 49 of file GgepBlock.h.
Public Types | |
| typedef QList< const Ggep * > | Extensions |
Public Member Functions | |
| GgepBlock () | |
| Construct an empty GgepBlock. | |
| GgepBlock (const GgepBlock &block) | |
| Copy ctor. | |
| ~GgepBlock () | |
| GgepBlock & | operator= (const GgepBlock &block) |
| bool | operator== (const GgepBlock &block) const |
| bool | operator!= (const GgepBlock &block) const |
| GgepBlock & | addExtension (const Ggep &extension) |
| Adds a copy of extension to the internal list. | |
| Extensions | extensions () const |
| Returns a list of pointers to the stored Ggep objects. | |
Static Public Attributes | |
| static const uchar | MagicByte = uchar (0xC3) |
Private Member Functions | |
| void | deleteExtensions () |
| Deletes all stored Ggep objects. | |
Private Attributes | |
| Extensions | extensions_ |
|
|
Definition at line 52 of file GgepBlock.h. |
|
|
Construct an empty GgepBlock.
Definition at line 29 of file GgepBlock.cpp. |
|
|
Copy ctor.
Definition at line 35 of file GgepBlock.cpp. |
|
|
Definition at line 74 of file GgepBlock.cpp. |
|
|
Adds a copy of extension to the internal list.
Definition at line 88 of file GgepBlock.cpp. |
|
|
Deletes all stored Ggep objects.
Definition at line 80 of file GgepBlock.cpp. |
|
|
Returns a list of pointers to the stored Ggep objects.
Definition at line 107 of file GgepBlock.cpp. |
|
|
Definition at line 69 of file GgepBlock.cpp. |
|
|
Definition at line 42 of file GgepBlock.cpp. |
|
|
Definition at line 58 of file GgepBlock.cpp. |
|
|
Definition at line 69 of file GgepBlock.h. |
|
|
Definition at line 54 of file GgepBlock.h. |