diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-01-30 09:22:40 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-01-30 09:22:40 +0000 |
commit | 8cc87399cf760b9fa3cbdb40bf71d1eb333c8434 (patch) | |
tree | 2d31e83f5bf94df202f7e391b845ed37f9796e58 /src/transport/transport_api.c | |
parent | 38b1b6e994856e41b9631d4c06d6cc9126f4b411 (diff) | |
download | gnunet-8cc87399cf760b9fa3cbdb40bf71d1eb333c8434.tar.gz gnunet-8cc87399cf760b9fa3cbdb40bf71d1eb333c8434.zip |
forgot
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index d546b6556..520d8fc49 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -1249,7 +1249,18 @@ GNUNET_TRANSPORT_offer_hello_cancel (struct GNUNET_TRANSPORT_OfferHelloHandle *o | |||
1249 | GNUNET_free (ohh); | 1249 | GNUNET_free (ohh); |
1250 | } | 1250 | } |
1251 | 1251 | ||
1252 | int | ||
1253 | GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *handle, | ||
1254 | const struct GNUNET_PeerIdentity *peer) | ||
1255 | { | ||
1256 | GNUNET_assert (NULL != handle); | ||
1257 | GNUNET_assert (NULL != peer); | ||
1252 | 1258 | ||
1259 | if (GNUNET_YES == GNUNET_CONTAINER_multihashmap_contains(handle->neighbours, &peer->hashPubKey)) | ||
1260 | return GNUNET_YES; | ||
1261 | else | ||
1262 | return GNUNET_NO; | ||
1263 | } | ||
1253 | 1264 | ||
1254 | /** | 1265 | /** |
1255 | * Obtain the HELLO message for this peer. | 1266 | * Obtain the HELLO message for this peer. |