aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_plugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r--src/include/gnunet_transport_plugin.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h
index fdd298e7f..b47843188 100644
--- a/src/include/gnunet_transport_plugin.h
+++ b/src/include/gnunet_transport_plugin.h
@@ -159,26 +159,6 @@ typedef struct GNUNET_TIME_Relative (*GNUNET_TRANSPORT_TrafficReport) (void *cls
159 159
160 160
161/** 161/**
162 * Function called whenever the plugin has to notify ATS about costs for using this transport
163 *
164 * The cost will be passed as struct GNUNET_TRANSPORT_ATS_Cost_Information[]
165 * This array is 0-terminated, so the last element will be a pair:
166 * ((cost->cost_type==GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR) && cost->cost_value==0))
167 *
168 * @param cls closure
169 * @param peer peer
170 * @param addr peer address
171 * @param addrlen address length
172 * @param cost pointer to the first element of struct GNUNET_TRANSPORT_ATS_Cost_Information[]
173 */
174typedef void (*GNUNET_TRANSPORT_CostReport) (void *cls,
175 const struct GNUNET_PeerIdentity *peer,
176 const void *addr,
177 uint16_t addrlen,
178 struct GNUNET_TRANSPORT_ATS_Information * cost);
179
180
181/**
182 * Function that returns a HELLO message. 162 * Function that returns a HELLO message.
183 */ 163 */
184typedef const struct GNUNET_MessageHeader * (*GNUNET_TRANSPORT_GetHelloCallback)(void); 164typedef const struct GNUNET_MessageHeader * (*GNUNET_TRANSPORT_GetHelloCallback)(void);
@@ -237,11 +217,6 @@ struct GNUNET_TRANSPORT_PluginEnvironment
237 GNUNET_TRANSPORT_SessionEnd session_end; 217 GNUNET_TRANSPORT_SessionEnd session_end;
238 218
239 /** 219 /**
240 * Inform service about costs for using this transport plugin
241 */
242 GNUNET_TRANSPORT_CostReport cost_report;
243
244 /**
245 * What is the maximum number of connections that this transport 220 * What is the maximum number of connections that this transport
246 * should allow? Transports that do not have sessions (such as 221 * should allow? Transports that do not have sessions (such as
247 * UDP) can ignore this value. 222 * UDP) can ignore this value.