Gnutella::Bootstrapping Namespace Reference


Detailed Description

Responsible for caching and finding Gnutella node addresses, which are needed to connect to the network.

Higher abstraction level is Gnutella

TODO


Classes

class  ConnectionKeeperPrivate
class  ConnectionKeeper
struct  Entry
class  NodeCachePrivate
class  NodeCache
class  HighUptimeHost
class  HasUltrapeerSlots
class  HasLeafSlots
class  PingHandler
class  PongHandler
struct  CacheInfo
class  UdpHostCachePrivate
class  UdpHostCache

Typedefs

typedef QHash< NodeAddress,
Entry * > 
NodeTable
typedef QLinkedList< Entry * > EntryList
typedef EntryList::iterator EntryIterator
typedef QSet< NodeAddressNodeSet

Enumerations

enum  Constants {
  UdpPingTimeout = 2000,
  UdpPingTries = 5,
  UdpPingsPerTry = 10
}
enum  Constants {
  AvailabilityExpiration = 600,
  MaximalCacheSize = 2000,
  ShrinkCacheSize = 1500
}
enum  Constants { IPPAddresses = 20 }
enum  Constants { SessionReadTimeout = 10000 }

Functions

QDataStream & operator<< (QDataStream &stream, const NodeCache::NodeAvailability &availability)
QDataStream & operator>> (QDataStream &stream, NodeCache::NodeAvailability &availability)

Variables

static const float HighUptimeThreshold = 0.7


Typedef Documentation

typedef EntryList::iterator Gnutella::Bootstrapping::EntryIterator
 

Definition at line 57 of file NodeCache.cpp.

typedef QLinkedList<Entry*> Gnutella::Bootstrapping::EntryList
 

Definition at line 56 of file NodeCache.cpp.

typedef QSet<NodeAddress> Gnutella::Bootstrapping::NodeSet
 

Definition at line 33 of file NodeCache.h.

typedef QHash<NodeAddress, Entry*> Gnutella::Bootstrapping::NodeTable
 

Definition at line 54 of file NodeCache.cpp.


Enumeration Type Documentation

enum Gnutella::Bootstrapping::Constants
 

Enumerator:
SessionReadTimeout  How long to wait for UDP pong.

Definition at line 33 of file UdpHostCache.cpp.

enum Gnutella::Bootstrapping::Constants
 

Enumerator:
IPPAddresses 

Definition at line 33 of file PingHandler.cpp.

enum Gnutella::Bootstrapping::Constants
 

Enumerator:
AvailabilityExpiration 
MaximalCacheSize 
ShrinkCacheSize 

Definition at line 47 of file NodeCache.cpp.

enum Gnutella::Bootstrapping::Constants
 

Enumerator:
UdpPingTimeout 
UdpPingTries 
UdpPingsPerTry 

Definition at line 35 of file ConnectionKeeper.cpp.


Function Documentation

QDataStream& Gnutella::Bootstrapping::operator<< QDataStream &  stream,
const NodeCache::NodeAvailability availability
 

Definition at line 32 of file NodeCache.cpp.

QDataStream& Gnutella::Bootstrapping::operator>> QDataStream &  stream,
NodeCache::NodeAvailability availability
 

Definition at line 38 of file NodeCache.cpp.


Variable Documentation

const float Gnutella::Bootstrapping::HighUptimeThreshold = 0.7 [static]
 

Definition at line 42 of file ConnectionKeeper.cpp.