GNUnet  0.11.x
Data Fields
GNUNET_NAT_MiniHandle Struct Reference

Handle to a mapping created with upnpc. More...

Collaboration diagram for GNUNET_NAT_MiniHandle:
[legend]

Data Fields

GNUNET_NAT_MiniAddressCallback ac
 Function to call on mapping changes. More...
 
void * ac_cls
 Closure for ac. More...
 
struct GNUNET_OS_CommandHandlemap_cmd
 Command used to install the map. More...
 
struct GNUNET_OS_CommandHandlerefresh_cmd
 Command used to refresh our map information. More...
 
struct GNUNET_OS_CommandHandleunmap_cmd
 Command used to remove the mapping. More...
 
struct sockaddr_in current_addr
 Our current external mapping (if we have one). More...
 
struct GNUNET_SCHEDULER_Taskrefresh_task
 We check the mapping periodically to see if it still works. More...
 
int is_tcp
 Are we mapping TCP or UDP? More...
 
int did_map
 Did we succeed with creating a mapping? More...
 
int found
 Did we find our mapping during refresh scan? More...
 
uint16_t port
 Which port are we mapping? More...
 

Detailed Description

Handle to a mapping created with upnpc.

Definition at line 261 of file gnunet-service-nat_mini.c.

Field Documentation

◆ ac

GNUNET_NAT_MiniAddressCallback GNUNET_NAT_MiniHandle::ac

◆ ac_cls

void* GNUNET_NAT_MiniHandle::ac_cls

◆ map_cmd

struct GNUNET_OS_CommandHandle* GNUNET_NAT_MiniHandle::map_cmd

Command used to install the map.

Definition at line 276 of file gnunet-service-nat_mini.c.

Referenced by do_refresh(), GNUNET_NAT_mini_map_stop(), process_map_output(), and run_upnpc_r().

◆ refresh_cmd

struct GNUNET_OS_CommandHandle* GNUNET_NAT_MiniHandle::refresh_cmd

Command used to refresh our map information.

Definition at line 281 of file gnunet-service-nat_mini.c.

Referenced by do_refresh(), GNUNET_NAT_mini_map_stop(), and process_refresh_output().

◆ unmap_cmd

struct GNUNET_OS_CommandHandle* GNUNET_NAT_MiniHandle::unmap_cmd

Command used to remove the mapping.

Definition at line 286 of file gnunet-service-nat_mini.c.

Referenced by GNUNET_NAT_mini_map_stop(), and process_unmap_output().

◆ current_addr

struct sockaddr_in GNUNET_NAT_MiniHandle::current_addr

Our current external mapping (if we have one).

Definition at line 291 of file gnunet-service-nat_mini.c.

Referenced by GNUNET_NAT_mini_map_stop(), process_map_output(), and process_refresh_output().

◆ refresh_task

struct GNUNET_SCHEDULER_Task* GNUNET_NAT_MiniHandle::refresh_task

We check the mapping periodically to see if it still works.

This task triggers the check.

Definition at line 297 of file gnunet-service-nat_mini.c.

Referenced by do_refresh(), GNUNET_NAT_mini_map_start(), GNUNET_NAT_mini_map_stop(), and process_map_output().

◆ is_tcp

int GNUNET_NAT_MiniHandle::is_tcp

Are we mapping TCP or UDP?

Definition at line 302 of file gnunet-service-nat_mini.c.

Referenced by GNUNET_NAT_mini_map_start(), GNUNET_NAT_mini_map_stop(), process_refresh_output(), and run_upnpc_r().

◆ did_map

int GNUNET_NAT_MiniHandle::did_map

Did we succeed with creating a mapping?

Definition at line 307 of file gnunet-service-nat_mini.c.

Referenced by GNUNET_NAT_mini_map_stop(), process_map_output(), and process_refresh_output().

◆ found

int GNUNET_NAT_MiniHandle::found

Did we find our mapping during refresh scan?

Definition at line 312 of file gnunet-service-nat_mini.c.

Referenced by do_refresh(), and process_refresh_output().

◆ port

uint16_t GNUNET_NAT_MiniHandle::port

Which port are we mapping?

Definition at line 317 of file gnunet-service-nat_mini.c.

Referenced by GNUNET_NAT_mini_map_start(), process_refresh_output(), and run_upnpc_r().


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