• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kget

dht::AnnounceReq

dht::AnnounceReq Class Reference

#include <rpcmsg.h>

Inheritance diagram for dht::AnnounceReq:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 187 of file rpcmsg.h.


Public Member Functions

 AnnounceReq (const Key &id, const Key &info_hash, bt::Uint16 port, const Key &token)
virtual void apply (DHT *dh_table)
virtual void encode (QByteArray &arr)
bt::Uint16 getPort () const
const Key & getToken () const
virtual void print ()
virtual ~AnnounceReq ()

Constructor & Destructor Documentation

dht::AnnounceReq::AnnounceReq ( const Key &  id,
const Key &  info_hash,
bt::Uint16  port,
const Key &  token 
)

Definition at line 417 of file rpcmsg.cpp.

dht::AnnounceReq::~AnnounceReq (  )  [virtual]

Definition at line 423 of file rpcmsg.cpp.


Member Function Documentation

void dht::AnnounceReq::apply ( DHT *  dh_table  )  [virtual]

When this message arrives this function will be called upon the DHT.

The message should then call the appropriate DHT function (double dispatch)

Parameters:
dh_table Pointer to DHT

Reimplemented from dht::GetPeersReq.

Definition at line 425 of file rpcmsg.cpp.

void dht::AnnounceReq::encode ( QByteArray &  arr  )  [virtual]

BEncode the message.

Parameters:
arr Data array

Reimplemented from dht::GetPeersReq.

Definition at line 437 of file rpcmsg.cpp.

bt::Uint16 dht::AnnounceReq::getPort (  )  const [inline]

Definition at line 198 of file rpcmsg.h.

const Key& dht::AnnounceReq::getToken (  )  const [inline]

Definition at line 197 of file rpcmsg.h.

void dht::AnnounceReq::print (  )  [virtual]

Print the message for debugging purposes.

Reimplemented from dht::GetPeersReq.

Definition at line 430 of file rpcmsg.cpp.


The documentation for this class was generated from the following files:
  • rpcmsg.h
  • rpcmsg.cpp

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal