GNUnet  0.11.x
Data Fields
GNUNET_RPS_Handle Struct Reference

Handler to handle requests from a client. More...

Collaboration diagram for GNUNET_RPS_Handle:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 The handle to the client configuration. More...
 
struct GNUNET_MQ_Handlemq
 The message queue to the client. More...
 
GNUNET_RPS_NotifyReadyCB view_update_cb
 Callback called on each update of the view. More...
 
void * view_update_cls
 Closure to each requested update of the view. More...
 
void * stream_input_cls
 Closure to each requested peer from the biased stream. More...
 
struct GNUNET_RPS_StreamRequestHandlestream_requests_head
 Head of the DLL of stream requests. More...
 
struct GNUNET_RPS_StreamRequestHandlestream_requests_tail
 Tail of the DLL of stream requests. More...
 
struct GNUNET_NSE_Handlense
 Handle to nse service. More...
 
struct GNUNET_RPS_Request_Handlerh_head
 Pointer to the head element in DLL of request handles. More...
 
struct GNUNET_RPS_Request_Handlerh_tail
 Pointer to the tail element in DLL of request handles. More...
 
struct GNUNET_RPS_Request_Handle_Single_Inforhs_head
 Pointer to the head element in DLL of single request handles. More...
 
struct GNUNET_RPS_Request_Handle_Single_Inforhs_tail
 Pointer to the tail element in DLL of single request handles. More...
 
float desired_probability
 The desired probability with which we want to have observed all peers. More...
 
float deficiency_factor
 A factor that catches the 'bias' of a random stream of peer ids. More...
 

Detailed Description

Handler to handle requests from a client.

Definition at line 78 of file rps_api.c.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_RPS_Handle::cfg

The handle to the client configuration.

Definition at line 83 of file rps_api.c.

Referenced by GNUNET_RPS_connect(), and reconnect().

◆ mq

struct GNUNET_MQ_Handle* GNUNET_RPS_Handle::mq

◆ view_update_cb

GNUNET_RPS_NotifyReadyCB GNUNET_RPS_Handle::view_update_cb

Callback called on each update of the view.

Definition at line 93 of file rps_api.c.

Referenced by GNUNET_RPS_disconnect(), GNUNET_RPS_view_request(), GNUNET_RPS_view_request_cancel(), and handle_view_update().

◆ view_update_cls

void* GNUNET_RPS_Handle::view_update_cls

Closure to each requested update of the view.

Definition at line 98 of file rps_api.c.

Referenced by GNUNET_RPS_view_request(), and handle_view_update().

◆ stream_input_cls

void* GNUNET_RPS_Handle::stream_input_cls

Closure to each requested peer from the biased stream.

Definition at line 103 of file rps_api.c.

◆ stream_requests_head

struct GNUNET_RPS_StreamRequestHandle* GNUNET_RPS_Handle::stream_requests_head

◆ stream_requests_tail

struct GNUNET_RPS_StreamRequestHandle* GNUNET_RPS_Handle::stream_requests_tail

Tail of the DLL of stream requests.

Definition at line 113 of file rps_api.c.

Referenced by new_stream_request(), and remove_stream_request().

◆ nse

struct GNUNET_NSE_Handle* GNUNET_RPS_Handle::nse

Handle to nse service.

Definition at line 118 of file rps_api.c.

Referenced by GNUNET_RPS_disconnect(), and reconnect().

◆ rh_head

struct GNUNET_RPS_Request_Handle* GNUNET_RPS_Handle::rh_head

Pointer to the head element in DLL of request handles.

Definition at line 123 of file rps_api.c.

Referenced by GNUNET_RPS_disconnect(), GNUNET_RPS_request_cancel(), GNUNET_RPS_request_peers(), and nse_cb().

◆ rh_tail

struct GNUNET_RPS_Request_Handle* GNUNET_RPS_Handle::rh_tail

Pointer to the tail element in DLL of request handles.

Definition at line 128 of file rps_api.c.

Referenced by GNUNET_RPS_request_cancel(), and GNUNET_RPS_request_peers().

◆ rhs_head

struct GNUNET_RPS_Request_Handle_Single_Info* GNUNET_RPS_Handle::rhs_head

Pointer to the head element in DLL of single request handles.

Definition at line 133 of file rps_api.c.

Referenced by GNUNET_RPS_disconnect(), GNUNET_RPS_request_peer_info(), GNUNET_RPS_request_single_info_cancel(), and nse_cb().

◆ rhs_tail

struct GNUNET_RPS_Request_Handle_Single_Info* GNUNET_RPS_Handle::rhs_tail

Pointer to the tail element in DLL of single request handles.

Definition at line 138 of file rps_api.c.

Referenced by GNUNET_RPS_request_peer_info(), and GNUNET_RPS_request_single_info_cancel().

◆ desired_probability

float GNUNET_RPS_Handle::desired_probability

The desired probability with which we want to have observed all peers.

Definition at line 144 of file rps_api.c.

Referenced by GNUNET_RPS_connect(), GNUNET_RPS_request_peer_info(), and GNUNET_RPS_request_peers().

◆ deficiency_factor

float GNUNET_RPS_Handle::deficiency_factor

A factor that catches the 'bias' of a random stream of peer ids.

As introduced by Brahms: Factor between the number of unique ids in a truly random stream and number of unique ids in the gossip stream.

Definition at line 152 of file rps_api.c.

Referenced by GNUNET_RPS_connect(), GNUNET_RPS_request_peer_info(), and GNUNET_RPS_request_peers().


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