2
0

020.c 897 B

12345678910111213141516171819202122232425
  1. static void
  2. get_result_iterator (void *cls, struct GNUNET_TIME_Absolute expiration,
  3. const struct GNUNET_HashCode *key,
  4. const struct GNUNET_PeerIdentity *get_path,
  5. unsigned int get_path_length,
  6. const struct GNUNET_PeerIdentity *put_path,
  7. unsigned int put_path_length,
  8. enum GNUNET_BLOCK_Type type, size_t size,
  9. const void *data)
  10. {
  11. // Optionally:
  12. GNUNET_DHT_get_stop (get_handle);
  13. }
  14. get_handle =
  15. GNUNET_DHT_get_start (dht_handle,
  16. block_type,
  17. &key,
  18. replication,
  19. GNUNET_DHT_RO_NONE,
  20. NULL,
  21. 0,
  22. &get_result_iterator,
  23. cls)