along with this program. If not, see <http://www.gnu.org/licenses/>.
SPDX-License-Identifier: AGPL3.0-or-later
-*/
+ */
/**
* @file ats/ats2.h
* @brief automatic transport selection messages
/**
* ATS performance characteristics for an address.
*/
-struct PropertiesNBO
-{
-
+struct PropertiesNBO {
/**
* Delay. Time between when the time packet is sent and the packet
* arrives. FOREVER if we did not (successfully) measure yet.
* A `enum GNUNET_TRANSPORT_CommunicatorCharacteristics` in NBO.
*/
uint32_t cc;
-
};
* Application client to ATS service: we would like to have
* address suggestions for this peer.
*/
-struct ExpressPreferenceMessage
-{
+struct ExpressPreferenceMessage {
/**
* Type is #GNUNET_MESSAGE_TYPE_ATS_SUGGEST or
* #GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL to stop
* How much bandwidth in bytes/second does the application expect?
*/
struct GNUNET_BANDWIDTH_Value32NBO bw;
-
};
/**
* Transport client to ATS service: here is another session you can use.
*/
-struct SessionAddMessage
-{
+struct SessionAddMessage {
/**
* Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD or
* #GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY
/* followed by:
* - char * address (including '\0'-termination).
*/
-
};
* Message used to notify ATS that the performance
* characteristics for an session have changed.
*/
-struct SessionUpdateMessage
-{
+struct SessionUpdateMessage {
/**
* Message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE.
*/
* Performance properties of the session.
*/
struct PropertiesNBO properties;
-
};
* was destroyed and must thus henceforth no longer be considered
* for scheduling.
*/
-struct SessionDelMessage
-{
+struct SessionDelMessage {
/**
* Type is #GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL.
*/
* to find the session faster).
*/
struct GNUNET_PeerIdentity peer;
-
};
* identified by the given @e session_id for the given @e peer with
* the given @e bandwidth_in and @e bandwidth_out limits from now on.
*/
-struct SessionAllocationMessage
-{
+struct SessionAllocationMessage {
/**
* A message of type #GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION.
*/
* How much bandwidth we are allowed for receiving.
*/
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
-
};
* ATS Service suggests to the transport service to try the address
* for the given @e peer.
*/
-struct AddressSuggestionMessage
-{
+struct AddressSuggestionMessage {
/**
* A message of type #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION.
*/