Gnutella::Packets::Extensions::Ggeps::UdpHostCache Class Reference

#include <UdpHostCache.h> [code]

Inherits Gnutella::Packets::Extensions::Ggep.

Inheritance diagram for Gnutella::Packets::Extensions::Ggeps::UdpHostCache:

Inheritance graph
[legend]
Collaboration diagram for Gnutella::Packets::Extensions::Ggeps::UdpHostCache:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 36 of file UdpHostCache.h.

Public Member Functions

 UdpHostCache (const GgepId &id, int flags, int dataSize)
 UdpHostCache (const QString &hostCacheAddress)
UdpHostCachecopy () const
QString hostName () const
void setHostName (const QString &hostName)

Static Public Member Functions

static const UdpHostCachefindIn (const GgepBlock &ggepBlock)

Static Public Attributes

static const Ggep::GgepId Id

Protected Member Functions

bool prepareReadData (const QByteArray &rawData)
 Verifies the structure of rawData.
void readData (QDataStream &stream)
 Reads the extension data from stream.
int prepareWriteData () const
 Prepares for writing the extension data and returns its length.
void writeData (QDataStream &stream) const
 Writes the extension data to the stream;.

Private Attributes

Gnutella::Packets::Extensions::Ggeps::UdpHostCache::Private p

Classes

struct  Private


Constructor & Destructor Documentation

UdpHostCache::UdpHostCache const GgepId id,
int  flags,
int  dataSize
 

Definition at line 33 of file UdpHostCache.cpp.

UdpHostCache::UdpHostCache const QString &  hostCacheAddress  )  [inline]
 

Definition at line 38 of file UdpHostCache.cpp.


Member Function Documentation

UdpHostCache * UdpHostCache::copy  )  const [virtual]
 

Implements Gnutella::Packets::Extensions::Ggep.

Definition at line 56 of file UdpHostCache.cpp.

const UdpHostCache * UdpHostCache::findIn const GgepBlock ggepBlock  )  [static]
 

Definition at line 45 of file UdpHostCache.cpp.

QString Gnutella::Packets::Extensions::Ggeps::UdpHostCache::hostName  )  const [inline]
 

Definition at line 69 of file UdpHostCache.h.

bool UdpHostCache::prepareReadData const QByteArray &  rawData  )  [protected, virtual]
 

Verifies the structure of rawData.

Implements Gnutella::Packets::Extensions::Ggep.

Definition at line 61 of file UdpHostCache.cpp.

int UdpHostCache::prepareWriteData  )  const [protected, virtual]
 

Prepares for writing the extension data and returns its length.

Implements Gnutella::Packets::Extensions::Ggep.

Definition at line 74 of file UdpHostCache.cpp.

void UdpHostCache::readData QDataStream &  stream  )  [protected, virtual]
 

Reads the extension data from stream.

Implements Gnutella::Packets::Extensions::Ggep.

Definition at line 66 of file UdpHostCache.cpp.

void Gnutella::Packets::Extensions::Ggeps::UdpHostCache::setHostName const QString &  hostName  )  [inline]
 

Definition at line 72 of file UdpHostCache.h.

void UdpHostCache::writeData QDataStream &  stream  )  const [protected, virtual]
 

Writes the extension data to the stream;.

Implements Gnutella::Packets::Extensions::Ggep.

Definition at line 80 of file UdpHostCache.cpp.


Member Data Documentation

const Ggep::GgepId UdpHostCache::Id [static]
 

Definition at line 39 of file UdpHostCache.h.

struct Gnutella::Packets::Extensions::Ggeps::UdpHostCache::Private Gnutella::Packets::Extensions::Ggeps::UdpHostCache::p [private]
 

Reimplemented from Gnutella::Packets::Extensions::Ggep.


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