Protocols::Gnutella::Packets Namespace Reference


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
}


Typedef Documentation

typedef Utils::Encodings::BinaryReader Protocols::Gnutella::Packets::BinaryReaderBase
 

Definition at line 49 of file Imports.h.

typedef Utils::Encodings::BinaryWriter Protocols::Gnutella::Packets::BinaryWriterBase
 

Definition at line 50 of file Imports.h.

typedef Protocols::Generics::PacketBase Protocols::Gnutella::Packets::GenericsPacketBase
 

Definition at line 47 of file Imports.h.

typedef Protocols::Generics::PacketFactory Protocols::Gnutella::Packets::PacketFactoryBase
 

Definition at line 48 of file Imports.h.


Enumeration Type Documentation

enum Protocols::Gnutella::Packets::PacketConstants
 

Enumerator:
DefaultHops 
DefaultTtl 
MaximalTtl 
HeaderLength 
MaximalPayloadLength 
MaximalQueryPayloadLength 
MaximalPacketLength 

Definition at line 71 of file PacketBase.h.

enum Protocols::Gnutella::Packets::PacketType
 

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.

Enumerator:
PingPacket  Ping packet.
PongPacket  Pong packet.
QueryPacket  Query packet.
QueryHitsPacket  Query hits packet.
PushPacket  Push packet.
ByePacket  Bye packet.
IbmcPacket  In-band control message.
QueryRoutingPacket  Query routing protocol packet.
OpenVendorPacket  Open vendor packet.
StandardVendorPacket  Standard vendor packet.

Definition at line 39 of file PacketBase.h.