GNUnet  0.11.x
Data Fields
HTTP_Client_Plugin Struct Reference

Encapsulation of all of the state of the plugin. More...

Collaboration diagram for HTTP_Client_Plugin:
[legend]

Data Fields

struct GNUNET_TRANSPORT_PluginEnvironmentenv
 Our environment. More...
 
struct GNUNET_CONTAINER_MultiPeerMapsessions
 Open sessions. More...
 
GNUNET_TRANSPORT_SessionInfoCallback sic
 Function to call about session status changes. More...
 
void * sic_cls
 Closure for sic. More...
 
char * name
 Plugin name. More...
 
char * protocol
 Protocol. More...
 
char * proxy_hostname
 Proxy configuration: hostname or ip of the proxy server. More...
 
char * proxy_username
 Username for the proxy server. More...
 
char * proxy_password
 Password for the proxy server. More...
 
CURLM * curl_multi_handle
 cURL Multihandle More...
 
struct GNUNET_SCHEDULER_Taskclient_perform_task
 curl perform task More...
 
curl_proxytype proxytype
 Type of proxy server: More...
 
int proxy_use_httpproxytunnel
 Use proxy tunneling: Tunnel all operations through a given HTTP instead of have the proxy evaluate the HTTP request. More...
 
uint32_t options
 My options to be included in the address. More...
 
unsigned int max_requests
 Maximum number of sockets the plugin can use Each http connections are two requests. More...
 
unsigned int cur_requests
 Current number of sockets the plugin can use Each http connections are two requests. More...
 
uint32_t last_tag
 Last used unique HTTP connection tag. More...
 
uint16_t use_ipv6
 use IPv6 More...
 
uint16_t use_ipv4
 use IPv4 More...
 
int emulate_xhr
 Should we emulate an XHR client for testing? More...
 

Detailed Description

Encapsulation of all of the state of the plugin.

Definition at line 279 of file plugin_transport_http_client.c.

Field Documentation

◆ env

struct GNUNET_TRANSPORT_PluginEnvironment* HTTP_Client_Plugin::env

◆ sessions

struct GNUNET_CONTAINER_MultiPeerMap* HTTP_Client_Plugin::sessions

◆ sic

GNUNET_TRANSPORT_SessionInfoCallback HTTP_Client_Plugin::sic

Function to call about session status changes.

Definition at line 294 of file plugin_transport_http_client.c.

Referenced by http_client_plugin_setup_monitor(), and notify_session_monitor().

◆ sic_cls

void* HTTP_Client_Plugin::sic_cls

Closure for sic.

Definition at line 299 of file plugin_transport_http_client.c.

Referenced by http_client_plugin_setup_monitor(), and notify_session_monitor().

◆ name

char* HTTP_Client_Plugin::name

◆ protocol

char* HTTP_Client_Plugin::protocol

◆ proxy_hostname

char* HTTP_Client_Plugin::proxy_hostname

Proxy configuration: hostname or ip of the proxy server.

Definition at line 314 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin(), and libgnunet_plugin_transport_http_client_done().

◆ proxy_username

char* HTTP_Client_Plugin::proxy_username

Username for the proxy server.

Definition at line 319 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin(), and libgnunet_plugin_transport_http_client_done().

◆ proxy_password

char* HTTP_Client_Plugin::proxy_password

Password for the proxy server.

Definition at line 324 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin(), and libgnunet_plugin_transport_http_client_done().

◆ curl_multi_handle

CURLM* HTTP_Client_Plugin::curl_multi_handle

◆ client_perform_task

struct GNUNET_SCHEDULER_Task* HTTP_Client_Plugin::client_perform_task

◆ proxytype

curl_proxytype HTTP_Client_Plugin::proxytype

Type of proxy server:

Valid values as supported by curl: CURLPROXY_HTTP, CURLPROXY_HTTP_1_0 CURLPROXY_SOCKS4, CURLPROXY_SOCKS5, CURLPROXY_SOCKS4A, CURLPROXY_SOCKS5_HOSTNAME

Definition at line 343 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin().

◆ proxy_use_httpproxytunnel

int HTTP_Client_Plugin::proxy_use_httpproxytunnel

Use proxy tunneling: Tunnel all operations through a given HTTP instead of have the proxy evaluate the HTTP request.

Default: GNUNET_NO, GNUNET_YES experimental

Definition at line 352 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin().

◆ options

uint32_t HTTP_Client_Plugin::options

My options to be included in the address.

Definition at line 357 of file plugin_transport_http_client.c.

◆ max_requests

unsigned int HTTP_Client_Plugin::max_requests

Maximum number of sockets the plugin can use Each http connections are two requests.

Definition at line 363 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin(), and http_client_plugin_get_session().

◆ cur_requests

unsigned int HTTP_Client_Plugin::cur_requests

Current number of sockets the plugin can use Each http connections are two requests.

Definition at line 369 of file plugin_transport_http_client.c.

Referenced by client_connect(), client_delete_session(), client_run(), and http_client_plugin_get_session().

◆ last_tag

uint32_t HTTP_Client_Plugin::last_tag

Last used unique HTTP connection tag.

Definition at line 374 of file plugin_transport_http_client.c.

Referenced by client_connect(), and libgnunet_plugin_transport_http_client_init().

◆ use_ipv6

uint16_t HTTP_Client_Plugin::use_ipv6

use IPv6

Definition at line 379 of file plugin_transport_http_client.c.

◆ use_ipv4

uint16_t HTTP_Client_Plugin::use_ipv4

use IPv4

Definition at line 384 of file plugin_transport_http_client.c.

◆ emulate_xhr

int HTTP_Client_Plugin::emulate_xhr

Should we emulate an XHR client for testing?

Definition at line 389 of file plugin_transport_http_client.c.

Referenced by client_configure_plugin(), client_connect(), client_run(), and client_send_cb().


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