GNUnet  0.10.x
Data Fields
GNUNET_ATS_SessionRecord Struct Reference

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

Collaboration diagram for GNUNET_ATS_SessionRecord:
[legend]

Data Fields

struct GNUNET_ATS_TransportHandleath
 Transport handle this session record belongs to. More...
 
const char * address
 Address data. More...
 
struct GNUNET_ATS_Sessionsession
 Session handle, NULL if inbound-only (also implies we cannot actually control inbound traffic via transport!). More...
 
struct GNUNET_PeerIdentity pid
 Identity of the peer reached at address. More...
 
struct GNUNET_ATS_Properties properties
 Performance data about the session. More...
 
uint32_t slot
 Unique ID to identify this session at this pid in IPC messages. More...
 

Detailed Description

Information we track per session, incoming or outgoing.

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

Definition at line 38 of file ats_api2_transport.c.

Field Documentation

◆ ath

struct GNUNET_ATS_TransportHandle* GNUNET_ATS_SessionRecord::ath

◆ address

const char* GNUNET_ATS_SessionRecord::address

◆ session

struct GNUNET_ATS_Session* GNUNET_ATS_SessionRecord::session

Session handle, NULL if inbound-only (also implies we cannot actually control inbound traffic via transport!).

So if session is NULL, the properties are informative for ATS (connection exists, utilization) but ATS cannot directly influence it (and should thus not call the GNUNET_ATS_AllocationCallback for this session, which is obvious as NULL is not a meaningful session to allocation resources to).

Definition at line 60 of file ats_api2_transport.c.

Referenced by GNUNET_ATS_session_add(), handle_ats_session_allocation(), and send_add_session_message().

◆ pid

struct GNUNET_PeerIdentity GNUNET_ATS_SessionRecord::pid

◆ properties

struct GNUNET_ATS_Properties GNUNET_ATS_SessionRecord::properties

Performance data about the session.

Definition at line 70 of file ats_api2_transport.c.

Referenced by GNUNET_ATS_session_add(), GNUNET_ATS_session_update(), and send_add_session_message().

◆ slot

uint32_t GNUNET_ATS_SessionRecord::slot

Unique ID to identify this session at this pid in IPC messages.

Definition at line 76 of file ats_api2_transport.c.

Referenced by GNUNET_ATS_session_add(), GNUNET_ATS_session_del(), GNUNET_ATS_session_update(), match_session_cb(), and send_add_session_message().


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