GNUnet 0.21.1
ClientHandle Struct Reference

Struct containing information about a client, handle to connect to it, and any pending messages that need to be sent to it. More...

Collaboration diagram for ClientHandle:
[legend]

Data Fields

struct ClientQueryRecordcqr_head
 Linked list of active queries of this client. More...
 
struct ClientQueryRecordcqr_tail
 Linked list of active queries of this client. More...
 
struct GNUNET_SERVICE_Clientclient
 The handle to this client. More...
 
struct GNUNET_MQ_Handlemq
 The message queue to this client. More...
 
struct ClientHandlenext
 Kept in a DLL. More...
 
struct ClientHandleprev
 Kept in a DLL. More...
 
struct ClientAddresscaddrs
 Array of addresses used by the service. More...
 
char * hole_external
 External DNS name and port given by user due to manual hole punching. More...
 
char * section_name
 Name of the configuration section this client cares about. More...
 
struct GNUNET_SCHEDULER_Taskext_dns_task
 Task for periodically re-running the ext_dns DNS lookup. More...
 
struct GNUNET_RESOLVER_RequestHandleext_dns
 Handle for (DYN)DNS lookup of our external IP as given in hole_external. More...
 
struct GN_ExternalIPMonitorexternal_monitor
 Handle for monitoring external IP changes. More...
 
struct LocalAddressListext_addr_head
 DLL of external IP addresses as given in hole_external. More...
 
struct LocalAddressListext_addr_tail
 DLL of external IP addresses as given in hole_external. More...
 
uint16_t ext_dns_port
 Port number we found in hole_external. More...
 
enum GNUNET_NAT_RegisterFlags flags
 What does this client care about? More...
 
int natted_address
 Is any of the caddrs in a reserved subnet for NAT? More...
 
uint16_t num_caddrs
 Number of addresses that this service is bound to. More...
 
uint8_t proto
 Client's IPPROTO, e.g. More...
 

Detailed Description

Struct containing information about a client, handle to connect to it, and any pending messages that need to be sent to it.

Internal data structure we track for each of our clients.

Definition at line 199 of file gnunet-service-dht_clients.c.

Field Documentation

◆ cqr_head

struct ClientQueryRecord* ClientHandle::cqr_head

Linked list of active queries of this client.

Definition at line 204 of file gnunet-service-dht_clients.c.

◆ cqr_tail

struct ClientQueryRecord* ClientHandle::cqr_tail

Linked list of active queries of this client.

Definition at line 209 of file gnunet-service-dht_clients.c.

◆ client

struct GNUNET_SERVICE_Client * ClientHandle::client

The handle to this client.

Underlying handle for this client with the service.

Definition at line 214 of file gnunet-service-dht_clients.c.

Referenced by client_connect_cb(), and client_disconnect_cb().

◆ mq

struct GNUNET_MQ_Handle * ClientHandle::mq

The message queue to this client.

Message queue for communicating with the client.

Definition at line 219 of file gnunet-service-dht_clients.c.

◆ next

struct ClientHandle * ClientHandle::next

Kept in a DLL.

Definition at line 60 of file gnunet-service-nat-auto.c.

◆ prev

struct ClientHandle * ClientHandle::prev

Kept in a DLL.

Definition at line 65 of file gnunet-service-nat-auto.c.

◆ caddrs

struct ClientAddress* ClientHandle::caddrs

Array of addresses used by the service.

Definition at line 166 of file gnunet-service-nat.c.

◆ hole_external

char* ClientHandle::hole_external

External DNS name and port given by user due to manual hole punching.

Special DNS name 'AUTO' is used to indicate desire for automatic determination of the external IP (instead of DNS or manual configuration, i.e. to be used if the IP keeps changing and we have no DynDNS, but we do have a hole punched).

Definition at line 176 of file gnunet-service-nat.c.

◆ section_name

char* ClientHandle::section_name

Name of the configuration section this client cares about.

Definition at line 181 of file gnunet-service-nat.c.

◆ ext_dns_task

struct GNUNET_SCHEDULER_Task* ClientHandle::ext_dns_task

Task for periodically re-running the ext_dns DNS lookup.

Definition at line 186 of file gnunet-service-nat.c.

◆ ext_dns

struct GNUNET_RESOLVER_RequestHandle* ClientHandle::ext_dns

Handle for (DYN)DNS lookup of our external IP as given in hole_external.

Definition at line 192 of file gnunet-service-nat.c.

◆ external_monitor

struct GN_ExternalIPMonitor* ClientHandle::external_monitor

Handle for monitoring external IP changes.

Definition at line 197 of file gnunet-service-nat.c.

◆ ext_addr_head

struct LocalAddressList* ClientHandle::ext_addr_head

DLL of external IP addresses as given in hole_external.

Definition at line 202 of file gnunet-service-nat.c.

◆ ext_addr_tail

struct LocalAddressList* ClientHandle::ext_addr_tail

DLL of external IP addresses as given in hole_external.

Definition at line 207 of file gnunet-service-nat.c.

◆ ext_dns_port

uint16_t ClientHandle::ext_dns_port

Port number we found in hole_external.

Definition at line 212 of file gnunet-service-nat.c.

◆ flags

enum GNUNET_NAT_RegisterFlags ClientHandle::flags

What does this client care about?

Definition at line 217 of file gnunet-service-nat.c.

◆ natted_address

int ClientHandle::natted_address

Is any of the caddrs in a reserved subnet for NAT?

Definition at line 222 of file gnunet-service-nat.c.

◆ num_caddrs

uint16_t ClientHandle::num_caddrs

Number of addresses that this service is bound to.

Length of the caddrs array.

Definition at line 228 of file gnunet-service-nat.c.

◆ proto

uint8_t ClientHandle::proto

Client's IPPROTO, e.g.

IPPROTO_UDP or IPPROTO_TCP.

Definition at line 233 of file gnunet-service-nat.c.


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