GNUnet 0.21.1
GNUNET_NAT_ExternalHandle Struct Reference

Opaque handle to cancel "GNUNET_NAT_mini_get_external_ipv4" operation. More...

Collaboration diagram for GNUNET_NAT_ExternalHandle:
[legend]

Data Fields

GNUNET_NAT_IPCallback cb
 Function to call with the result. More...
 
void * cb_cls
 Closure for cb. More...
 
struct GNUNET_SCHEDULER_Tasktask
 Read task. More...
 
struct GNUNET_OS_Processeip
 Handle to external-ip process. More...
 
struct GNUNET_DISK_PipeHandleopipe
 Handle to stdout pipe of external-ip. More...
 
const struct GNUNET_DISK_FileHandler
 Read handle of opipe. More...
 
size_t off
 Number of bytes in buf that are valid. More...
 
char buf [17]
 Destination of our read operation (output of 'external-ip'). More...
 
enum GNUNET_NAT_StatusCode ret
 Error code for better debugging and user feedback. More...
 

Detailed Description

Opaque handle to cancel "GNUNET_NAT_mini_get_external_ipv4" operation.

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

Field Documentation

◆ cb

GNUNET_NAT_IPCallback GNUNET_NAT_ExternalHandle::cb

Function to call with the result.

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

Referenced by GNUNET_NAT_mini_get_external_ipv4_(), read_external_ipv4(), and signal_external_ip_error().

◆ cb_cls

void* GNUNET_NAT_ExternalHandle::cb_cls

◆ task

◆ eip

struct GNUNET_OS_Process* GNUNET_NAT_ExternalHandle::eip

Handle to external-ip process.

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

Referenced by GNUNET_NAT_mini_get_external_ipv4_(), and GNUNET_NAT_mini_get_external_ipv4_cancel_().

◆ opipe

struct GNUNET_DISK_PipeHandle* GNUNET_NAT_ExternalHandle::opipe

Handle to stdout pipe of external-ip.

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

Referenced by GNUNET_NAT_mini_get_external_ipv4_(), and GNUNET_NAT_mini_get_external_ipv4_cancel_().

◆ r

const struct GNUNET_DISK_FileHandle* GNUNET_NAT_ExternalHandle::r

Read handle of opipe.

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

Referenced by GNUNET_NAT_mini_get_external_ipv4_(), and read_external_ipv4().

◆ off

size_t GNUNET_NAT_ExternalHandle::off

Number of bytes in buf that are valid.

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

Referenced by read_external_ipv4().

◆ buf

char GNUNET_NAT_ExternalHandle::buf[17]

Destination of our read operation (output of 'external-ip').

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

Referenced by read_external_ipv4().

◆ ret

enum GNUNET_NAT_StatusCode GNUNET_NAT_ExternalHandle::ret

Error code for better debugging and user feedback.

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

Referenced by GNUNET_NAT_mini_get_external_ipv4_(), read_external_ipv4(), and signal_external_ip_error().


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