aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-22 21:49:42 +0000
committerChristian Grothoff <christian@grothoff.org>2015-01-22 21:49:42 +0000
commit0d4797b47c3cf73137935f0e7eab9dd1277487b9 (patch)
tree0f6f37bac09633d231193b5878576bc7c2b8c6cf
parent03c7d2c186ae7371ce5be6fddd376faf90c44e53 (diff)
downloadgnunet-0d4797b47c3cf73137935f0e7eab9dd1277487b9.tar.gz
gnunet-0d4797b47c3cf73137935f0e7eab9dd1277487b9.zip
-documenting
-rw-r--r--src/ats/ats.h51
-rw-r--r--src/ats/ats_api_scheduling.c2
2 files changed, 51 insertions, 2 deletions
diff --git a/src/ats/ats.h b/src/ats/ats.h
index 0ff5e950e..7280891f4 100644
--- a/src/ats/ats.h
+++ b/src/ats/ats.h
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet.
3 (C) 2010,2011 Christian Grothoff (and other contributing authors) 3 (C) 2010-2015 Christian Grothoff (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -35,18 +35,36 @@
35enum StartFlag 35enum StartFlag
36{ 36{
37 37
38 /**
39 * This is a scheduling client (aka transport service)
40 */
38 START_FLAG_SCHEDULING = 0, 41 START_FLAG_SCHEDULING = 0,
39 42
43 /**
44 * Performance monitoring client that wants to learn about
45 * changes in performance characteristics.
46 */
40 START_FLAG_PERFORMANCE_WITH_PIC = 1, 47 START_FLAG_PERFORMANCE_WITH_PIC = 1,
41 48
49 /**
50 * Performance monitoring client that does NOT want to learn
51 * about changes in performance characteristics.
52 */
42 START_FLAG_PERFORMANCE_NO_PIC = 2 53 START_FLAG_PERFORMANCE_NO_PIC = 2
43}; 54};
44 55
45 56
46GNUNET_NETWORK_STRUCT_BEGIN 57GNUNET_NETWORK_STRUCT_BEGIN
47 58
59/**
60 * First message any client sends to ATS, used to self-identify
61 * (what type of client this is).
62 */
48struct ClientStartMessage 63struct ClientStartMessage
49{ 64{
65 /**
66 * Type is #GNUNET_MESSAGE_TYPE_ATS_START.
67 */
50 struct GNUNET_MessageHeader header; 68 struct GNUNET_MessageHeader header;
51 69
52 /** 70 /**
@@ -56,21 +74,50 @@ struct ClientStartMessage
56}; 74};
57 75
58 76
77/**
78 * Scheduling client to ATS service: we would like to have
79 * address suggestions for this peer.
80 */
59struct RequestAddressMessage 81struct RequestAddressMessage
60{ 82{
83 /**
84 * Type is #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS or
85 * #GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL to stop
86 * suggestions.
87 */
61 struct GNUNET_MessageHeader header; 88 struct GNUNET_MessageHeader header;
62 89
90 /**
91 * Always zero.
92 */
63 uint32_t reserved GNUNET_PACKED; 93 uint32_t reserved GNUNET_PACKED;
64 94
95 /**
96 * Peer to get address suggestions for.
97 */
65 struct GNUNET_PeerIdentity peer; 98 struct GNUNET_PeerIdentity peer;
66}; 99};
67 100
101
102/**
103 * Scheduling client to ATS service: reset backoff for
104 * address suggestions to this peer.
105 */
68struct ResetBackoffMessage 106struct ResetBackoffMessage
69{ 107{
108 /**
109 * Type is #GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF.
110 */
70 struct GNUNET_MessageHeader header; 111 struct GNUNET_MessageHeader header;
71 112
113 /**
114 * Always zero.
115 */
72 uint32_t reserved GNUNET_PACKED; 116 uint32_t reserved GNUNET_PACKED;
73 117
118 /**
119 * Peer to reset backoff for.
120 */
74 struct GNUNET_PeerIdentity peer; 121 struct GNUNET_PeerIdentity peer;
75}; 122};
76 123
@@ -257,6 +304,8 @@ struct AddressSuggestionMessage
257}; 304};
258 305
259 306
307
308
260struct PeerInformationMessage 309struct PeerInformationMessage
261{ 310{
262 struct GNUNET_MessageHeader header; 311 struct GNUNET_MessageHeader header;
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 52cc40bb2..90e3de731 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -1023,7 +1023,7 @@ GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh)
1023 1023
1024/** 1024/**
1025 * We would like to reset the address suggestion block time for this 1025 * We would like to reset the address suggestion block time for this
1026 * peer 1026 * peer.
1027 * 1027 *
1028 * @param sh handle 1028 * @param sh handle
1029 * @param peer identity of the peer we want to reset 1029 * @param peer identity of the peer we want to reset