State we keep per client. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/contrib/service/set/gnunet-service-set.h>
Data Fields | |
struct DecryptSession * | decrypt_session |
Decrypt session of the client, if any. More... | |
struct KeygenSession * | keygen_session |
Keygen session of the client, if any. More... | |
struct GNUNET_SERVICE_Client * | client |
Client this is about. More... | |
struct GNUNET_MQ_Handle * | mq |
MQ to talk to client. More... | |
struct Set * | set |
Set, if associated with the client, otherwise NULL. More... | |
struct Listener * | listener |
Listener, if associated with the client, otherwise NULL. More... | |
struct GNUNET_NETWORK_Handle * | sock |
The connection handle, NULL if not live. More... | |
struct GNUNET_RESOLVER_RequestHandle * | dns_active |
Handle to a pending DNS lookup request, NULL if DNS is finished. More... | |
const struct GNUNET_CONFIGURATION_Handle * | cfg |
Our configuration. More... | |
struct AddressProbe * | ap_head |
Linked list of sockets we are currently trying out (during connect). More... | |
struct AddressProbe * | ap_tail |
Linked list of sockets we are currently trying out (during connect). More... | |
char * | service_name |
Name of the service we interact with. More... | |
char * | hostname |
Hostname, if any. More... | |
const struct GNUNET_MessageHeader * | msg |
Next message to transmit to the service. More... | |
struct GNUNET_SCHEDULER_Task * | retry_task |
Task for trying to connect to the service. More... | |
struct GNUNET_SCHEDULER_Task * | send_task |
Task for sending messages to the service. More... | |
struct GNUNET_SCHEDULER_Task * | recv_task |
Task for sending messages to the service. More... | |
struct GNUNET_MessageStreamTokenizer * | mst |
Tokenizer for inbound messages. More... | |
struct GNUNET_TIME_Absolute | receive_timeout |
Timeout for receiving a response (absolute time). More... | |
struct GNUNET_TIME_Relative | back_off |
Current value for our incremental back-off (for connect re-tries). More... | |
unsigned long long | port |
TCP port (0 for disabled). More... | |
size_t | msg_off |
Offset in the message where we are for transmission. More... | |
unsigned int | attempts |
How often have we tried to connect? More... | |
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. More... | |
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.
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().
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().
struct GNUNET_SERVICE_Client * ClientState::client |
Client this is about.
Client handle.
Definition at line 274 of file gnunet-service-secretsharing.c.
Referenced by client_connect_cb(), handle_client_accept(), handle_client_cancel(), handle_client_copy_lazy_connect(), handle_client_copy_lazy_prepare(), handle_client_create_set(), handle_client_decrypt(), handle_client_evaluate(), handle_client_iter_ack(), handle_client_iterate(), handle_client_keygen(), handle_client_listen(), handle_client_mutation(), handle_client_reject(), and handle_client_set_add().
struct GNUNET_MQ_Handle * ClientState::mq |
MQ to talk to client.
Message queue under our control.
Message queue.
Definition at line 279 of file gnunet-service-secretsharing.c.
Referenced by client_connect_cb(), connection_client_destroy_impl(), GNUNET_CLIENT_connect(), handle_client_accept(), handle_client_copy_lazy_prepare(), handle_incoming_msg(), keygen_round2_conclude(), receive_ready(), recv_message(), send_client_element(), and transmit_ready().
struct Set * ClientState::set |
Set, if associated with the client, otherwise NULL.
Definition at line 291 of file gnunet-service-set.h.
Referenced by client_disconnect_cb(), handle_client_accept(), handle_client_cancel(), handle_client_copy_lazy_connect(), handle_client_copy_lazy_prepare(), handle_client_create_set(), handle_client_evaluate(), handle_client_iter_ack(), handle_client_iterate(), handle_client_mutation(), and handle_client_set_add().
struct Listener * ClientState::listener |
Listener, if associated with the client, otherwise NULL.
Definition at line 296 of file gnunet-service-set.h.
Referenced by client_disconnect_cb(), handle_client_accept(), handle_client_listen(), and handle_client_reject().
struct GNUNET_NETWORK_Handle* ClientState::sock |
The connection handle, NULL if not live.
Definition at line 106 of file client.c.
Referenced by connect_fail_continuation(), connect_probe_continuation(), connect_success_continuation(), connection_client_destroy_impl(), connection_client_send_impl(), receive_ready(), start_connect(), transmit_ready(), and try_connect_using_address().
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().
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().
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().
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().
char* ClientState::service_name |
Name of the service we interact with.
Definition at line 133 of file client.c.
Referenced by connect_fail_continuation(), connect_probe_continuation(), connection_client_destroy_impl(), GNUNET_CLIENT_connect(), recv_message(), and start_connect().
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().
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().
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().
struct GNUNET_SCHEDULER_Task* ClientState::send_task |
Task for sending messages to the service.
Definition at line 153 of file client.c.
Referenced by connect_fail_continuation(), connect_success_continuation(), connection_client_cancel_impl(), connection_client_destroy_impl(), connection_client_send_impl(), and transmit_ready().
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().
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().
struct GNUNET_TIME_Absolute ClientState::receive_timeout |
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().
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().
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().
unsigned int ClientState::attempts |
How often have we tried to connect?
Definition at line 194 of file client.c.
Referenced by start_connect().
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().