Gnutella::Packets::Extensions::Ggeps::IpPort Class Reference

#include <IpPort.h> [code]

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

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 39 of file IpPort.h.

Public Member Functions

 IpPort (const GgepId &id, int flags, int dataSize)
 IpPort (const QList< NodeAddress > &nodeAddresses)
IpPortcopy () const
QList< NodeAddressaddresses () const
void setAddresses (const QList< NodeAddress > &addresses)

Static Public Member Functions

static const IpPortfindIn (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::IpPort::Private p

Classes

struct  Private


Constructor & Destructor Documentation

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

Definition at line 35 of file IpPort.cpp.

IpPort::IpPort const QList< NodeAddress > &  nodeAddresses  ) 
 

Definition at line 40 of file IpPort.cpp.


Member Function Documentation

QList< NodeAddress > Gnutella::Packets::Extensions::Ggeps::IpPort::addresses  )  const [inline]
 

Definition at line 72 of file IpPort.h.

IpPort * IpPort::copy  )  const [virtual]
 

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

Definition at line 57 of file IpPort.cpp.

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

Definition at line 46 of file IpPort.cpp.

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

Verifies the structure of rawData.

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

Definition at line 62 of file IpPort.cpp.

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

Prepares for writing the extension data and returns its length.

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

Definition at line 81 of file IpPort.cpp.

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

Reads the extension data from stream.

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

Definition at line 67 of file IpPort.cpp.

void Gnutella::Packets::Extensions::Ggeps::IpPort::setAddresses const QList< NodeAddress > &  addresses  )  [inline]
 

Definition at line 75 of file IpPort.h.

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

Writes the extension data to the stream;.

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

Definition at line 86 of file IpPort.cpp.


Member Data Documentation

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

Definition at line 42 of file IpPort.h.

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

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


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