GNUnet 0.22.2
CadetClient Struct Reference

Struct containing information about a client of the service. More...

Collaboration diagram for CadetClient:
[legend]

Data Fields

struct CadetClientnext
 Linked list next. More...
 
struct CadetClientprev
 Linked list prev. More...
 
struct GNUNET_CONTAINER_MultiHashMap32channels
 Tunnels that belong to this client, indexed by local id, value is a struct CadetChannel. More...
 
struct GNUNET_MQ_Handlemq
 Handle to communicate with the client. More...
 
struct GNUNET_SERVICE_Clientclient
 Client handle. More...
 
struct GNUNET_CONTAINER_MultiHashMapports
 Ports that this client has declared interest in. More...
 
struct GNUNET_CADET_ClientChannelNumber next_ccn
 Channel ID to use for the next incoming channel for this client. More...
 
unsigned int id
 ID of the client, mainly for debug messages. More...
 
struct GNUNET_CADET_Channelchannel
 Channel for communication. More...
 
struct WriteQueueItemwqi_head
 Head of write queue. More...
 
struct WriteQueueItemwqi_tail
 Tail of write queue. More...
 
struct GNUNET_DATASTORE_QueueEntryqe
 Current active request to the datastore, if we have one pending. More...
 
struct GNUNET_SCHEDULER_Taskterminate_task
 Task that is scheduled to asynchronously terminate the connection. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Task that is scheduled to terminate idle connections. More...
 
size_t reply_size
 Size of the last write that was initiated. More...
 

Detailed Description

Struct containing information about a client of the service.

Information we keep around for each active cadeting client.

Definition at line 56 of file gnunet-service-cadet.c.

Field Documentation

◆ next

struct CadetClient * CadetClient::next

Linked list next.

DLL.

Definition at line 61 of file gnunet-service-cadet.c.

◆ prev

struct CadetClient * CadetClient::prev

Linked list prev.

DLL.

Definition at line 66 of file gnunet-service-cadet.c.

◆ channels

struct GNUNET_CONTAINER_MultiHashMap32* CadetClient::channels

Tunnels that belong to this client, indexed by local id, value is a struct CadetChannel.

Definition at line 72 of file gnunet-service-cadet.c.

Referenced by channel_destroy_iterator(), client_connect_cb(), client_disconnect_cb(), GSC_handle_remote_channel_destroy(), handle_channel_create(), handle_channel_destroy(), and lookup_channel().

◆ mq

struct GNUNET_MQ_Handle* CadetClient::mq

◆ client

◆ ports

struct GNUNET_CONTAINER_MultiHashMap* CadetClient::ports

Ports that this client has declared interest in.

Indexed by port, contains struct OpenPort

Definition at line 88 of file gnunet-service-cadet.c.

Referenced by client_disconnect_cb(), client_release_ports(), handle_port_close(), and handle_port_open().

◆ next_ccn

struct GNUNET_CADET_ClientChannelNumber CadetClient::next_ccn

Channel ID to use for the next incoming channel for this client.

Wraps around (in theory).

Definition at line 94 of file gnunet-service-cadet.c.

◆ id

unsigned int CadetClient::id

ID of the client, mainly for debug messages.

Purely internal to this file.

Definition at line 99 of file gnunet-service-cadet.c.

Referenced by client_connect_cb(), and GSC_2s().

◆ channel

struct GNUNET_CADET_Channel* CadetClient::channel

Channel for communication.

Definition at line 86 of file gnunet-service-fs_cadet_server.c.

Referenced by connect_cb().

◆ wqi_head

struct WriteQueueItem* CadetClient::wqi_head

Head of write queue.

Definition at line 91 of file gnunet-service-fs_cadet_server.c.

◆ wqi_tail

struct WriteQueueItem* CadetClient::wqi_tail

Tail of write queue.

Definition at line 96 of file gnunet-service-fs_cadet_server.c.

◆ qe

struct GNUNET_DATASTORE_QueueEntry* CadetClient::qe

Current active request to the datastore, if we have one pending.

Definition at line 101 of file gnunet-service-fs_cadet_server.c.

◆ terminate_task

struct GNUNET_SCHEDULER_Task* CadetClient::terminate_task

Task that is scheduled to asynchronously terminate the connection.

Definition at line 106 of file gnunet-service-fs_cadet_server.c.

◆ timeout_task

struct GNUNET_SCHEDULER_Task* CadetClient::timeout_task

Task that is scheduled to terminate idle connections.

Definition at line 111 of file gnunet-service-fs_cadet_server.c.

◆ reply_size

size_t CadetClient::reply_size

Size of the last write that was initiated.

Definition at line 116 of file gnunet-service-fs_cadet_server.c.


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