get_msg = GNUNET_malloc (sizeof (struct GNUNET_DHT_GetMessage));
get_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_GET);
get_msg->header.size = htons (sizeof (struct GNUNET_DHT_GetMessage));
- get_msg->type = htonl (type);
+ get_msg->type = htons (type);
get_handle->route_handle =
GNUNET_DHT_route_start (handle, key, 0, 0, &get_msg->header, timeout,
put_msg = GNUNET_malloc (msize);
put_msg->header.type = htons (GNUNET_MESSAGE_TYPE_DHT_PUT);
put_msg->header.size = htons (msize);
- put_msg->type = htonl (type);
+ put_msg->type = htons (type);
put_msg->data_size = htons (size);
put_msg->expiration = exp;
memcpy (&put_msg[1], data, size);
const struct GNUNET_PeerIdentity *peer,
const struct GNUNET_MessageHeader *reply)
{
-
+ result_count++;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "test_find_peer_processor called (peer `%s'), stopping find peer request!\n", GNUNET_i2s(peer));
+ "test_find_peer_processor called (peer `%s'), total results %d!\n", GNUNET_i2s(peer), result_count);
}
#include "gnunet_scheduler_lib.h"
#include "gnunet_dht_service.h"
-#define VERBOSE GNUNET_YES
+#define VERBOSE GNUNET_NO
#define VERBOSE_ARM GNUNET_NO