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

search.h File Reference

#include "common.h"
#include "lib/misc.h"
#include "lib/vendors.h"
#include "if/core/nodes.h"

Go to the source code of this file.

Data Structures

struct  gnet_host_vec
struct  gnet_results_set
 A results_set structure factorizes the common information from a Query Hit packet, and then has a list of individual records, one for each hit. More...

struct  gnet_record
 An individual hit. More...


Defines

#define ST_TLS   (1 << 10) /**< Indicated support for TLS */
 Indicated support for TLS.

#define ST_BH   (1 << 9) /**< Browse Host support */
 Browse Host support.

#define ST_KNOWN_VENDOR   (1 << 8) /**< Found known vendor code */
 Found known vendor code.

#define ST_PARSED_TRAILER   (1 << 7) /**< Was able to parse trailer */
 Was able to parse trailer.

#define ST_UDP   (1 << 6) /**< Got hit via UDP */
 Got hit via UDP.

#define ST_BOGUS   (1 << 5) /**< Bogus IP address */
 Bogus IP address.

#define ST_PUSH_PROXY   (1 << 4) /**< Listed some push proxies */
 Listed some push proxies.

#define ST_GGEP   (1 << 3) /**< Trailer has a GGEP extension */
 Trailer has a GGEP extension.

#define ST_UPLOADED   (1 << 2) /**< Is "stable", people downloaded */
 Is "stable", people downloaded.

#define ST_BUSY   (1 << 1) /**< Has currently no slots */
 Has currently no slots.

#define ST_FIREWALL   (1 << 0) /**< Is behind a firewall */
 Is behind a firewall.

#define SEARCH_IGN_DISPLAY_AS_IS   0 /**< Display normally */
 Display normally.

#define SEARCH_IGN_DISPLAY_MARKED   1 /**< Display marked (lighter color) */
 Display marked (lighter color).

#define SEARCH_IGN_NO_DISPLAY   2 /**< Don't display */
 Don't display.

#define SR_DOWNLOADED   0x0001
#define SR_IGNORED   0x0002
#define SR_DONT_SHOW   0x0004

Typedefs

typedef guint32 gnet_search_t
typedef gnet_host_vec gnet_host_vec_t
typedef gnet_results_set gnet_results_set_t
 A results_set structure factorizes the common information from a Query Hit packet, and then has a list of individual records, one for each hit.

typedef gnet_record gnet_record_t
 An individual hit.

typedef void(* search_got_results_listener_t )(GSList *, const gnet_results_set_t *)
 Search callbacks.


Enumerations

enum  { SEARCH_F_PASSIVE = 1 << 0, SEARCH_F_ENABLED = 1 << 1, SEARCH_F_BROWSE = 1 << 2 }


Define Documentation

#define SEARCH_IGN_DISPLAY_AS_IS   0 /**< Display normally */
 

Display normally.

#define SEARCH_IGN_DISPLAY_MARKED   1 /**< Display marked (lighter color) */
 

Display marked (lighter color).

#define SEARCH_IGN_NO_DISPLAY   2 /**< Don't display */
 

Don't display.

#define SR_DONT_SHOW   0x0004
 

#define SR_DOWNLOADED   0x0001
 

#define SR_IGNORED   0x0002
 

#define ST_BH   (1 << 9) /**< Browse Host support */
 

Browse Host support.

#define ST_BOGUS   (1 << 5) /**< Bogus IP address */
 

Bogus IP address.

#define ST_BUSY   (1 << 1) /**< Has currently no slots */
 

Has currently no slots.

#define ST_FIREWALL   (1 << 0) /**< Is behind a firewall */
 

Is behind a firewall.

#define ST_GGEP   (1 << 3) /**< Trailer has a GGEP extension */
 

Trailer has a GGEP extension.

#define ST_KNOWN_VENDOR   (1 << 8) /**< Found known vendor code */
 

Found known vendor code.

#define ST_PARSED_TRAILER   (1 << 7) /**< Was able to parse trailer */
 

Was able to parse trailer.

#define ST_PUSH_PROXY   (1 << 4) /**< Listed some push proxies */
 

Listed some push proxies.

#define ST_TLS   (1 << 10) /**< Indicated support for TLS */
 

Indicated support for TLS.

#define ST_UDP   (1 << 6) /**< Got hit via UDP */
 

Got hit via UDP.

#define ST_UPLOADED   (1 << 2) /**< Is "stable", people downloaded */
 

Is "stable", people downloaded.


Typedef Documentation

typedef struct gnet_host_vec gnet_host_vec_t
 

typedef struct gnet_record gnet_record_t
 

An individual hit.

It referes to a file entry on the remote servent, as identified by the parent results_set structure that contains this hit.

typedef struct gnet_results_set gnet_results_set_t
 

A results_set structure factorizes the common information from a Query Hit packet, and then has a list of individual records, one for each hit.

A single structure is created for each Query Hit packet we receive, but then it can be dispatched for displaying some of its records to the various searches in presence.

typedef guint32 gnet_search_t
 

typedef void(* search_got_results_listener_t)(GSList *, const gnet_results_set_t *)
 

Search callbacks.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
SEARCH_F_PASSIVE  Start a passive ssearch.
SEARCH_F_ENABLED  Start an enabled search.
SEARCH_F_BROWSE  Start a browse-host search.


Generated on Sun Feb 12 10:50:07 2006 for Gtk-Gnutella by doxygen 1.3.6