GNUnet  0.10.x
Data Fields
Counters Struct Reference

Closure for update_counters and update_allocation. More...

Collaboration diagram for Counters:
[legend]

Data Fields

struct SimpleHandleh
 Plugin's state. More...
 
uint64_t bw_out_by_nt [GNUNET_NT_COUNT]
 Bandwidth that applications would prefer to allocate in this network type. More...
 
uint64_t bw_in_by_nt [GNUNET_NT_COUNT]
 Current bandwidth utilization for this network type. More...
 
double scale_out [GNUNET_NT_COUNT]
 By how much do we have to scale (up or down) our expectations for outbound bandwidth? More...
 
double scale_in [GNUNET_NT_COUNT]
 By how much do we have to scale (up or down) our expectations for inbound bandwidth? More...
 

Detailed Description

Closure for update_counters and update_allocation.

Definition at line 662 of file plugin_ats2_simple.c.

Field Documentation

◆ h

struct SimpleHandle* Counters::h

Plugin's state.

Definition at line 667 of file plugin_ats2_simple.c.

Referenced by update().

◆ bw_out_by_nt

uint64_t Counters::bw_out_by_nt[GNUNET_NT_COUNT]

Bandwidth that applications would prefer to allocate in this network type.

We initially add all requested allocations to the respective network type where the given preference is best satisfied. Later we may rebalance.

Definition at line 675 of file plugin_ats2_simple.c.

Referenced by update(), and update_counters().

◆ bw_in_by_nt

uint64_t Counters::bw_in_by_nt[GNUNET_NT_COUNT]

Current bandwidth utilization for this network type.

We simply add the current goodput up (with some fairness considerations).

Definition at line 681 of file plugin_ats2_simple.c.

Referenced by update(), and update_counters().

◆ scale_out

double Counters::scale_out[GNUNET_NT_COUNT]

By how much do we have to scale (up or down) our expectations for outbound bandwidth?

Definition at line 687 of file plugin_ats2_simple.c.

Referenced by update(), and update_allocation().

◆ scale_in

double Counters::scale_in[GNUNET_NT_COUNT]

By how much do we have to scale (up or down) our expectations for inbound bandwidth?

Definition at line 693 of file plugin_ats2_simple.c.

Referenced by update(), and update_allocation().


The documentation for this struct was generated from the following file: