[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25937 - in gnunet/src: include transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25937 - in gnunet/src: include transport |
Date: |
Wed, 30 Jan 2013 10:22:40 +0100 |
Author: wachs
Date: 2013-01-30 10:22:40 +0100 (Wed, 30 Jan 2013)
New Revision: 25937
Modified:
gnunet/src/include/gnunet_transport_service.h
gnunet/src/transport/transport_api.c
Log:
forgot
Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h 2013-01-29 20:57:17 UTC
(rev 25936)
+++ gnunet/src/include/gnunet_transport_service.h 2013-01-30 09:22:40 UTC
(rev 25937)
@@ -270,6 +270,19 @@
/**
+ * Checks if a neighbour is connected
+ *
+ * @param handle connection to transport service
+ * @peer the peer to check
+ * @return GNUNET_YES or GNUNET_NO
+ *
+ */
+int
+GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle
*handle,
+ const struct
GNUNET_PeerIdentity *peer);
+
+
+/**
* Obtain updates on changes to the HELLO message for this peer.
*
* @param handle connection to transport service
Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c 2013-01-29 20:57:17 UTC (rev
25936)
+++ gnunet/src/transport/transport_api.c 2013-01-30 09:22:40 UTC (rev
25937)
@@ -1249,7 +1249,18 @@
GNUNET_free (ohh);
}
+int
+GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle
*handle,
+ const struct
GNUNET_PeerIdentity *peer)
+{
+ GNUNET_assert (NULL != handle);
+ GNUNET_assert (NULL != peer);
+ if (GNUNET_YES ==
GNUNET_CONTAINER_multihashmap_contains(handle->neighbours, &peer->hashPubKey))
+ return GNUNET_YES;
+ else
+ return GNUNET_NO;
+}
/**
* Obtain the HELLO message for this peer.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25937 - in gnunet/src: include transport,
gnunet <=