GNUnet  0.11.x
Data Fields
GNUNET_NAT_STUN_Handle Struct Reference

Handle to a request given to the resolver. More...

Collaboration diagram for GNUNET_NAT_STUN_Handle:
[legend]

Data Fields

struct GNUNET_RESOLVER_RequestHandledns_active
 Handle to a pending DNS lookup request. More...
 
struct GNUNET_NETWORK_Handlesock
 Handle to the listen socket. More...
 
char * stun_server
 Stun server address. More...
 
GNUNET_NAT_TestCallback cb
 Function to call when a error occours. More...
 
void * cb_cls
 Closure for cb. More...
 
int dns_success
 Do we got a DNS resolution successfully? More...
 
uint16_t stun_port
 STUN port. More...
 

Detailed Description

Handle to a request given to the resolver.

Can be used to cancel the request prior to the timeout or successful execution. Also used to track our internal state for the request.

Definition at line 56 of file nat_api_stun.c.

Field Documentation

◆ dns_active

struct GNUNET_RESOLVER_RequestHandle* GNUNET_NAT_STUN_Handle::dns_active

Handle to a pending DNS lookup request.

Definition at line 61 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), GNUNET_NAT_stun_make_request_cancel(), and stun_dns_callback().

◆ sock

struct GNUNET_NETWORK_Handle* GNUNET_NAT_STUN_Handle::sock

Handle to the listen socket.

Definition at line 66 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), and stun_dns_callback().

◆ stun_server

char* GNUNET_NAT_STUN_Handle::stun_server

Stun server address.

Definition at line 71 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), GNUNET_NAT_stun_make_request_cancel(), and stun_dns_callback().

◆ cb

GNUNET_NAT_TestCallback GNUNET_NAT_STUN_Handle::cb

Function to call when a error occours.

Definition at line 76 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), and stun_dns_callback().

◆ cb_cls

void* GNUNET_NAT_STUN_Handle::cb_cls

Closure for cb.

Definition at line 81 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), and stun_dns_callback().

◆ dns_success

int GNUNET_NAT_STUN_Handle::dns_success

Do we got a DNS resolution successfully?

Definition at line 86 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), and stun_dns_callback().

◆ stun_port

uint16_t GNUNET_NAT_STUN_Handle::stun_port

STUN port.

Definition at line 91 of file nat_api_stun.c.

Referenced by GNUNET_NAT_stun_make_request(), and stun_dns_callback().


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