Classes | |
| class | BinaryReader |
| Helper to read Gnutella packet fields form a raw buffer (QByteArray). More... | |
| class | BinaryWriter |
| Helper to write Gnutella packet fields form a raw buffer (QByteArray). More... | |
| class | PacketBase |
| Base class for all Gnutella packets. More... | |
| class | Ping |
| Implements the packet Ping. More... | |
| class | Pong |
| Implements the packet Pong. More... | |
| class | Push |
| Implements the packet Push. More... | |
| class | Query |
| Implements the packet Query. More... | |
| class | QueryHits |
| Implements the packet QueryHits. More... | |
Namespaces | |
| namespace | Extensions |
| namespace | Testing |
Typedefs | |
| typedef Protocols::Generics::PacketBase | GenericsPacketBase |
| typedef Protocols::Generics::PacketFactory | PacketFactoryBase |
| typedef Utils::Encodings::BinaryReader | BinaryReaderBase |
| typedef Utils::Encodings::BinaryWriter | BinaryWriterBase |
Enumerations | |
| enum | PacketType { PingPacket = 0x00, PongPacket = 0x01, QueryPacket = 0x80, QueryHitsPacket = 0x81, PushPacket = 0x40, ByePacket = 0x02, IbmcPacket = 0x10, QueryRoutingPacket = 0x30, OpenVendorPacket = 0x31, StandardVendorPacket = 0x32 } |
| enum | PacketConstants { DefaultHops = 0, DefaultTtl = 5, MaximalTtl = 7, HeaderLength = 23, MaximalPayloadLength = 0x00010000 - HeaderLength, MaximalQueryPayloadLength = 0x00001000 - HeaderLength, MaximalPacketLength = HeaderLength + MaximalPayloadLength } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 71 of file PacketBase.h. |
|
|
Defines all known Gnutella descriptors (packets). The payloadDescriptor field of a Gnutella packet header determines the type of the current packet and therefore the contents of its payload.
Definition at line 39 of file PacketBase.h. |