GNUnet 0.22.2
GNUNET_SETU_ListenHandle Struct Reference

Opaque handle to a listen operation. More...

Collaboration diagram for GNUNET_SETU_ListenHandle:
[legend]

Data Fields

struct GNUNET_MQ_Handlemq
 Message queue for the client. More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration handle for the listener, stored here to be able to reconnect transparently on connection failure. More...
 
GNUNET_SETU_ListenCallback listen_cb
 Function to call on a new incoming request, or on error. More...
 
void * listen_cls
 Closure for listen_cb. More...
 
struct GNUNET_HashCode app_id
 Application ID we listen for. More...
 
struct GNUNET_TIME_Relative reconnect_backoff
 Time to wait until we try to reconnect on failure. More...
 
struct GNUNET_SCHEDULER_Taskreconnect_task
 Task for reconnecting when the listener fails. More...
 

Detailed Description

Opaque handle to a listen operation.

Definition at line 145 of file setu_api.c.

Field Documentation

◆ mq

struct GNUNET_MQ_Handle* GNUNET_SETU_ListenHandle::mq

Message queue for the client.

Definition at line 150 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), GNUNET_SETU_listen_cancel(), handle_client_listener_error(), handle_request(), and listen_connect().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_SETU_ListenHandle::cfg

Configuration handle for the listener, stored here to be able to reconnect transparently on connection failure.

Definition at line 157 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), and listen_connect().

◆ listen_cb

GNUNET_SETU_ListenCallback GNUNET_SETU_ListenHandle::listen_cb

Function to call on a new incoming request, or on error.

Definition at line 163 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), and handle_request().

◆ listen_cls

void* GNUNET_SETU_ListenHandle::listen_cls

Closure for listen_cb.

Definition at line 168 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), and handle_request().

◆ app_id

struct GNUNET_HashCode GNUNET_SETU_ListenHandle::app_id

Application ID we listen for.

Definition at line 173 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), GNUNET_SETU_listen_cancel(), and listen_connect().

◆ reconnect_backoff

struct GNUNET_TIME_Relative GNUNET_SETU_ListenHandle::reconnect_backoff

Time to wait until we try to reconnect on failure.

Definition at line 178 of file setu_api.c.

Referenced by GNUNET_SETU_listen(), handle_client_listener_error(), and handle_request().

◆ reconnect_task

struct GNUNET_SCHEDULER_Task* GNUNET_SETU_ListenHandle::reconnect_task

Task for reconnecting when the listener fails.

Definition at line 183 of file setu_api.c.

Referenced by GNUNET_SETU_listen_cancel(), handle_client_listener_error(), and listen_connect().


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