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

next_up Struct Reference


Detailed Description

Structure produced by dq_fill_next_up, representing the nodes to which we could send the query, along with routing information to be able to favor UPs that report a QRP match early in the querying process.

Because we save the last array of nodes computed and sorted at each invocation of the querying steps (to avoid costly calls to the qrp_node_can_route() routine if possible), we store both the selected node ID (nodes can disappear between invocations but the ID is unique) and cache the result of qrp_node_can_route() calls into `can_route'.


Data Fields

gnutella_node_tnode
 Selected node.

guint32 nid
 Selected node ID.

query_hashvec_tqhv
 Query hash vector for the query.

gint can_route
 -1 = unknown, otherwise TRUE / FALSE

gint queue_pending
 -1 = unknown, otherwise cached queue size


Field Documentation

gint next_up::can_route
 

-1 = unknown, otherwise TRUE / FALSE

guint32 next_up::nid
 

Selected node ID.

gnutella_node_t* next_up::node
 

Selected node.

query_hashvec_t* next_up::qhv
 

Query hash vector for the query.

gint next_up::queue_pending
 

-1 = unknown, otherwise cached queue size


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