GNUnet 0.22.0
gnunet_nat_lib.h File Reference
#include "gnunet_common.h"
Include dependency graph for gnunet_nat_lib.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  GNUNET_BurstSync
 Wrapper struct with the average RTT of message to some peer and if this peer und us is ready to sync. More...
 
struct  GNUNET_BurstMessage
 Message send during burst mode. More...
 
struct  GNUNET_StartBurstCls
 Struct wrapping information we use for starting the burst. More...
 
struct  GNUNET_UdpSocketInfo
 Struct with the socket we like to use to send messages to another peer. More...
 

Macros

#define GNUNET_NAT_LIB_H
 

Typedefs

typedef void(* GNUNET_NotifyUdpSocket) (struct GNUNET_UdpSocketInfo *sock_info)
 

Functions

struct GNUNET_BurstSyncGNUNET_get_burst_sync_msg (struct GNUNET_TIME_Relative rtt_average, enum GNUNET_GenericReturnValue sync_ready)
 Create GNUNET_BurstSync message. More...
 
void GNUNET_is_burst_ready (struct GNUNET_TIME_Relative rtt_average, struct GNUNET_BurstSync *burst_sync, GNUNET_SCHEDULER_TaskCallback task, struct GNUNET_StartBurstCls *task_cls)
 Checks if we are ready and starts burst when we and the other peer is ready. More...
 
struct GNUNET_SCHEDULER_TaskGNUNET_get_udp_socket (struct GNUNET_UdpSocketInfo *sock_info, GNUNET_NotifyUdpSocket nus)
 Method to get a UDP socket for a peer that is natted. More...
 
void GNUNET_stop_burst (struct GNUNET_NETWORK_Handle *do_not_touch)
 Method to stop all sockets we established to the other peer. More...