|
Defines |
#define | QUERY_SPEED_MARK 0x0080 /**< Field is special: not a speed */ |
| Field is special: not a speed.
|
#define | QUERY_SPEED_FIREWALLED 0x0040 /**< Issuing servent is firewalled */ |
| Issuing servent is firewalled.
|
#define | QUERY_SPEED_NO_XML 0x0020 /**< No XML in result set, please */ |
| No XML in result set, please.
|
#define | QUERY_SPEED_LEAF_GUIDED 0x0010 /**< Leaf-guided query */ |
| Leaf-guided query.
|
#define | QUERY_SPEED_GGEP_H 0x0008 /**< Recipient understands GGEP "H" */ |
| Recipient understands GGEP "H".
|
#define | QUERY_SPEED_OOB_REPLY 0x0004 /**< Out-of-band reply possible */ |
| Out-of-band reply possible.
|
#define | QUERY_SPEED_FW_TO_FW 0x0002 /**< Can do fw to fw transfers */ |
| Can do fw to fw transfers.
|
#define | QUERY_FW2FW_FILE_INDEX 0x7FFFFFFD /**< Magic index for fw-fw reqs */ |
| Magic index for fw-fw reqs.
|
Functions |
void | search_init (void) |
void | search_shutdown (void) |
gboolean | search_results (gnutella_node_t *n, gint *results) |
| This routine is called for each Query Hit packet we receive.
|
gboolean | search_query_allowed (gnet_search_t sh) |
| Check whether we can send another query for this search.
|
guint32 | search_get_id (gnet_search_t sh, gpointer *search) |
void | search_notify_sent (gpointer search, guint32 id, guint32 node_id) |
| Notification from sq that a query for this search was sent to the specified node ID.
|
void | search_add_kept (gnet_search_t sh, guint32 kept) |
| The filtering side lets us know the amount of items we "kept", which are either things we display to the user or entries we used for auto-download.
|
gboolean | search_get_kept_results (gchar *muid, guint32 *kept) |
| Get amount of results we displayed for the search identified by its MUID.
|
guint32 | search_get_kept_results_by_handle (gnet_search_t sh) |
void | search_oob_pending_results (gnutella_node_t *n, gchar *muid, gint hits, gboolean udp_firewalled) |
| Received out-of-band indication of results for search identified by its MUID, on remote node `n'.
|
void | search_dissociate_browse (gnet_search_t sh, gpointer download) |
| Notification from the download layer that a browse-host download is being removed.
|
void | search_browse_results (gnutella_node_t *n, gnet_search_t sh) |
| This routine is called for each Query Hit packet we receive out of a browse-host request, since we know the target search result, and we don't need to bother with forwarding that message.
|