GNUnet 0.22.2
CadetConnection Struct Reference

Low-level connection to a destination. More...

Collaboration diagram for CadetConnection:
[legend]

Data Fields

struct GNUNET_CADET_ConnectionTunnelIdentifier cid
 ID of the connection. More...
 
struct CadetPeerdestination
 To which peer does this connection go? More...
 
struct CadetTConnectionct
 Which tunnel is using this connection? More...
 
struct CadetPeerPathpath
 Path we are using to our destination. More...
 
struct GNUNET_MQ_Envelopeenv
 Pending message, NULL if we are ready to transmit. More...
 
struct GCP_MessageQueueManagermq_man
 Handle for calling GCP_request_mq_cancel() once we are finished. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Task for connection maintenance. More...
 
struct CadetTunnelQueueEntrykeepalive_qe
 Queue entry for keepalive messages. More...
 
GCC_ReadyCallback ready_cb
 Function to call once we are ready to transmit. More...
 
void * ready_cb_cls
 Closure for ready_cb. More...
 
struct GNUNET_TIME_Relative retry_delay
 How long do we wait before we try again with a CREATE message? More...
 
struct GNUNET_TIME_Absolute create_at
 Earliest time for re-trying CREATE. More...
 
struct GNUNET_TIME_Absolute create_ack_at
 Earliest time for re-trying CREATE_ACK. More...
 
struct CadetConnectionMetrics metrics
 Performance metrics for this connection. More...
 
enum CadetConnectionState state
 State of the connection. More...
 
unsigned int latency_datapoints
 How many latency observations did we make for this connection? More...
 
unsigned int off
 Offset of our destination in path. More...
 
int mqm_ready
 Are we ready to transmit via mq_man right now? More...
 

Detailed Description

Low-level connection to a destination.

Definition at line 85 of file gnunet-service-cadet_connection.c.

Field Documentation

◆ cid

◆ destination

struct CadetPeer* CadetConnection::destination

To which peer does this connection go?

Definition at line 95 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), GCC_create_inbound(), GCC_debug(), and send_create().

◆ ct

◆ path

struct CadetPeerPath* CadetConnection::path

Path we are using to our destination.

Definition at line 105 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), GCC_create_inbound(), GCC_debug(), GCC_destroy(), GCC_get_path(), and send_create().

◆ env

struct GNUNET_MQ_Envelope* CadetConnection::env

Pending message, NULL if we are ready to transmit.

Definition at line 110 of file gnunet-service-cadet_connection.c.

Referenced by send_create(), and send_create_ack().

◆ mq_man

struct GCP_MessageQueueManager* CadetConnection::mq_man

◆ task

◆ keepalive_qe

struct CadetTunnelQueueEntry* CadetConnection::keepalive_qe

◆ ready_cb

GCC_ReadyCallback CadetConnection::ready_cb

Function to call once we are ready to transmit.

Definition at line 130 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), GCC_create_inbound(), and update_state().

◆ ready_cb_cls

void* CadetConnection::ready_cb_cls

Closure for ready_cb.

Definition at line 135 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), GCC_create_inbound(), and update_state().

◆ retry_delay

struct GNUNET_TIME_Relative CadetConnection::retry_delay

How long do we wait before we try again with a CREATE message?

Definition at line 140 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), manage_first_hop_mq(), send_create(), and send_create_ack().

◆ create_at

struct GNUNET_TIME_Absolute CadetConnection::create_at

Earliest time for re-trying CREATE.

Definition at line 145 of file gnunet-service-cadet_connection.c.

Referenced by manage_first_hop_mq(), and send_create().

◆ create_ack_at

struct GNUNET_TIME_Absolute CadetConnection::create_ack_at

Earliest time for re-trying CREATE_ACK.

Definition at line 150 of file gnunet-service-cadet_connection.c.

Referenced by GCC_handle_duplicate_create(), manage_first_hop_mq(), and send_create_ack().

◆ metrics

◆ state

◆ latency_datapoints

unsigned int CadetConnection::latency_datapoints

How many latency observations did we make for this connection?

Definition at line 165 of file gnunet-service-cadet_connection.c.

Referenced by GCC_latency_observed().

◆ off

unsigned int CadetConnection::off

Offset of our destination in path.

Definition at line 170 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), GCC_create_inbound(), GCC_destroy(), GCC_get_path(), and send_create().

◆ mqm_ready


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