[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37629 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37629 - gnunet/src/testbed |
Date: |
Sat, 30 Jul 2016 19:35:20 +0200 |
Author: grothoff
Date: 2016-07-30 19:35:20 +0200 (Sat, 30 Jul 2016)
New Revision: 37629
Modified:
gnunet/src/testbed/gnunet-service-testbed_oc.c
Log:
convert to new hello_get API
Modified: gnunet/src/testbed/gnunet-service-testbed_oc.c
===================================================================
--- gnunet/src/testbed/gnunet-service-testbed_oc.c 2016-07-30 17:33:48 UTC
(rev 37628)
+++ gnunet/src/testbed/gnunet-service-testbed_oc.c 2016-07-30 17:35:20 UTC
(rev 37629)
@@ -26,6 +26,7 @@
#include "gnunet-service-testbed.h"
#include "gnunet-service-testbed_connectionpool.h"
+#include "gnunet_transport_hello_service.h"
/**
* Redefine LOG with a changed log component string
@@ -199,7 +200,7 @@
/**
* Get GetHelloHandle to acquire a HELLO of the first peer
*/
- struct GNUNET_TRANSPORT_GetHelloHandle *ghh;
+ struct GNUNET_TRANSPORT_HelloGetHandle *ghh;
/**
* The error message we send if this overlay connect operation has timed out
@@ -542,7 +543,7 @@
if (NULL != occ->cgh_ch)
GST_connection_pool_get_handle_done (occ->cgh_ch);
if (NULL != occ->ghh)
- GNUNET_TRANSPORT_get_hello_cancel (occ->ghh);
+ GNUNET_TRANSPORT_hello_get_cancel (occ->ghh);
GST_connection_pool_get_handle_done (occ->cgh_p1th);
GNUNET_assert (NULL != GST_peer_list);
GNUNET_assert (occ->peer->reference_cnt > 0);
@@ -1040,7 +1041,7 @@
occ->hello = GNUNET_malloc (msize);
GST_cache_add_hello (occ->peer->id, hello);
GNUNET_memcpy (occ->hello, hello, msize);
- GNUNET_TRANSPORT_get_hello_cancel (occ->ghh);
+ GNUNET_TRANSPORT_hello_get_cancel (occ->ghh);
occ->ghh = NULL;
GST_connection_pool_get_handle_done (occ->cgh_p1th);
occ->cgh_p1th = NULL;
@@ -1090,7 +1091,8 @@
"0x%llx: Timeout while acquiring HELLO of peer %s",
occ->op_id,
GNUNET_i2s (&occ->peer_identity));
- occ->ghh = GNUNET_TRANSPORT_get_hello (cfg,
+ occ->ghh = GNUNET_TRANSPORT_hello_get (cfg,
+ GNUNET_TRANSPORT_AC_ANY,
&hello_update_cb,
occ);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37629 - gnunet/src/testbed,
gnunet <=