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

kget

dht::GetPeersReq

dht::GetPeersReq Class Reference

#include <rpcmsg.h>

Inheritance diagram for dht::GetPeersReq:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 173 of file rpcmsg.h.


Public Member Functions

virtual void apply (DHT *dh_table)
virtual void encode (QByteArray &arr)
const Key & getInfoHash () const
 GetPeersReq (const Key &id, const Key &info_hash)
virtual void print ()
virtual ~GetPeersReq ()

Protected Attributes

Key info_hash

Constructor & Destructor Documentation

dht::GetPeersReq::GetPeersReq ( const Key &  id,
const Key &  info_hash 
)

Definition at line 379 of file rpcmsg.cpp.

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

Definition at line 383 of file rpcmsg.cpp.


Member Function Documentation

void dht::GetPeersReq::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

Implements dht::MsgBase.

Reimplemented in dht::AnnounceReq.

Definition at line 386 of file rpcmsg.cpp.

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

BEncode the message.

Parameters:
arr Data array

Implements dht::MsgBase.

Reimplemented in dht::AnnounceReq.

Definition at line 397 of file rpcmsg.cpp.

const Key& dht::GetPeersReq::getInfoHash (  )  const [inline]

Definition at line 179 of file rpcmsg.h.

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

Print the message for debugging purposes.

Implements dht::MsgBase.

Reimplemented in dht::AnnounceReq.

Definition at line 391 of file rpcmsg.cpp.


Member Data Documentation

Key dht::GetPeersReq::info_hash [protected]

Definition at line 184 of file rpcmsg.h.


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