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

alive.h File Reference


Detailed Description

Alive status checking ping/pongs.

Author:
Raphael Manfredi
Date:
2002-2003

#include <glib.h>

Go to the source code of this file.

Functions

gpointer alive_make (struct gnutella_node *n, gint max)
 Create the alive structure.

void alive_free (gpointer obj)
 Dispose the alive structure.

gboolean alive_send_ping (gpointer obj)
 Send new "alive" ping to node.

gboolean alive_ack_ping (gpointer obj, gchar *muid)
 Got a pong that could be an acknowledge to one of our alive pings.

void alive_ack_first (gpointer obj, gchar *muid)
 Got a ping with TTL=0, that some servents decided to use when replying to an alive ping.

void alive_get_roundtrip_ms (gconstpointer obj, guint32 *avg, guint32 *last)


Function Documentation

void alive_ack_first gpointer  obj,
gchar *  muid
 

Got a ping with TTL=0, that some servents decided to use when replying to an alive ping.

gboolean alive_ack_ping gpointer  obj,
gchar *  muid
 

Got a pong that could be an acknowledge to one of our alive pings.

Returns:
TRUE if it was indeed an ACK for a ping we sent.

void alive_free gpointer  obj  ) 
 

Dispose the alive structure.

void alive_get_roundtrip_ms gconstpointer  obj,
guint32 *  avg,
guint32 *  last
 

Returns:
the average/last ping/pong roundtrip time into supplied pointers. Values are expressed in milliseconds.

gpointer alive_make struct gnutella_node n,
gint  max
 

Create the alive structure.

Returned as an opaque pointer.

gboolean alive_send_ping gpointer  obj  ) 
 

Send new "alive" ping to node.

Returns:
TRUE if we sent it, FALSE if there are too many ACK-pending pings.


Generated on Sun Feb 12 10:49:59 2006 for Gtk-Gnutella by doxygen 1.3.6