GNUnet  0.19.5
GNUNET_ATS_AddressRecord Struct Reference

Information we track per address, incoming or outgoing. More...

Collaboration diagram for GNUNET_ATS_AddressRecord:
[legend]

Data Fields

struct GNUNET_ATS_SchedulingHandlesh
 Scheduling handle this address record belongs to. More...
 
struct GNUNET_HELLO_Addressaddress
 Address data. More...
 
struct GNUNET_ATS_Sessionsession
 Session handle. More...
 
struct GNUNET_ATS_PropertiesNBO properties
 Performance data about the address. More...
 
uint32_t slot
 Which slot (index) in the session array does this record correspond to? FIXME: a linear search on this is really crappy! Maybe switch to a 64-bit global counter and be done with it? Or does that then cause too much trouble on the ATS-service side? More...
 
int in_destroy
 We're about to destroy this address record, just ATS does not know this yet. More...
 

Detailed Description

Information we track per address, incoming or outgoing.

It also doesn't matter if we have a session, any address that ATS is allowed to suggest right now should be tracked.

Definition at line 57 of file ats_api_scheduling.c.

Field Documentation

◆ sh

struct GNUNET_ATS_SchedulingHandle* GNUNET_ATS_AddressRecord::sh

Scheduling handle this address record belongs to.

Definition at line 62 of file ats_api_scheduling.c.

Referenced by GNUNET_ATS_address_add(), GNUNET_ATS_address_destroy(), and GNUNET_ATS_address_update().

◆ address

◆ session

◆ properties

struct GNUNET_ATS_PropertiesNBO GNUNET_ATS_AddressRecord::properties

Performance data about the address.

Definition at line 73 of file ats_api_scheduling.c.

Referenced by GNUNET_ATS_address_add(), GNUNET_ATS_address_update(), and send_add_address_message().

◆ slot

uint32_t GNUNET_ATS_AddressRecord::slot

Which slot (index) in the session array does this record correspond to? FIXME: a linear search on this is really crappy! Maybe switch to a 64-bit global counter and be done with it? Or does that then cause too much trouble on the ATS-service side?

Definition at line 88 of file ats_api_scheduling.c.

Referenced by GNUNET_ATS_address_add(), GNUNET_ATS_address_destroy(), GNUNET_ATS_address_update(), handle_ats_address_suggestion(), and send_add_address_message().

◆ in_destroy

int GNUNET_ATS_AddressRecord::in_destroy

We're about to destroy this address record, just ATS does not know this yet.

Once ATS confirms its destruction, we can clean up.

Definition at line 95 of file ats_api_scheduling.c.

Referenced by GNUNET_ATS_address_destroy(), and handle_ats_address_suggestion().


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