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

nodes.h File Reference

#include "common.h"
#include "if/core/hosts.h"
#include "lib/vendors.h"

Go to the source code of this file.

Data Structures

struct  gnet_node_status
struct  gnet_node_info
struct  gnet_node_flags

Defines

#define GTA_NORMAL_TTL   4 /**< Regular TTL, for hops-flow */
 Regular TTL, for hops-flow.

#define node_add_listener(signal, callback)   CAT3(node_add_,signal,_listener)(callback);
#define node_remove_listener(signal, callback)   CAT3(node_remove_,signal,_listener)(callback);

Typedefs

typedef guint32 gnet_node_t
 Gnet node specific types.

typedef gnet_node_status gnet_node_status_t
typedef gnet_node_info gnet_node_info_t
typedef gnet_node_flags gnet_node_flags_t
typedef void(* node_added_listener_t )(gnet_node_t)
typedef void(* node_removed_listener_t )(gnet_node_t)
typedef void(* node_info_changed_listener_t )(gnet_node_t)
typedef void(* node_flags_changed_listener_t )(gnet_node_t)

Enumerations

enum  node_peer_t {
  NODE_P_LEAF = 0, NODE_P_AUTO, NODE_P_ULTRA, NODE_P_NORMAL,
  NODE_P_CRAWLER, NODE_P_UDP, NODE_P_UNKNOWN
}
enum  qrt_state_t {
  QRT_S_NONE = 0, QRT_S_SENDING, QRT_S_SENT, QRT_S_RECEIVING,
  QRT_S_PATCHING, QRT_S_RECEIVED
}
enum  gnet_node_state_t {
  GTA_NODE_CONNECTING = 1, GTA_NODE_HELLO_SENT = 2, GTA_NODE_WELCOME_SENT = 3, GTA_NODE_CONNECTED = 4,
  GTA_NODE_REMOVING = 5, GTA_NODE_RECEIVING_HELLO = 6, GTA_NODE_SHUTDOWN = 7
}


Define Documentation

#define GTA_NORMAL_TTL   4 /**< Regular TTL, for hops-flow */
 

Regular TTL, for hops-flow.

#define node_add_listener signal,
callback   )     CAT3(node_add_,signal,_listener)(callback);
 

#define node_remove_listener signal,
callback   )     CAT3(node_remove_,signal,_listener)(callback);
 


Typedef Documentation

typedef struct gnet_node_flags gnet_node_flags_t
 

typedef struct gnet_node_info gnet_node_info_t
 

typedef struct gnet_node_status gnet_node_status_t
 

typedef guint32 gnet_node_t
 

Gnet node specific types.

typedef void(* node_added_listener_t)(gnet_node_t)
 

typedef void(* node_flags_changed_listener_t)(gnet_node_t)
 

typedef void(* node_info_changed_listener_t)(gnet_node_t)
 

typedef void(* node_removed_listener_t)(gnet_node_t)
 


Enumeration Type Documentation

enum gnet_node_state_t
 

Enumeration values:
GTA_NODE_CONNECTING  Making outgoing connection.
GTA_NODE_HELLO_SENT  Sent 0.4 hello.
GTA_NODE_WELCOME_SENT  Hello accepted, remote welcomed.
GTA_NODE_CONNECTED  Connected at the Gnet level.
GTA_NODE_REMOVING  Removing node.
GTA_NODE_RECEIVING_HELLO  Receiving 0.6 headers.
GTA_NODE_SHUTDOWN  Connection being shutdown.

enum node_peer_t
 

Enumeration values:
NODE_P_LEAF  Leaf node.
NODE_P_AUTO  Automatic mode.
NODE_P_ULTRA  Ultra node.
NODE_P_NORMAL  Normal legacy node.
NODE_P_CRAWLER  Crawler node.
NODE_P_UDP  UDP "fake" node.
NODE_P_UNKNOWN  Unknown mode yet.

enum qrt_state_t
 

Enumeration values:
QRT_S_NONE  Nothing.
QRT_S_SENDING  Sending QRT to ultrapeer.
QRT_S_SENT  Sent QRT to ultrapeer.
QRT_S_RECEIVING  Receiving initial QRT from leaf.
QRT_S_PATCHING  Receiving QRT patch from leaf.
QRT_S_RECEIVED  Received QRT from leaf.


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