gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14428 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r14428 - gnunet/src/include
Date: Wed, 16 Feb 2011 17:25:01 +0100

Author: nevans
Date: 2011-02-16 17:25:01 +0100 (Wed, 16 Feb 2011)
New Revision: 14428

Modified:
   gnunet/src/include/gnunet_core_service.h
Log:
add specific peer check to core iteration api

Modified: gnunet/src/include/gnunet_core_service.h
===================================================================
--- gnunet/src/include/gnunet_core_service.h    2011-02-16 16:24:32 UTC (rev 
14427)
+++ gnunet/src/include/gnunet_core_service.h    2011-02-16 16:25:01 UTC (rev 
14428)
@@ -380,7 +380,26 @@
                            GNUNET_CORE_ConnectEventHandler peer_cb,
                            void *cb_cls);
 
+/**
+ * Iterate over all currently connected peers.
+ * Calls peer_cb with each connected peer, and then
+ * once with NULL to indicate that all peers have
+ * been handled.
+ *
+ * @param cfg configuration to use
+ * @param peer the specific peer to check for
+ * @param peer_cb function to call with the peer information
+ * @param cb_cls closure for peer_cb
+ *
+ * @return GNUNET_OK if iterating, GNUNET_SYSERR on error
+ */
+int
+GNUNET_CORE_is_peer_connected (const struct GNUNET_CONFIGURATION_Handle *cfg,
+                               struct GNUNET_PeerIdentity *peer,
+                               GNUNET_CORE_ConnectEventHandler peer_cb,
+                               void *cb_cls);
 
+
 /**
  * Handle for a transmission request.
  */




reply via email to

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