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

nodes_common.c File Reference


Detailed Description

Common GUI functions for displaying node information.

Author:
Raphael Manfredi

Richard Eckart

Date:
2001-2003

#include "gui.h"
#include "nodes_common.h"
#include "gtk/statusbar.h"
#include "if/bridge/ui2c.h"
#include "if/core/nodes.h"
#include "if/core/sockets.h"
#include "if/gui_property_priv.h"
#include "lib/glib-missing.h"
#include "lib/misc.h"
#include "lib/walloc.h"
#include "lib/override.h"

Data Structures

struct  add_node_context

Functions

 RCSID ("$Id:nodes_common.c, v 1.21 2005/09/11 03:40:17 daichik Exp $")
const gchar * nodes_gui_common_status_str (const gnet_node_status_t *n)
 Compute info string for node.

const gchar * nodes_gui_common_flags_str (const gnet_node_flags_t *flags)
 Display a summary of the node flags.

void add_node_helper (const host_addr_t *addr, gpointer data)
void nodes_gui_common_connect_by_name (const gchar *line)
 Try to connect to the node given by the addr string in the form [ip]:[port].


Variables

gchar gui_tmp [4096]


Function Documentation

void add_node_helper const host_addr_t addr,
gpointer  data
[static]
 

void nodes_gui_common_connect_by_name const gchar *  line  ) 
 

Try to connect to the node given by the addr string in the form [ip]:[port].

Port may be omitted.

const gchar* nodes_gui_common_flags_str const gnet_node_flags_t flags  ) 
 

Display a summary of the node flags.

The stuff in the Flags column means:

  • 012345678AB (offset)
  • NIrwqxZPFhE
  • ^^^^^^^^^^^
  • ||||||||||+ E indicates a TLS encrypted connection
  • |||||||||+ hops flow triggerd (h), or total query flow control (f)
  • ||||||||+ flow control (F), or pending data in queue (d)
  • |||||||+ indicates whether we're a push proxy (P) / node is proxy (p)
  • ||||||+ indicates whether RX, TX or both (Z) are compressed
  • |||||+ indicates whether we sent our last-hop QRT to remote UP
  • ||||+ indicates whether we sent/received a QRT, or send/receive one
  • |||+ indicates whether node is writable
  • ||+ indicates whether node is readable
  • |+ indicates connection type (Incoming, Outgoing, Ponging)
  • + indicates peer mode (Normal, Ultra, Leaf)

const gchar* nodes_gui_common_status_str const gnet_node_status_t n  ) 
 

Compute info string for node.

Returns:
pointer to static data.

RCSID "$Id:nodes_common.  c,
v 1.21 2005/09/11 03:40:17 daichik Exp $" 
 


Variable Documentation

gchar gui_tmp[4096] [static]
 


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