aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.c
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-10-10 11:20:35 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-10-10 11:20:35 +0000
commit2a3164052abe9804a089061e29e3480220240f8d (patch)
treea0661925c366ef18f0dd7bda5b81de510dffdaae /src/core/gnunet-service-core_sessions.c
parent75578e8ee107909c430cb6644f12912fc0a61c8d (diff)
removing dead bw code
git-svn-id: https://gnunet.org/svn/gnunet@17311 140774ce-b5e7-0310-ab8b-a85725594a96
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 c82c728632..4a3fc1e87e 100644
--- a/src/core/gnunet-service-core_sessions.c
+++ b/src/core/gnunet-service-core_sessions.c
@@ -122,33 +122,6 @@ struct Session
GNUNET_SCHEDULER_TaskIdentifier cork_task;
/**
- * Available bandwidth out for this peer (current target). This
- * value should be the 'MIN' of 'bw_out_internal_limit' and
- * 'bw_out_external_limit'.
- */
- struct GNUNET_BANDWIDTH_Value32NBO bw_out;
-
- /**
- * Internal bandwidth limit set for this peer (initially typically
- * set to "MAX_INT"). Actual "bw_out" is MIN of
- * "bpm_out_internal_limit" and "bw_out_external_limit".
- *
- *
- *
- * // FIXME: check usage
- */
- struct GNUNET_BANDWIDTH_Value32NBO bw_out_internal_limit;
-
- /**
- * External bandwidth limit set for this peer by the
- * peer that we are communicating with. "bw_out" is MIN of
- * "bw_out_internal_limit" and "bw_out_external_limit".
- * // FIXME: check usage
- */
- struct GNUNET_BANDWIDTH_Value32NBO bw_out_external_limit;
-
-
- /**
* Is the neighbour queue empty and thus ready for us
* to transmit an encrypted message?
*/
@@ -249,19 +222,10 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
gettext_noop ("# established sessions"),
GNUNET_CONTAINER_multihashmap_size (sessions),
GNUNET_NO);
-#if 0
- /* FIXME: integration with ATS for quota calculations... */
- /* FIXME: who should do this? Neighbours!? */
- GNUNET_TRANSPORT_set_quota (transport,
- peer,
- GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
- GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT);
-#endif
/* FIXME: we should probably do this periodically (in case
type map message is lost...) */
hdr = GSC_TYPEMAP_compute_type_map_message ();
GSC_KX_encrypt_and_transmit (kx,
- GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
hdr,
ntohs (hdr->size));
GNUNET_free (hdr);
@@ -539,7 +503,6 @@ try_transmission (struct Session *session)
/* now actually transmit... */
session->ready_to_transmit = GNUNET_NO;
GSC_KX_encrypt_and_transmit (session->kxinfo,
- GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT /* FIXME! */,
pbuf,
used);
}
@@ -726,23 +689,6 @@ GSC_SESSIONS_handle_client_have_peer (void *cls, struct GNUNET_SERVER_Client *cl
/**
- * Update information about a session.
- *
- * @param peer peer who's session should be updated
- * @param bw_out new outbound bandwidth limit for the peer
- * @param atsi performance information
- * @param atsi_count number of performance records supplied
- */
-void
-GSC_SESSIONS_update (const struct GNUNET_PeerIdentity *peer,
- struct GNUNET_BANDWIDTH_Value32NBO bw_out)
-{
- // FIXME
- /* not implemented */
-}
-
-
-/**
* Initialize sessions subsystem.
*/
void