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

route_data Struct Reference


Detailed Description

We don't store a list of nodes in the message structure, but a list of route_data: the reason is that nodes can go away, but we don't want to traverse the whole routing table to reclaim all the places where they were referenced.

The route_data structure points to a node and keeps track of the amount of messages that it is used to track. When a node disappears, the `node' field in the associated route_data structure is set to NULL. Dangling references are removed only when needed.


Data Fields

gnutella_nodenode
gint32 saved_messages
 # msg from this host in routing table


Field Documentation

struct gnutella_node* route_data::node
 

gint32 route_data::saved_messages
 

# msg from this host in routing 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