*
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
- int (*insert_extended_topology) (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second);
+ int (*insert_extended_topology) (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second);
/*
* Update dhttests.trials table with total connections information
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
{
return GNUNET_OK;
}
int ret;
memset (rbind, 0, sizeof (rbind));
- rbind[0].buffer_type = MYSQL_TYPE_LONG;
+ rbind[0].buffer_type = MYSQL_TYPE_LONGLONG;
rbind[0].buffer = nodeuid;
rbind[0].is_unsigned = GNUNET_YES;
rbind,
return_ok,
NULL,
- MYSQL_TYPE_LONG,
+ MYSQL_TYPE_LONGLONG,
¤t_trial,
GNUNET_YES,
MYSQL_TYPE_VAR_STRING,
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
{
int ret;
unsigned long long first_uid;
* @return GNUNET_OK on success, GNUNET_SYSERR on failure
*/
int
-add_extended_topology (struct GNUNET_PeerIdentity *first, struct GNUNET_PeerIdentity *second)
+add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNUNET_PeerIdentity *second)
{
int ret;
if (outfile == NULL)
#include "gnunet_dht_service.h"
#include "gnunet_hello_lib.h"
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
#define VERBOSE_ARM GNUNET_NO
retry_context.peer_ctx = peer;
peer->find_peer_handle =
- GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 0, &hash,
+ GNUNET_DHT_find_peer_start (peer->dht_handle, retry_context.next_timeout, 1, &hash,
&test_find_peer_processor, &retry_context, NULL, NULL);
if (peer->find_peer_handle == NULL)