diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 11:09:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 11:09:42 +0000 |
commit | 376b5f749c03e1ff149c2e8248eed9bec928872a (patch) | |
tree | 7c44864219de6d7d77bdaec34c9e4b7aaf199647 /src/core/core.h | |
parent | 9767d2478ccb8dcc3152cb617d84cd4cec2097c3 (diff) | |
download | gnunet-376b5f749c03e1ff149c2e8248eed9bec928872a.tar.gz gnunet-376b5f749c03e1ff149c2e8248eed9bec928872a.zip |
dead code elimination
Diffstat (limited to 'src/core/core.h')
-rw-r--r-- | src/core/core.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/src/core/core.h b/src/core/core.h index f57d2b597..abbe9acc0 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
@@ -239,98 +239,6 @@ struct NotifyTrafficMessage | |||
239 | 239 | ||
240 | 240 | ||
241 | /** | 241 | /** |
242 | * Message sent to the core asking for configuration | ||
243 | * information and possibly preference changes. | ||
244 | */ | ||
245 | struct RequestInfoMessage | ||
246 | { | ||
247 | /** | ||
248 | * Header with type GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONFIGURE | ||
249 | */ | ||
250 | struct GNUNET_MessageHeader header; | ||
251 | |||
252 | /** | ||
253 | * Unique request ID. | ||
254 | */ | ||
255 | uint32_t rim_id GNUNET_PACKED; | ||
256 | |||
257 | /** | ||
258 | * Reserved, always zero. | ||
259 | */ | ||
260 | uint32_t reserved GNUNET_PACKED; | ||
261 | |||
262 | /** | ||
263 | * Number of bytes of inbound traffic to reserve, can | ||
264 | * be negative (to unreserve). NBO. | ||
265 | */ | ||
266 | int32_t reserve_inbound GNUNET_PACKED; | ||
267 | |||
268 | /** | ||
269 | * Increment the current traffic preference for the given peer by | ||
270 | * the specified amont. The traffic preference is used to determine | ||
271 | * the share of bandwidth this peer will typcially be assigned. | ||
272 | */ | ||
273 | uint64_t preference_change GNUNET_PACKED; | ||
274 | |||
275 | /** | ||
276 | * Identity of the peer being configured. | ||
277 | */ | ||
278 | struct GNUNET_PeerIdentity peer; | ||
279 | |||
280 | }; | ||
281 | |||
282 | |||
283 | /** | ||
284 | * Response from the core to a "RequestInfoMessage" | ||
285 | * providing traffic status information for a peer. | ||
286 | */ | ||
287 | struct ConfigurationInfoMessage | ||
288 | { | ||
289 | /** | ||
290 | * Header with type GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO | ||
291 | */ | ||
292 | struct GNUNET_MessageHeader header; | ||
293 | |||
294 | /** | ||
295 | * Amount of traffic (inbound number of bytes) that was reserved in | ||
296 | * response to the configuration change request. Negative for | ||
297 | * "unreserved" bytes. | ||
298 | */ | ||
299 | int32_t reserved_amount GNUNET_PACKED; | ||
300 | |||
301 | /** | ||
302 | * If the reservation request could not be satisfied (reserved_amount | ||
303 | * was zero), how long should the client wait until retrying? 0 if | ||
304 | * bandwidth was reserved. | ||
305 | */ | ||
306 | struct GNUNET_TIME_RelativeNBO reserve_delay; | ||
307 | |||
308 | /** | ||
309 | * Unique request ID. | ||
310 | */ | ||
311 | uint32_t rim_id GNUNET_PACKED; | ||
312 | |||
313 | /** | ||
314 | * Available bandwidth out for this peer, | ||
315 | * 0 if we have been disconnected. | ||
316 | */ | ||
317 | struct GNUNET_BANDWIDTH_Value32NBO bw_out; | ||
318 | |||
319 | /** | ||
320 | * Current traffic preference for the peer. | ||
321 | * 0 if we have been disconnected. | ||
322 | */ | ||
323 | uint64_t preference; | ||
324 | |||
325 | /** | ||
326 | * Identity of the peer. | ||
327 | */ | ||
328 | struct GNUNET_PeerIdentity peer; | ||
329 | |||
330 | }; | ||
331 | |||
332 | |||
333 | /** | ||
334 | * Client notifying core about the maximum-priority | 242 | * Client notifying core about the maximum-priority |
335 | * message it has in the queue for a particular target. | 243 | * message it has in the queue for a particular target. |
336 | */ | 244 | */ |