Struct containing information about a client of the service. More...
Data Fields | |
struct CadetClient * | next |
Linked list next. More... | |
struct CadetClient * | prev |
Linked list prev. More... | |
struct GNUNET_CONTAINER_MultiHashMap32 * | channels |
Tunnels that belong to this client, indexed by local id, value is a struct CadetChannel . More... | |
struct GNUNET_MQ_Handle * | mq |
Handle to communicate with the client. More... | |
struct GNUNET_SERVICE_Client * | client |
Client handle. More... | |
struct GNUNET_CONTAINER_MultiHashMap * | ports |
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_Channel * | channel |
Channel for communication. More... | |
struct WriteQueueItem * | wqi_head |
Head of write queue. More... | |
struct WriteQueueItem * | wqi_tail |
Tail of write queue. More... | |
struct GNUNET_DATASTORE_QueueEntry * | qe |
Current active request to the datastore, if we have one pending. More... | |
struct GNUNET_SCHEDULER_Task * | terminate_task |
Task that is scheduled to asynchronously terminate the connection. More... | |
struct GNUNET_SCHEDULER_Task * | timeout_task |
Task that is scheduled to terminate idle connections. More... | |
size_t | reply_size |
Size of the last write that was initiated. More... | |
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.
struct CadetClient * CadetClient::next |
struct CadetClient * CadetClient::prev |
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().
struct GNUNET_MQ_Handle* CadetClient::mq |
Handle to communicate with the client.
Definition at line 77 of file gnunet-service-cadet.c.
Referenced by client_connect_cb(), get_all_peers_iterator(), get_all_tunnels_iterator(), GSC_send_to_client(), handle_get_peers(), handle_info_tunnels(), and handle_show_path().
struct GNUNET_SERVICE_Client* CadetClient::client |
Client handle.
Definition at line 82 of file gnunet-service-cadet.c.
Referenced by client_connect_cb(), client_disconnect_cb(), handle_channel_create(), handle_channel_destroy(), handle_drop_message(), handle_get_peers(), handle_info_tunnels(), handle_local_ack(), handle_local_data(), handle_port_close(), handle_port_open(), and handle_show_path().
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().
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.
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().
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().
struct WriteQueueItem* CadetClient::wqi_head |
Head of write queue.
Definition at line 91 of file gnunet-service-fs_cadet_server.c.
struct WriteQueueItem* CadetClient::wqi_tail |
Tail of write queue.
Definition at line 96 of file gnunet-service-fs_cadet_server.c.
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.
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.
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.
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.