Struct with the socket we like to use to send messages to another peer. More...
#include <gnunet_nat_lib.h>
Data Fields | |
struct GNUNET_UdpSocketInfo * | prev |
This is a linked list. More... | |
struct GNUNET_UdpSocketInfo * | next |
This is a linked list. More... | |
const struct GNUNET_PeerIdentity * | peer |
struct GNUNET_NETWORK_Handle * | udp_sock |
struct GNUNET_TIME_Relative | rtt |
The actual RTT between the peers. More... | |
struct GNUNET_PeerIdentity * | pid |
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_Task * | read_task |
The read task for retrieving a burst message for this socket. More... | |
struct GNUNET_SCHEDULER_Task * | timeout_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... | |
Struct with the socket we like to use to send messages to another peer.
Definition at line 119 of file gnunet_nat_lib.h.
struct GNUNET_UdpSocketInfo* GNUNET_UdpSocketInfo::prev |
This is a linked list.
Definition at line 124 of file gnunet_nat_lib.h.
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().
const struct GNUNET_PeerIdentity* GNUNET_UdpSocketInfo::peer |
Definition at line 132 of file gnunet_nat_lib.h.
struct GNUNET_NETWORK_Handle* GNUNET_UdpSocketInfo::udp_sock |
Definition at line 135 of file gnunet_nat_lib.h.
Referenced by GNUNET_get_udp_socket(), GNUNET_stop_burst(), read_send(), sock_read(), start_burst(), timeout_task_cb(), and udp_socket_notify().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().