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

pmsg_info Struct Reference


Detailed Description

Information about query messages sent.

We can't really add too many fields to the pmsg_t blocks we enqueue. However, what we do is we extend the pmsg_t to enrich them with a free routine, and we use that fact to be notified by the message queue when a message is freed. We can then probe into the flags to see whether it was sent.

But adding a free routine is about as much as we can do with a generic message system. To be able to keep track of more information about the queries we send, we associate each message with a structure containing meta-information about it.


Data Fields

guint32 hits
 Amount of query hits held in message.

dquery_tdq
 The dynamic query that sent the query.

guint32 qid
 Query ID of the dynamic query.

guint32 node_id
 The ID of the node we sent it to.

guint16 degree
 The advertised degree of the destination node.

guint8 ttl
 The TTL used for that query.


Field Documentation

guint16 pmsg_info::degree
 

The advertised degree of the destination node.

dquery_t* pmsg_info::dq
 

The dynamic query that sent the query.

guint32 pmsg_info::hits
 

Amount of query hits held in message.

guint32 pmsg_info::node_id
 

The ID of the node we sent it to.

guint32 pmsg_info::qid
 

Query ID of the dynamic query.

guint8 pmsg_info::ttl
 

The TTL used for that query.


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