aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-10 11:20:35 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-10 11:20:35 +0000
commit0678e1f1225793524bc030b82d73cbad12efee56 (patch)
treea0661925c366ef18f0dd7bda5b81de510dffdaae /src/core/gnunet-service-core_sessions.c
parent4158cc59e2d5c715250f59545b5ca70da4b3c23c (diff)
downloadgnunet-0678e1f1225793524bc030b82d73cbad12efee56.tar.gz
gnunet-0678e1f1225793524bc030b82d73cbad12efee56.zip
removing dead bw code
Diffstat (limited to 'src/core/gnunet-service-core_sessions.c')
-rw-r--r--src/core/gnunet-service-core_sessions.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c
index c82c72863..4a3fc1e87 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -122,33 +122,6 @@ struct Session
122 GNUNET_SCHEDULER_TaskIdentifier cork_task; 122 GNUNET_SCHEDULER_TaskIdentifier cork_task;
123 123
124 /** 124 /**
125 * Available bandwidth out for this peer (current target). This
126 * value should be the 'MIN' of 'bw_out_internal_limit' and
127 * 'bw_out_external_limit'.
128 */
129 struct GNUNET_BANDWIDTH_Value32NBO bw_out;
130
131 /**
132 * Internal bandwidth limit set for this peer (initially typically
133 * set to "MAX_INT"). Actual "bw_out" is MIN of
134 * "bpm_out_internal_limit" and "bw_out_external_limit".
135 *
136 *
137 *
138 * // FIXME: check usage
139 */
140 struct GNUNET_BANDWIDTH_Value32NBO bw_out_internal_limit;
141
142 /**
143 * External bandwidth limit set for this peer by the
144 * peer that we are communicating with. "bw_out" is MIN of
145 * "bw_out_internal_limit" and "bw_out_external_limit".
146 * // FIXME: check usage
147 */
148 struct GNUNET_BANDWIDTH_Value32NBO bw_out_external_limit;
149
150
151 /**
152 * Is the neighbour queue empty and thus ready for us 125 * Is the neighbour queue empty and thus ready for us
153 * to transmit an encrypted message? 126 * to transmit an encrypted message?
154 */ 127 */
@@ -249,19 +222,10 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
249 gettext_noop ("# established sessions"), 222 gettext_noop ("# established sessions"),
250 GNUNET_CONTAINER_multihashmap_size (sessions), 223 GNUNET_CONTAINER_multihashmap_size (sessions),
251 GNUNET_NO); 224 GNUNET_NO);
252#if 0
253 /* FIXME: integration with ATS for quota calculations... */
254 /* FIXME: who should do this? Neighbours!? */
255 GNUNET_TRANSPORT_set_quota (transport,
256 peer,
257 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
258 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT);
259#endif
260 /* FIXME: we should probably do this periodically (in case 225 /* FIXME: we should probably do this periodically (in case
261 type map message is lost...) */ 226 type map message is lost...) */
262 hdr = GSC_TYPEMAP_compute_type_map_message (); 227 hdr = GSC_TYPEMAP_compute_type_map_message ();
263 GSC_KX_encrypt_and_transmit (kx, 228 GSC_KX_encrypt_and_transmit (kx,
264 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
265 hdr, 229 hdr,
266 ntohs (hdr->size)); 230 ntohs (hdr->size));
267 GNUNET_free (hdr); 231 GNUNET_free (hdr);
@@ -539,7 +503,6 @@ try_transmission (struct Session *session)
539 /* now actually transmit... */ 503 /* now actually transmit... */
540 session->ready_to_transmit = GNUNET_NO; 504 session->ready_to_transmit = GNUNET_NO;
541 GSC_KX_encrypt_and_transmit (session->kxinfo, 505 GSC_KX_encrypt_and_transmit (session->kxinfo,
542 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT /* FIXME! */,
543 pbuf, 506 pbuf,
544 used); 507 used);
545 } 508 }
@@ -726,23 +689,6 @@ GSC_SESSIONS_handle_client_have_peer (void *cls, struct GNUNET_SERVER_Client *cl
726 689
727 690
728/** 691/**
729 * Update information about a session.
730 *
731 * @param peer peer who's session should be updated
732 * @param bw_out new outbound bandwidth limit for the peer
733 * @param atsi performance information
734 * @param atsi_count number of performance records supplied
735 */
736void
737GSC_SESSIONS_update (const struct GNUNET_PeerIdentity *peer,
738 struct GNUNET_BANDWIDTH_Value32NBO bw_out)
739{
740 // FIXME
741 /* not implemented */
742}
743
744
745/**
746 * Initialize sessions subsystem. 692 * Initialize sessions subsystem.
747 */ 693 */
748void 694void