#include <glib.h>
Go to the source code of this file.
Typedefs | |
| typedef void(* | qhit_process_t )(gpointer data, size_t len, gpointer udata) | 
Functions | |
| void | qhit_init (void) | 
| Initialization of the query hit generation.   | |
| void | qhit_close (void) | 
| Shutdown cleanup.   | |
| void | qhit_send_results (struct gnutella_node *n, GSList *files, gint count, const gchar *muid, gboolean use_ggep_h) | 
| Send as many small query hit packets as necessary to hold the `count' results held in the `files' list.   | |
| void | qhit_build_results (GSList *files, gint count, size_t max_msgsize, qhit_process_t cb, gpointer udata, const gchar *muid, gboolean use_ggep_h) | 
| Build query hit results for later delivery.   | |
      
  | 
  
| 
 
  | 
  
      
  | 
  ||||||||||||||||||||||||||||||||
| 
 Build query hit results for later delivery. Results are held in the `files' list. They are packed in hits until the message reaches the `max_msgsize' limit at which time the packet is flushed and given the the `cb' callback for processing (sending, queueing, whatever). The callback is invoked as cb(data, len, udata) where the query hit message is held in the `len' bytes starting at `data'. The `udata' parameter is simply user-supplied data, opaque for us. 
 
  | 
  
      
  | 
  
| 
 Shutdown cleanup. 
  | 
  
      
  | 
  
| 
 Initialization of the query hit generation. 
  | 
  
      
  | 
  ||||||||||||||||||||||||
| 
 Send as many small query hit packets as necessary to hold the `count' results held in the `files' list. 
 
  | 
  
 
1.3.6