026.c 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. static void
  2. get_callback (void *cls,
  3. enum GNUNET_DHT_RouteOption options,
  4. enum GNUNET_BLOCK_Type type,
  5. uint32_t hop_count,
  6. uint32_t desired_replication_level,
  7. unsigned int path_length,
  8. const struct GNUNET_PeerIdentity *path,
  9. const struct GNUNET_HashCode * key)
  10. {
  11. }
  12. static void
  13. get_resp_callback (void *cls,
  14. enum GNUNET_BLOCK_Type type,
  15. const struct GNUNET_PeerIdentity *get_path,
  16. unsigned int get_path_length,
  17. const struct GNUNET_PeerIdentity *put_path,
  18. unsigned int put_path_length,
  19. struct GNUNET_TIME_Absolute exp,
  20. const struct GNUNET_HashCode * key,
  21. const void *data,
  22. size_t size)
  23. {
  24. }
  25. static void
  26. put_callback (void *cls,
  27. enum GNUNET_DHT_RouteOption options,
  28. enum GNUNET_BLOCK_Type type,
  29. uint32_t hop_count,
  30. uint32_t desired_replication_level,
  31. unsigned int path_length,
  32. const struct GNUNET_PeerIdentity *path,
  33. struct GNUNET_TIME_Absolute exp,
  34. const struct GNUNET_HashCode * key,
  35. const void *data,
  36. size_t size)
  37. {
  38. }
  39. monitor_handle = GNUNET_DHT_monitor_start (dht_handle,
  40. block_type,
  41. key,
  42. &get_callback,
  43. &get_resp_callback,
  44. &put_callback,
  45. cls);