Protocols::Gnutella::Packets::Ping Class Reference

#include <Ping.h> [code]

Inherits Protocols::Gnutella::Packets::PacketBase.

Inheritance diagram for Protocols::Gnutella::Packets::Ping:

Inheritance graph
[legend]
Collaboration diagram for Protocols::Gnutella::Packets::Ping:

Collaboration graph
[legend]
List of all members.

Detailed Description

Implements the packet Ping.

The Ping packet is used for discovering hosts on the network.

Definition at line 38 of file Ping.h.

Public Member Functions

QString name () const
 Returns the name of the PacketBase type the dynamic object belongs to.
auto_ptr< DataBasecopy () const
 Virtual copy constructor.
 Ping (const GgepBlock &ggepBlock=GgepBlock())
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
 Ping packet's private data. More...


Constructor & Destructor Documentation

Ping::Ping const GgepBlock ggepBlock = GgepBlock()  ) 
 

Definition at line 40 of file Ping.cpp.


Member Function Documentation

auto_ptr< DataBase > Ping::copy  )  const [virtual]
 

Virtual copy constructor.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 34 of file Ping.cpp.

GgepBlock Protocols::Gnutella::Packets::Ping::ggepBlock  )  const [inline]
 

Getter for the packet field ggepBlock.

Definition at line 73 of file Ping.h.

QString Ping::name  )  const [virtual]
 

Returns the name of the PacketBase type the dynamic object belongs to.

Todo:
Better use PacketId (which possibly contains the ProtocolId)?

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 28 of file Ping.cpp.

Protocols::Gnutella::Packets::Ping::Q_DECLARE_SHARED_DATA Data   )  [protected]
 

void Ping::readPayload BinaryReader  )  [protected, virtual]
 

Reads the packet's payload fields.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 48 of file Ping.cpp.

void Protocols::Gnutella::Packets::Ping::setGgepBlock const GgepBlock  )  [inline]
 

Setter for the packet field ggepBlock.

Definition at line 77 of file Ping.h.

void Ping::writePayload BinaryWriter  )  const [protected, virtual]
 

Writes the packet's payload fields.

Implements Protocols::Gnutella::Packets::PacketBase.

Definition at line 55 of file Ping.cpp.


The documentation for this class was generated from the following files: