Gnutella::PacketProcessing::QueryRouting::QrtExchanger Class Reference

#include <QrtExchanger.h> [code]

Inherits QObject.

Inheritance diagram for Gnutella::PacketProcessing::QueryRouting::QrtExchanger:

Inheritance graph
[legend]
Collaboration diagram for Gnutella::PacketProcessing::QueryRouting::QrtExchanger:

Collaboration graph
[legend]
List of all members.

Detailed Description

The class handles all QRT exchange between peers, ultrapeers and leaves.

Todo:
Send our table over new peer and ultrapeer connections.

Schedule the table updates so that they possibly do not overlap in time.

Definition at line 40 of file QrtExchanger.h.

Public Slots

void qrtRead (PacketSession *)

Public Member Functions

 QrtExchanger ()
 ~QrtExchanger ()
void addSession (PacketSession *)
void removeSession (PacketSession *)

Private Member Functions

 QrtExchanger (const QrtExchanger &)
QrtExchangeroperator= (const QrtExchanger &)

Private Attributes

QrtExchangerPrivatep


Constructor & Destructor Documentation

Gnutella::PacketProcessing::QueryRouting::QrtExchanger::QrtExchanger const QrtExchanger  )  [private]
 

QrtExchanger::QrtExchanger  ) 
 

Definition at line 60 of file QrtExchanger.cpp.

QrtExchanger::~QrtExchanger  ) 
 

Definition at line 67 of file QrtExchanger.cpp.


Member Function Documentation

void QrtExchanger::addSession PacketSession  ) 
 

Definition at line 72 of file QrtExchanger.cpp.

QrtExchanger& Gnutella::PacketProcessing::QueryRouting::QrtExchanger::operator= const QrtExchanger  )  [private]
 

void QrtExchanger::qrtRead PacketSession session  )  [slot]
 

Todo:
Wait a little before sending the table to the next peer to avoid traffic bursts. Maybe even only update tables once every few minutes and schedule non time-overlapping updates.

Definition at line 98 of file QrtExchanger.cpp.

void QrtExchanger::removeSession PacketSession  ) 
 

Definition at line 85 of file QrtExchanger.cpp.


Member Data Documentation

QrtExchangerPrivate* Gnutella::PacketProcessing::QueryRouting::QrtExchanger::p [private]
 

Definition at line 57 of file QrtExchanger.h.


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