gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8578 - GNUnet/src/include


From: gnunet
Subject: [GNUnet-SVN] r8578 - GNUnet/src/include
Date: Mon, 15 Jun 2009 11:41:44 -0600

Author: nevans
Date: 2009-06-15 11:41:43 -0600 (Mon, 15 Jun 2009)
New Revision: 8578

Modified:
   GNUnet/src/include/gnunet_dv_service.h
Log:
method add

Modified: GNUnet/src/include/gnunet_dv_service.h
===================================================================
--- GNUnet/src/include/gnunet_dv_service.h      2009-06-15 04:46:53 UTC (rev 
8577)
+++ GNUnet/src/include/gnunet_dv_service.h      2009-06-15 17:41:43 UTC (rev 
8578)
@@ -48,6 +48,22 @@
   int (*dv_connections_iterate) (GNUNET_NodeIteratorCallback method,
                                  void *arg);
 
+  /**
+   * For core, Query how much bandwidth is availabe FROM the given
+   * node to this node in bpm (at the moment).  For DV, currently
+   * only returns GNUNET_OK if node is known in DV tables.  Should
+   * be obsoleted by DV/transports/Core integration.  Necessary
+   * now because DHT uses this call to check if peer is known
+   * before adding to DHT routing tables.
+   *
+   * @param bpm set to the bandwidth
+   * @param last_seen set to last time peer was confirmed up
+   * @return GNUNET_OK on success, GNUNET_SYSERR if if we are NOT connected
+   */
+  int (*p2p_connection_status_check) (const GNUNET_PeerIdentity * node,
+                                      unsigned int *bpm,
+                                      GNUNET_CronTime * last_seen);
+
 } GNUNET_DV_ServiceAPI;
 
 #endif /* end of gnunet_dv_service.h */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]