if (kx->public_key == NULL)
{
GNUNET_free_non_null (kx->skm_received);
- kx->skm_received = GNUNET_copy_message (msg);
+ kx->skm_received = (struct SetKeyMessage*) GNUNET_copy_message (msg);
return;
}
if (0 !=
{
/* defer */
GNUNET_free_non_null (kx->ping_received);
- kx->ping_received = GNUNET_copy_message (msg);
+ kx->ping_received = (struct PingMessage*) GNUNET_copy_message (msg);
return;
}
m = (const struct PingMessage*) msg;
if (kx->status == KX_STATE_KEY_SENT)
{
GNUNET_free_non_null (kx->pong_received);
- kx->pong_received = GNUNET_copy_message (msg);
+ kx->pong_received = (struct PongMessage*) GNUNET_copy_message (msg);
}
return;
}
*/
GNUNET_SCHEDULER_TaskIdentifier cork_task;
+ /**
+ * Tracking bandwidth for sending to this peer.
+ * // FIXME: unused! should it be used?
+ */
+ struct GNUNET_BANDWIDTH_Tracker available_send_window;
+
+ /**
+ * Tracking bandwidth for receiving from this peer.
+ * // FIXME: need to set it!
+ */
+ struct GNUNET_BANDWIDTH_Tracker available_recv_window;
+
+ /**
+ * Available bandwidth out for this peer (current target).
+ * // FIXME: check usage!
+ */
+ struct GNUNET_BANDWIDTH_Value32NBO bw_out;
+
+ /**
+ * Internal bandwidth limit set for this peer (initially typically
+ * set to "-1"). 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?