GNUnet debian-0.24.3-29-g453fda2cf
 
Loading...
Searching...
No Matches
ClientState Struct Reference

State we keep per client. More...

#include </home/buildbot/bb-worker/worker/gnunet_release/build/src/contrib/service/set/gnunet-service-set.h>

Collaboration diagram for ClientState:
[legend]

Data Fields

struct DecryptSessiondecrypt_session
 Decrypt session of the client, if any.
 
struct KeygenSessionkeygen_session
 Keygen session of the client, if any.
 
struct GNUNET_SERVICE_Clientclient
 Client this is about.
 
struct GNUNET_MQ_Handlemq
 MQ to talk to client.
 
struct Setset
 Set, if associated with the client, otherwise NULL.
 
struct Listenerlistener
 Listener, if associated with the client, otherwise NULL.
 
struct GNUNET_NETWORK_Handlesock
 The connection handle, NULL if not live.
 
struct GNUNET_RESOLVER_RequestHandledns_active
 Handle to a pending DNS lookup request, NULL if DNS is finished.
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Our configuration.
 
struct AddressProbeap_head
 Linked list of sockets we are currently trying out (during connect).
 
struct AddressProbeap_tail
 Linked list of sockets we are currently trying out (during connect).
 
char * service_name
 Name of the service we interact with.
 
char * hostname
 Hostname, if any.
 
const struct GNUNET_MessageHeadermsg
 Next message to transmit to the service.
 
struct GNUNET_SCHEDULER_Taskretry_task
 Task for trying to connect to the service.
 
struct GNUNET_SCHEDULER_Tasksend_task
 Task for sending messages to the service.
 
struct GNUNET_SCHEDULER_Taskrecv_task
 Task for sending messages to the service.
 
struct GNUNET_MessageStreamTokenizermst
 Tokenizer for inbound messages.
 
struct GNUNET_TIME_Absolute receive_timeout
 Timeout for receiving a response (absolute time).
 
struct GNUNET_TIME_Relative back_off
 Current value for our incremental back-off (for connect re-tries).
 
unsigned long long port
 TCP port (0 for disabled).
 
size_t msg_off
 Offset in the message where we are for transmission.
 
unsigned int attempts
 How often have we tried to connect?
 
int in_destroy
 Are we supposed to die? GNUNET_SYSERR if destruction must be deferred, GNUNET_NO by default, GNUNET_YES if destruction was deferred.
 

Detailed Description

State we keep per client.

Internal state for a client connected to a GNUnet service.

Definition at line 259 of file gnunet-service-secretsharing.c.

Field Documentation

◆ decrypt_session

struct DecryptSession* ClientState::decrypt_session

Decrypt session of the client, if any.

Definition at line 264 of file gnunet-service-secretsharing.c.

Referenced by client_disconnect_cb(), and handle_client_decrypt().

◆ keygen_session

struct KeygenSession* ClientState::keygen_session

Keygen session of the client, if any.

Definition at line 269 of file gnunet-service-secretsharing.c.

Referenced by client_disconnect_cb(), handle_client_keygen(), and keygen_session_destroy().

◆ client

◆ mq

◆ set

◆ listener

◆ sock

◆ dns_active

struct GNUNET_RESOLVER_RequestHandle* ClientState::dns_active

Handle to a pending DNS lookup request, NULL if DNS is finished.

Definition at line 111 of file client.c.

Referenced by connect_fail_continuation(), connect_probe_continuation(), connection_client_destroy_impl(), start_connect(), and try_connect_using_address().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* ClientState::cfg

Our configuration.

Definition at line 116 of file client.c.

Referenced by GNUNET_CLIENT_connect(), and start_connect().

◆ ap_head

struct AddressProbe* ClientState::ap_head

Linked list of sockets we are currently trying out (during connect).

Definition at line 122 of file client.c.

Referenced by cancel_aps(), connect_fail_continuation(), connect_probe_continuation(), and try_connect_using_address().

◆ ap_tail

struct AddressProbe* ClientState::ap_tail

Linked list of sockets we are currently trying out (during connect).

Definition at line 128 of file client.c.

Referenced by cancel_aps(), connect_fail_continuation(), connect_probe_continuation(), and try_connect_using_address().

◆ service_name

char* ClientState::service_name

◆ hostname

char* ClientState::hostname

Hostname, if any.

Definition at line 138 of file client.c.

Referenced by connection_client_destroy_impl(), GNUNET_CLIENT_connect(), GNUNET_CLIENT_test(), and start_connect().

◆ msg

const struct GNUNET_MessageHeader* ClientState::msg

Next message to transmit to the service.

NULL for none.

Definition at line 143 of file client.c.

Referenced by connect_success_continuation(), connection_client_cancel_impl(), connection_client_send_impl(), and transmit_ready().

◆ retry_task

struct GNUNET_SCHEDULER_Task* ClientState::retry_task

Task for trying to connect to the service.

Definition at line 148 of file client.c.

Referenced by connect_fail_continuation(), connection_client_destroy_impl(), GNUNET_CLIENT_connect(), and start_connect().

◆ send_task

struct GNUNET_SCHEDULER_Task* ClientState::send_task

◆ recv_task

struct GNUNET_SCHEDULER_Task* ClientState::recv_task

Task for sending messages to the service.

Definition at line 158 of file client.c.

Referenced by connect_fail_continuation(), connect_success_continuation(), connection_client_destroy_impl(), and receive_ready().

◆ mst

struct GNUNET_MessageStreamTokenizer* ClientState::mst

Tokenizer for inbound messages.

Definition at line 163 of file client.c.

Referenced by connection_client_destroy_impl(), GNUNET_CLIENT_connect(), and receive_ready().

◆ receive_timeout

struct GNUNET_TIME_Absolute ClientState::receive_timeout

Timeout for receiving a response (absolute time).

Definition at line 173 of file client.c.

◆ back_off

struct GNUNET_TIME_Relative ClientState::back_off

Current value for our incremental back-off (for connect re-tries).

Definition at line 179 of file client.c.

Referenced by connect_fail_continuation().

◆ port

unsigned long long ClientState::port

TCP port (0 for disabled).

Definition at line 184 of file client.c.

Referenced by GNUNET_CLIENT_connect(), start_connect(), and try_connect_using_address().

◆ msg_off

size_t ClientState::msg_off

Offset in the message where we are for transmission.

Definition at line 189 of file client.c.

Referenced by connection_client_cancel_impl(), connection_client_send_impl(), and transmit_ready().

◆ attempts

unsigned int ClientState::attempts

How often have we tried to connect?

Definition at line 194 of file client.c.

Referenced by start_connect().

◆ in_destroy

int ClientState::in_destroy

Are we supposed to die? GNUNET_SYSERR if destruction must be deferred, GNUNET_NO by default, GNUNET_YES if destruction was deferred.

Definition at line 201 of file client.c.

Referenced by connection_client_destroy_impl(), receive_ready(), recv_message(), and transmit_ready().


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