aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_performance.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-10-25 11:25:08 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-10-25 11:25:08 +0000
commit00ac4bcc595cf3b7a78fc130881a3078eb24f783 (patch)
tree7b8a3e4e868694bdcbd4855e24cb626d8da01602 /src/ats/gnunet-service-ats_performance.c
parent2959827fcacd160a0e9624d868f419e1530daee3 (diff)
downloadgnunet-00ac4bcc595cf3b7a78fc130881a3078eb24f783.tar.gz
gnunet-00ac4bcc595cf3b7a78fc130881a3078eb24f783.zip
changes
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r--src/ats/gnunet-service-ats_performance.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c
index a4b50513a..5bc4b9fe2 100644
--- a/src/ats/gnunet-service-ats_performance.c
+++ b/src/ats/gnunet-service-ats_performance.c
@@ -93,19 +93,25 @@ find_client (struct GNUNET_SERVER_Client *client)
93 return NULL; 93 return NULL;
94} 94}
95 95
96
97static void 96static void
98peerinfo_it (void *cls, 97peerinfo_it (void *cls,
99 const struct GNUNET_PeerIdentity *id, 98 const struct GNUNET_PeerIdentity *id,
100 const char *plugin) 99 const char *plugin_name,
100 const void *plugin_addr, size_t plugin_addr_len,
101 const struct GNUNET_ATS_Information *atsi,
102 uint32_t atsi_count,
103 struct GNUNET_BANDWIDTH_Value32NBO
104 bandwidth_out,
105 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in)
101{ 106{
102 struct PerformanceClient *pc = cls; 107 struct PerformanceClient *pc = cls;
103 GNUNET_assert (NULL != pc); 108 GNUNET_assert (NULL != pc);
104 if (NULL != id) 109 if (NULL != id)
105 { 110 {
106 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Callback for peer `%s' plugin `%s'\n", GNUNET_i2s (id), plugin); 111 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Callback for peer `%s' plugin `%s' BW out %llu, BW in %llu \n",
112 GNUNET_i2s (id),
113 plugin_name, ntohl (bandwidth_out.value__), ntohl (bandwidth_in.value__));
107 /* TODO: Notify client here! */ 114 /* TODO: Notify client here! */
108 //GNUNET_break (0);
109 } 115 }
110 116
111} 117}