GNUnet  0.11.x
Data Fields
GNUNET_ARM_Handle Struct Reference

Handle for interacting with ARM. More...

Collaboration diagram for GNUNET_ARM_Handle:
[legend]

Data Fields

struct GNUNET_MQ_Handlemq
 Our connection to the ARM service. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 The configuration that we are using. More...
 
struct GNUNET_ARM_Operationoperation_pending_head
 Head of doubly-linked list of pending operations. More...
 
struct GNUNET_ARM_Operationoperation_pending_tail
 Tail of doubly-linked list of pending operations. More...
 
GNUNET_ARM_ConnectionStatusCallback conn_status
 Callback to invoke on connection/disconnection. More...
 
void * conn_status_cls
 Closure for conn_status. More...
 
struct GNUNET_ARM_Operationthm
 ARM operation where the goal is to wait for ARM shutdown to complete. More...
 
struct GNUNET_SCHEDULER_Taskreconnect_task
 ID of the reconnect task (if any). More...
 
struct GNUNET_TIME_Relative retry_backoff
 Current delay we use for re-trying to connect to core. More...
 
uint64_t request_id_counter
 Counter for request identifiers. More...
 
int currently_up
 Have we detected that ARM is up? More...
 

Detailed Description

Handle for interacting with ARM.

Definition at line 102 of file arm_api.c.

Field Documentation

◆ mq

struct GNUNET_MQ_Handle* GNUNET_ARM_Handle::mq

Our connection to the ARM service.

Definition at line 107 of file arm_api.c.

Referenced by change_service(), GNUNET_ARM_disconnect(), GNUNET_ARM_request_service_list(), reconnect_arm(), and reconnect_arm_later().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_ARM_Handle::cfg

The configuration that we are using.

Definition at line 112 of file arm_api.c.

Referenced by GNUNET_ARM_connect(), reconnect_arm(), and start_arm_service().

◆ operation_pending_head

struct GNUNET_ARM_Operation* GNUNET_ARM_Handle::operation_pending_head

◆ operation_pending_tail

struct GNUNET_ARM_Operation* GNUNET_ARM_Handle::operation_pending_tail

◆ conn_status

GNUNET_ARM_ConnectionStatusCallback GNUNET_ARM_Handle::conn_status

Callback to invoke on connection/disconnection.

Definition at line 127 of file arm_api.c.

Referenced by GNUNET_ARM_connect(), handle_confirm(), notify_running(), reconnect_arm(), and reconnect_arm_later().

◆ conn_status_cls

void* GNUNET_ARM_Handle::conn_status_cls

Closure for conn_status.

Definition at line 132 of file arm_api.c.

Referenced by GNUNET_ARM_connect(), handle_confirm(), notify_running(), reconnect_arm(), and reconnect_arm_later().

◆ thm

struct GNUNET_ARM_Operation* GNUNET_ARM_Handle::thm

ARM operation where the goal is to wait for ARM shutdown to complete.

This operation is special in that it waits for an error on the mq. So we complete it by calling the continuation in the mq_error_handler(). Note that the operation is no longer in the operation_pending_head DLL once it is referenced from this field.

Definition at line 142 of file arm_api.c.

Referenced by GNUNET_ARM_operation_cancel(), handle_arm_result(), and mq_error_handler().

◆ reconnect_task

struct GNUNET_SCHEDULER_Task* GNUNET_ARM_Handle::reconnect_task

ID of the reconnect task (if any).

Definition at line 147 of file arm_api.c.

Referenced by GNUNET_ARM_disconnect(), reconnect_arm_later(), and reconnect_arm_task().

◆ retry_backoff

struct GNUNET_TIME_Relative GNUNET_ARM_Handle::retry_backoff

Current delay we use for re-trying to connect to core.

Definition at line 152 of file arm_api.c.

Referenced by reconnect_arm_later().

◆ request_id_counter

uint64_t GNUNET_ARM_Handle::request_id_counter

Counter for request identifiers.

They are used to match replies from ARM to operations in the operation_pending_head DLL.

Definition at line 158 of file arm_api.c.

Referenced by change_service(), and GNUNET_ARM_request_service_list().

◆ currently_up

int GNUNET_ARM_Handle::currently_up

Have we detected that ARM is up?

Definition at line 163 of file arm_api.c.

Referenced by GNUNET_ARM_request_service_start(), handle_confirm(), mq_error_handler(), notify_running(), reconnect_arm(), and reconnect_arm_later().


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