RetroArch
Classes | Functions
net_natt.h File Reference
#include <net/net_compat.h>
#include <net/net_socket.h>
#include <retro_common_api.h>
Include dependency graph for net_natt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  natt_status
 

Functions

void natt_init (void)
 
bool natt_new (struct natt_status *status)
 
void natt_free (struct natt_status *status)
 
bool natt_open_port_any (struct natt_status *status, uint16_t port, enum socket_protocol proto)
 
bool natt_read (struct natt_status *status)
 

Function Documentation

◆ natt_free()

void natt_free ( struct natt_status status)

Free a NAT traversal status object

Here is the caller graph for this function:

◆ natt_init()

void natt_init ( void  )

Initialize global NAT traversal structures (must be called once to use other functions)

Here is the call graph for this function:

◆ natt_new()

bool natt_new ( struct natt_status status)

Initialize a NAT traversal status object

Here is the call graph for this function:

◆ natt_open_port_any()

bool natt_open_port_any ( struct natt_status status,
uint16_t  port,
enum socket_protocol  proto 
)

Make a port forwarding request when only the port is known. Forwards any address it can find.

Here is the call graph for this function:

◆ natt_read()

bool natt_read ( struct natt_status status)

Check for port forwarding responses

Here is the caller graph for this function: