GNUnet 0.22.2
GNUNET_UdpSocketInfo Struct Reference

Struct with the socket we like to use to send messages to another peer. More...

#include <gnunet_nat_lib.h>

Collaboration diagram for GNUNET_UdpSocketInfo:
[legend]

Data Fields

struct GNUNET_UdpSocketInfoprev
 This is a linked list. More...
 
struct GNUNET_UdpSocketInfonext
 This is a linked list. More...
 
const struct GNUNET_PeerIdentitypeer
 
struct GNUNET_NETWORK_Handleudp_sock
 
struct GNUNET_TIME_Relative rtt
 The actual RTT between the peers. More...
 
struct GNUNET_PeerIdentitypid
 The peer we like to connect to. More...
 
GNUNET_NotifyUdpSocket nus
 The notify function to call if burst mode was successful. More...
 
struct GNUNET_SCHEDULER_Taskread_task
 The read task for retrieving a burst message for this socket. More...
 
struct GNUNET_SCHEDULER_Tasktimeout_task
 Timeout task for this socket. More...
 
char * address
 The address of the other peer without port. More...
 
const char * bind_address
 Our address without port. More...
 
unsigned int port
 The port we are bound to. More...
 
struct sockaddr * actual_address
 The address of the other peer we received a burst message from. More...
 
unsigned int std_port
 Default local port we are bound to. More...
 
enum GNUNET_GenericReturnValue has_port
 Flag indicating, if the address is without port information. More...
 

Detailed Description

Struct with the socket we like to use to send messages to another peer.

Definition at line 119 of file gnunet_nat_lib.h.

Field Documentation

◆ prev

struct GNUNET_UdpSocketInfo* GNUNET_UdpSocketInfo::prev

This is a linked list.

Definition at line 124 of file gnunet_nat_lib.h.

◆ next

struct GNUNET_UdpSocketInfo* GNUNET_UdpSocketInfo::next

This is a linked list.

Definition at line 129 of file gnunet_nat_lib.h.

Referenced by GNUNET_stop_burst().

◆ peer

const struct GNUNET_PeerIdentity* GNUNET_UdpSocketInfo::peer

Definition at line 132 of file gnunet_nat_lib.h.

◆ udp_sock

struct GNUNET_NETWORK_Handle* GNUNET_UdpSocketInfo::udp_sock

◆ rtt

struct GNUNET_TIME_Relative GNUNET_UdpSocketInfo::rtt

The actual RTT between the peers.

Definition at line 140 of file gnunet_nat_lib.h.

Referenced by GNUNET_get_udp_socket(), and start_burst().

◆ pid

struct GNUNET_PeerIdentity* GNUNET_UdpSocketInfo::pid

The peer we like to connect to.

Definition at line 145 of file gnunet_nat_lib.h.

Referenced by start_burst(), and udp_socket_notify().

◆ nus

GNUNET_NotifyUdpSocket GNUNET_UdpSocketInfo::nus

The notify function to call if burst mode was successful.

Definition at line 150 of file gnunet_nat_lib.h.

Referenced by GNUNET_get_udp_socket(), and sock_read().

◆ read_task

struct GNUNET_SCHEDULER_Task* GNUNET_UdpSocketInfo::read_task

The read task for retrieving a burst message for this socket.

Definition at line 155 of file gnunet_nat_lib.h.

Referenced by GNUNET_stop_burst(), read_send(), sock_read(), and timeout_task_cb().

◆ timeout_task

struct GNUNET_SCHEDULER_Task* GNUNET_UdpSocketInfo::timeout_task

Timeout task for this socket.

Definition at line 160 of file gnunet_nat_lib.h.

Referenced by GNUNET_stop_burst(), and read_send().

◆ address

char* GNUNET_UdpSocketInfo::address

The address of the other peer without port.

Definition at line 165 of file gnunet_nat_lib.h.

Referenced by GNUNET_get_udp_socket(), GNUNET_stop_burst(), read_send(), and start_burst().

◆ bind_address

const char* GNUNET_UdpSocketInfo::bind_address

Our address without port.

Definition at line 170 of file gnunet_nat_lib.h.

Referenced by read_send(), and start_burst().

◆ port

unsigned int GNUNET_UdpSocketInfo::port

The port we are bound to.

Definition at line 175 of file gnunet_nat_lib.h.

Referenced by read_send(), and sock_read().

◆ actual_address

struct sockaddr* GNUNET_UdpSocketInfo::actual_address

The address of the other peer we received a burst message from.

Definition at line 180 of file gnunet_nat_lib.h.

Referenced by sock_read(), and udp_socket_notify().

◆ std_port

unsigned int GNUNET_UdpSocketInfo::std_port

Default local port we are bound to.

Definition at line 185 of file gnunet_nat_lib.h.

Referenced by GNUNET_get_udp_socket(), read_send(), and start_burst().

◆ has_port

enum GNUNET_GenericReturnValue GNUNET_UdpSocketInfo::has_port

Flag indicating, if the address is without port information.

Definition at line 190 of file gnunet_nat_lib.h.

Referenced by GNUNET_get_udp_socket(), and start_burst().


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