GNUnet  0.10.x
Data Fields
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 86 of file gnunet-service-cadet_connection.c.

Field Documentation

◆ cid

struct GNUNET_CADET_ConnectionTunnelIdentifier CadetConnection::cid

◆ destination

struct CadetPeer* CadetConnection::destination

To which peer does this connection go?

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

Referenced by GCC_debug().

◆ ct

struct CadetTConnection* CadetConnection::ct

◆ path

struct CadetPeerPath* CadetConnection::path

Path we are using to our destination.

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

Referenced by connection_create(), 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 112 of file gnunet-service-cadet_connection.c.

Referenced by GCC_destroy_without_tunnel(), send_create(), and send_create_ack().

◆ mq_man

struct GCP_MessageQueueManager* CadetConnection::mq_man

◆ task

struct GNUNET_SCHEDULER_Task* CadetConnection::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 132 of file gnunet-service-cadet_connection.c.

Referenced by connection_create(), and update_state().

◆ ready_cb_cls

void* CadetConnection::ready_cb_cls

Closure for ready_cb.

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

Referenced by connection_create(), 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 142 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 147 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 152 of file gnunet-service-cadet_connection.c.

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

◆ metrics

struct CadetConnectionMetrics CadetConnection::metrics

◆ state

enum CadetConnectionState CadetConnection::state

◆ latency_datapoints

unsigned int CadetConnection::latency_datapoints

How many latency observations did we make for this connection?

Definition at line 167 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 172 of file gnunet-service-cadet_connection.c.

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

◆ mqm_ready

int CadetConnection::mqm_ready

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