aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
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 *************************** */