diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-10 08:38:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-10 08:38:39 +0000 |
commit | ea3717b6ea09ac10b68f1b21de5ddc2d8da5e440 (patch) | |
tree | 722c7943c6820d66e5b12709e2c0c4f68e48f3d6 /src/core/gnunet-service-core_neighbours.c | |
parent | 61214906db3935fffcaa0170d1dd4d909c9c5c09 (diff) | |
download | gnunet-ea3717b6ea09ac10b68f1b21de5ddc2d8da5e440.tar.gz gnunet-ea3717b6ea09ac10b68f1b21de5ddc2d8da5e440.zip |
remove limit_outbound, DCE
Diffstat (limited to 'src/core/gnunet-service-core_neighbours.c')
-rw-r--r-- | src/core/gnunet-service-core_neighbours.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c index c3456ccf4..774c173dc 100644 --- a/src/core/gnunet-service-core_neighbours.c +++ b/src/core/gnunet-service-core_neighbours.c | |||
@@ -116,11 +116,6 @@ struct Neighbour | |||
116 | /** | 116 | /** |
117 | * Tracking bandwidth for sending to this peer. | 117 | * Tracking bandwidth for sending to this peer. |
118 | */ | 118 | */ |
119 | struct GNUNET_BANDWIDTH_Tracker available_send_window; | ||
120 | |||
121 | /** | ||
122 | * Tracking bandwidth for sending to this peer. | ||
123 | */ | ||
124 | struct GNUNET_BANDWIDTH_Tracker available_recv_window; | 119 | struct GNUNET_BANDWIDTH_Tracker available_recv_window; |
125 | 120 | ||
126 | }; | 121 | }; |
@@ -251,7 +246,6 @@ transmit_ready (void *cls, size_t size, void *buf) | |||
251 | GNUNET_assert (size >= m->size); | 246 | GNUNET_assert (size >= m->size); |
252 | memcpy (cbuf, &m[1], m->size); | 247 | memcpy (cbuf, &m[1], m->size); |
253 | ret = m->size; | 248 | ret = m->size; |
254 | GNUNET_BANDWIDTH_tracker_consume (&n->available_send_window, m->size); | ||
255 | #if DEBUG_CORE | 249 | #if DEBUG_CORE |
256 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 250 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
257 | "Copied message of type %u and size %u into transport buffer for `%4s'\n", | 251 | "Copied message of type %u and size %u into transport buffer for `%4s'\n", |
@@ -351,9 +345,6 @@ handle_transport_notify_connect (void *cls, | |||
351 | #endif | 345 | #endif |
352 | n = GNUNET_malloc (sizeof (struct Neighbour)); | 346 | n = GNUNET_malloc (sizeof (struct Neighbour)); |
353 | n->peer = *peer; | 347 | n->peer = *peer; |
354 | GNUNET_BANDWIDTH_tracker_init (&n->available_send_window, | ||
355 | GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, | ||
356 | MAX_WINDOW_TIME_S); | ||
357 | GNUNET_BANDWIDTH_tracker_init (&n->available_recv_window, | 348 | GNUNET_BANDWIDTH_tracker_init (&n->available_recv_window, |
358 | GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, | 349 | GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, |
359 | MAX_WINDOW_TIME_S); | 350 | MAX_WINDOW_TIME_S); |