*/
/**
- * The structs defined here are used by the transport plugin to tell ATS about the transport's properties like cost and quality
- * and on the other side the structs are used by highlevel components to communicate the constraints they have for a transport to ATS
+ * The structs defined here are used by the transport plugin to tell ATS about
+ * the transport's properties like cost and quality and on the other side
+ * the structs are used by highlevel components to communicate the constraints
+ * they have for a transport to ATS
*
* +---+
* +-----------+ Constraints | | Plugin properties +---------+
/**
* Enum defining all known property types for ATS
* Enum values are used in the GNUNET_ATS_Information struct as (key,value)-pair
- * Cost are always stored in uint32_t, so all units used to define costs have to be normalized to fit in uint32_t [0 .. 4.294.967.295]
+ *
+ * Cost are always stored in uint32_t, so all units used to define costs
+ * have to be normalized to fit in uint32_t [0 .. 4.294.967.295]
+ *
* To keep the elements ordered
* 1..1024 : Values with a relation to cost
* 1025..2048 : Values with a relation to quality
/**
* Volume based cost in financial units to transmit data
*
- * Note: This value is not bound to a specific currency or unit and only used locally
- * "cent" just refers the smallest amount of money in the respective currency
+ * Note: This value is not bound to a specific currency or unit and only
+ * used locally.
+ * "cent" just refers the smallest amount of money in the respective
+ * currency.
*
* Unit: [cent/MB]
*
/**
* Time based cost in financial units to transmit data
*
- * Note: This value is not bound to a specific currency or unit and only used locally
- * "cent" just refers the smallest amount of money in the respective currency
+ * Note: This value is not bound to a specific currency or unit and only
+ * used locally.
+ * "cent" just refers the smallest amount of money in the respective
+ * currency.
*
* Unit: [cent/h]
*
/**
* Energy consumption
*
- * Energy consumption using this transport when sending with a certain power at a certain bitrate
- * This is only an approximation based on:
+ * Energy consumption using this transport when sending with a certain
+ * power at a certain bitrate. This is only an approximation based on:
* Energy consumption E = P / D
*
* with:
/**
* Connect cost
- * How many bytes are transmitted to initiate a new connection using this transport?
+ * How many bytes are transmitted to initiate a new connection using
+ * this transport?
*
* Unit: [bytes]
*
*
* Examples:
*
- * UDP (No connection) : 0 bytes
- * TCP (TCP 3-Way handshake): 220 bytes Ethernet, 172 bytes TCP/IP, 122 bytes TCP
- * HTTP (TCP + Header) : 477 bytes Ethernet, 429 bytes TCP/IP, 374 bytes TCP, 278 bytes HTTP
- * HTTPS HTTP+TLS Handshake: 2129 bytes Ethernet, 1975 bytes TCP/IP, 1755 bytes TCP, 1403 bytes HTTPS
+ * UDP (No connection) :
+ * 0 bytes
+ * TCP (TCP 3-Way handshake):
+ * 220 bytes Ethernet, 172 bytes TCP/IP, 122 bytes TCP
+ * HTTP (TCP + Header) :
+ * 477 bytes Ethernet, 429 bytes TCP/IP, 374 bytes TCP, 278 bytes HTTP
+ * HTTPS HTTP+TLS Handshake:
+ * 2129 bytes Ethernet, 1975 bytes TCP/IP, 1755 bytes TCP, 1403 bytes HTTPS
*
* */
GNUNET_ATS_COST_CONNECT = 5,
/**
* Network overhead
*
- * How many bytes are sent over the wire when 1 kilobyte (1024 bytes) of application data is transmitted?
- * A factor used with connect cost, bandwidth cost and energy cost to describe the overhead produced by the transport protocol
+ * How many bytes are sent over the wire when 1 kilobyte (1024 bytes)
+ * of application data is transmitted?
+ * A factor used with connect cost, bandwidth cost and energy cost
+ * to describe the overhead produced by the transport protocol
*
* Unit: [bytes/kb]
*
* LAN : 0
* WLAN : 400
* Bluetooth : 100
- * Note: This numbers are just assumptions as an example, not measured or somehow determined
+ * Note: This numbers are just assumptions as an example, not
+ * measured or somehow determined
*/
GNUNET_ATS_QUALITY_NET_ERRORRATE = 1030,
* LAN : 0
* WLAN : 400
* Bluetooth : 100
- * Note: This numbers are just assumptions as an example, not measured or somehow determined
+ * Note: This numbers are just assumptions as an example, not
+ * measured or somehow determined
*/
GNUNET_ATS_QUALITY_NET_DROPRATE = 1031,
* LAN : 0
* WLAN : 40
* Bluetooth : 10
- * Note: This numbers are just assumptions as an example, not measured or somehow determined
+ * Note: This numbers are just assumptions as an example, not measured
+ * or somehow determined
*/
GNUNET_ATS_QUALITY_NET_LOSSRATE = 1032,
};
/**
- * This structure will be used by plugins to communicate costs to ATS or by higher level components to tell ATS their constraints
- * Always a pair of (GNUNET_ATS_Property, uint32_t value)
- * Value is always uint32_t, so all units used to define costs have to be normalized to fit uint32_t
+ * This structure will be used by plugins to communicate costs to ATS or by
+ * higher level components to tell ATS their constraints.
+ * Always a pair of (GNUNET_ATS_Property, uint32_t value).
+ * Value is always uint32_t, so all units used to define costs have to
+ * be normalized to fit uint32_t.
*/
struct GNUNET_ATS_Information
{