GNUnet  0.11.x
Data Fields
HelperContext Struct Reference

Information we keep per NAT helper process. More...

Collaboration diagram for HelperContext:
[legend]

Data Fields

struct in_addr internal_address
 IP address we pass to the NAT helper. More...
 
GN_ReversalCallback cb
 Function to call if we receive a reversal request. More...
 
void * cb_cls
 Closure for cb. More...
 
struct GNUNET_TIME_Relative server_retry_delay
 How long do we wait for restarting a crashed gnunet-helper-nat-server? More...
 
struct GNUNET_SCHEDULER_Taskserver_read_task
 ID of select gnunet-helper-nat-server stdout read task. More...
 
struct GNUNET_OS_Processserver_proc
 The process id of the server process (if behind NAT) More...
 
struct GNUNET_DISK_PipeHandleserver_stdout
 stdout pipe handle for the gnunet-helper-nat-server process More...
 
const struct GNUNET_DISK_FileHandleserver_stdout_handle
 stdout file handle (for reading) for the gnunet-helper-nat-server process More...
 
const struct GNUNET_CONFIGURATION_Handlecfg
 Handle to the GNUnet configuration. More...
 

Detailed Description

Information we keep per NAT helper process.

Definition at line 35 of file gnunet-service-nat_helper.c.

Field Documentation

◆ internal_address

struct in_addr HelperContext::internal_address

IP address we pass to the NAT helper.

Definition at line 40 of file gnunet-service-nat_helper.c.

Referenced by GN_start_gnunet_nat_server_(), and restart_nat_server().

◆ cb

GN_ReversalCallback HelperContext::cb

Function to call if we receive a reversal request.

Definition at line 45 of file gnunet-service-nat_helper.c.

Referenced by GN_start_gnunet_nat_server_(), and nat_server_read().

◆ cb_cls

void* HelperContext::cb_cls

Closure for cb.

Definition at line 50 of file gnunet-service-nat_helper.c.

Referenced by GN_start_gnunet_nat_server_(), and nat_server_read().

◆ server_retry_delay

struct GNUNET_TIME_Relative HelperContext::server_retry_delay

How long do we wait for restarting a crashed gnunet-helper-nat-server?

Definition at line 55 of file gnunet-service-nat_helper.c.

Referenced by restart_nat_server(), and try_again().

◆ server_read_task

struct GNUNET_SCHEDULER_Task* HelperContext::server_read_task

ID of select gnunet-helper-nat-server stdout read task.

Definition at line 60 of file gnunet-service-nat_helper.c.

Referenced by GN_stop_gnunet_nat_server_(), nat_server_read(), restart_nat_server(), and try_again().

◆ server_proc

struct GNUNET_OS_Process* HelperContext::server_proc

The process id of the server process (if behind NAT)

Definition at line 65 of file gnunet-service-nat_helper.c.

Referenced by GN_stop_gnunet_nat_server_(), nat_server_read(), and restart_nat_server().

◆ server_stdout

struct GNUNET_DISK_PipeHandle* HelperContext::server_stdout

stdout pipe handle for the gnunet-helper-nat-server process

Definition at line 70 of file gnunet-service-nat_helper.c.

Referenced by GN_start_gnunet_nat_server_(), GN_stop_gnunet_nat_server_(), nat_server_read(), and restart_nat_server().

◆ server_stdout_handle

const struct GNUNET_DISK_FileHandle* HelperContext::server_stdout_handle

stdout file handle (for reading) for the gnunet-helper-nat-server process

Definition at line 75 of file gnunet-service-nat_helper.c.

Referenced by GN_stop_gnunet_nat_server_(), nat_server_read(), and restart_nat_server().

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* HelperContext::cfg

Handle to the GNUnet configuration.

Definition at line 80 of file gnunet-service-nat_helper.c.

Referenced by GN_start_gnunet_nat_server_(), and restart_nat_server().


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