Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

routing_table Struct Reference


Detailed Description

A routing table.

If we are a leaf node, we send our routing table to neighbours. We keep a pointer to the previous table sent, so that we can determine the "patch" with the current table in case our library is regenerated.


Data Fields

enum qrp_route_magic magic
gint refcnt
 Amount of references.

gint generation
 Generation number.

guint8 * arena
 Where table starts.

gint slots
 Amount of slots in table.

gint infinity
 Value for "infinity".

guint32 client_slots
 Only for received tables, for shrinking ctrl.

gint bits
 Amount of bits used in table size (received).

gint set_count
 Amount of slots set in table.

gint fill_ratio
 100 * fill ratio for table (received)

gint pass_throw
 Query must pass a d100 throw to be forwarded.

gchar * digest
 SHA1 digest of the whole table (atom).

gchar * name
 Name for dumping purposes.

gboolean compacted


Field Documentation

guint8* routing_table::arena
 

Where table starts.

gint routing_table::bits
 

Amount of bits used in table size (received).

guint32 routing_table::client_slots
 

Only for received tables, for shrinking ctrl.

gboolean routing_table::compacted
 

gchar* routing_table::digest
 

SHA1 digest of the whole table (atom).

gint routing_table::fill_ratio
 

100 * fill ratio for table (received)

gint routing_table::generation
 

Generation number.

gint routing_table::infinity
 

Value for "infinity".

enum qrp_route_magic routing_table::magic
 

gchar* routing_table::name
 

Name for dumping purposes.

gint routing_table::pass_throw
 

Query must pass a d100 throw to be forwarded.

gint routing_table::refcnt
 

Amount of references.

gint routing_table::set_count
 

Amount of slots set in table.

gint routing_table::slots
 

Amount of slots in table.


The documentation for this struct was generated from the following file:
Generated on Sun Feb 12 10:50:13 2006 for Gtk-Gnutella by doxygen 1.3.6