aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-02-05 12:47:04 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-02-05 12:47:04 +0000
commit6f7bf87716965774090bbe23010af249007fdae0 (patch)
tree8041967789288571864baba03d51287ffeb799a5 /src/include/gnunet_transport_service.h
parentc51fd513a8a5b78fd02c3950030e1acd83b32c97 (diff)
downloadgnunet-6f7bf87716965774090bbe23010af249007fdae0.tar.gz
gnunet-6f7bf87716965774090bbe23010af249007fdae0.zip
last commit for metric
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 5f03b3fc3..00b06c44f 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -43,6 +43,13 @@ extern "C"
43 */ 43 */
44#define GNUNET_TRANSPORT_VERSION 0x00000000 44#define GNUNET_TRANSPORT_VERSION 0x00000000
45 45
46enum TRAFFIC_METRIC_DIRECTION
47{
48 TM_SEND = 0,
49 TM_RECEIVE = 1,
50 TM_BOTH = 2
51};
52
46 53
47/** 54/**
48 * Function called by the transport for each received message. 55 * Function called by the transport for each received message.
@@ -282,6 +289,14 @@ GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *hand
282 const struct GNUNET_PeerIdentity *peer); 289 const struct GNUNET_PeerIdentity *peer);
283 290
284 291
292void
293GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle,
294 const struct GNUNET_PeerIdentity *peer,
295 int direction,
296 const struct GNUNET_ATS_Information *ats,
297 size_t ats_count);
298
299
285/** 300/**
286 * Obtain updates on changes to the HELLO message for this peer. The callback 301 * Obtain updates on changes to the HELLO message for this peer. The callback
287 * given in this function is never called synchronously. 302 * given in this function is never called synchronously.