GNUnet 0.21.1
GNUNET_NAT_Test Struct Reference

Handle to a NAT test. More...

Collaboration diagram for GNUNET_NAT_Test:
[legend]

Data Fields

const struct GNUNET_CONFIGURATION_Handlecfg
 Configuration used. More...
 
GNUNET_NAT_TestCallback report
 Function to call with success report. More...
 
void * report_cls
 Closure for report. More...
 
struct GNUNET_NAT_Handlenat
 Handle to NAT traversal in use. More...
 
struct GNUNET_NETWORK_Handlelsock
 Handle to listen socket, or NULL. More...
 
struct NatActivityna_head
 Head of list of nat activities. More...
 
struct NatActivityna_tail
 Tail of list of nat activities. More...
 
struct ClientActivityca_head
 Head of list of client activities. More...
 
struct ClientActivityca_tail
 Tail of list of client activities. More...
 
struct GNUNET_SCHEDULER_Taskltask
 Identity of task for the listen socket (if any) More...
 
struct GNUNET_SCHEDULER_Taskttask
 Task identifier for the timeout (if any) More...
 
int is_tcp
 GNUNET_YES if we're testing TCP More...
 
uint16_t data
 Data that should be transmitted or source-port. More...
 
uint16_t adv_port
 Advertised port to the other peer. More...
 
enum GNUNET_NAT_StatusCode status
 Status code to be reported to the timeout/status call. More...
 

Detailed Description

Handle to a NAT test.

Definition at line 98 of file gnunet-nat-auto_legacy.c.

Field Documentation

◆ cfg

const struct GNUNET_CONFIGURATION_Handle* GNUNET_NAT_Test::cfg

Configuration used.

Definition at line 103 of file gnunet-nat-auto_legacy.c.

◆ report

GNUNET_NAT_TestCallback GNUNET_NAT_Test::report

Function to call with success report.

Definition at line 108 of file gnunet-nat-auto_legacy.c.

Referenced by do_read(), and do_udp_read().

◆ report_cls

void* GNUNET_NAT_Test::report_cls

Closure for report.

Definition at line 113 of file gnunet-nat-auto_legacy.c.

Referenced by do_read(), and do_udp_read().

◆ nat

struct GNUNET_NAT_Handle* GNUNET_NAT_Test::nat

Handle to NAT traversal in use.

Definition at line 118 of file gnunet-nat-auto_legacy.c.

Referenced by GNUNET_NAT_test_stop().

◆ lsock

struct GNUNET_NETWORK_Handle* GNUNET_NAT_Test::lsock

Handle to listen socket, or NULL.

Definition at line 123 of file gnunet-nat-auto_legacy.c.

Referenced by do_accept(), do_udp_read(), and GNUNET_NAT_test_stop().

◆ na_head

struct NatActivity* GNUNET_NAT_Test::na_head

Head of list of nat activities.

Definition at line 128 of file gnunet-nat-auto_legacy.c.

Referenced by do_accept(), do_read(), and GNUNET_NAT_test_stop().

◆ na_tail

struct NatActivity* GNUNET_NAT_Test::na_tail

Tail of list of nat activities.

Definition at line 133 of file gnunet-nat-auto_legacy.c.

Referenced by do_accept(), do_read(), and GNUNET_NAT_test_stop().

◆ ca_head

struct ClientActivity* GNUNET_NAT_Test::ca_head

Head of list of client activities.

Definition at line 138 of file gnunet-nat-auto_legacy.c.

Referenced by GNUNET_NAT_test_stop(), and mq_error_handler().

◆ ca_tail

struct ClientActivity* GNUNET_NAT_Test::ca_tail

Tail of list of client activities.

Definition at line 143 of file gnunet-nat-auto_legacy.c.

Referenced by GNUNET_NAT_test_stop(), and mq_error_handler().

◆ ltask

struct GNUNET_SCHEDULER_Task* GNUNET_NAT_Test::ltask

Identity of task for the listen socket (if any)

Definition at line 148 of file gnunet-nat-auto_legacy.c.

Referenced by do_accept(), do_udp_read(), and GNUNET_NAT_test_stop().

◆ ttask

struct GNUNET_SCHEDULER_Task* GNUNET_NAT_Test::ttask

Task identifier for the timeout (if any)

Definition at line 153 of file gnunet-nat-auto_legacy.c.

Referenced by GNUNET_NAT_test_stop().

◆ is_tcp

int GNUNET_NAT_Test::is_tcp

GNUNET_YES if we're testing TCP

Definition at line 158 of file gnunet-nat-auto_legacy.c.

◆ data

uint16_t GNUNET_NAT_Test::data

◆ adv_port

uint16_t GNUNET_NAT_Test::adv_port

Advertised port to the other peer.

Definition at line 168 of file gnunet-nat-auto_legacy.c.

◆ status

enum GNUNET_NAT_StatusCode GNUNET_NAT_Test::status

Status code to be reported to the timeout/status call.

Definition at line 173 of file gnunet-nat-auto_legacy.c.


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