aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-10 23:24:01 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-10 23:24:01 +0000
commit1c323bd4cbb388a9e7515a1f733a3062bf093aee (patch)
tree7cc525d79149d44840b9f7a0040aaf3e69ecd665 /src/include/gnunet_transport_service.h
parentaedaaed687db1ff20b447378f01ad7306921450c (diff)
downloadgnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.tar.gz
gnunet-1c323bd4cbb388a9e7515a1f733a3062bf093aee.zip
fixing #3657 (replace ATS_Information with struct), but WIHTOUT fixing ATS testcases yet
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h31
1 files changed, 8 insertions, 23 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 85d28ddd2..655704b1e 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -333,34 +333,19 @@ GNUNET_TRANSPORT_check_peer_connected (struct GNUNET_TRANSPORT_Handle *handle,
333 * 333 *
334 * @param handle transport handle 334 * @param handle transport handle
335 * @param peer the peer to set the metric for 335 * @param peer the peer to set the metric for
336 * @param inbound set inbound direction (#GNUNET_YES or #GNUNET_NO) 336 * @param prop the performance metrics to set
337 * @param outbound set outbound direction (#GNUNET_YES or #GNUNET_NO) 337 * @param delay_in inbound delay to introduce
338 * @param ats the metric as ATS information 338 * @param delay_out outbound delay to introduce
339 * @param ats_count the number of metrics
340 * 339 *
341 * Supported ATS values: 340 * Note: Delay restrictions in receiving direction will be enforced
342 * #GNUNET_ATS_QUALITY_NET_DELAY (value in ms) 341 * with one message delay.
343 * #GNUNET_ATS_QUALITY_NET_DISTANCE (value in count(hops))
344 *
345 * Example
346 * To enforce a delay of 10 ms for peer p1 in sending direction use:
347 *
348 * struct GNUNET_ATS_Information ats;
349 * ats.type = ntohl (GNUNET_ATS_QUALITY_NET_DELAY);
350 * ats.value = ntohl (10);
351 * GNUNET_TRANSPORT_set_traffic_metric (th, p1, TM_SEND, &ats, 1);
352 *
353 * Note:
354 * Delay restrictions in receiving direction will be enforced with
355 * 1 message delay.
356 */ 342 */
357void 343void
358GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle, 344GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle,
359 const struct GNUNET_PeerIdentity *peer, 345 const struct GNUNET_PeerIdentity *peer,
360 int inbound, 346 const struct GNUNET_ATS_Properties *prop,
361 int outbound, 347 struct GNUNET_TIME_Relative delay_in,
362 const struct GNUNET_ATS_Information *ats, 348 struct GNUNET_TIME_Relative delay_out);
363 size_t ats_count);
364 349
365 350
366/* *************************** HELLO *************************** */ 351/* *************************** HELLO *************************** */