RetroArch
Functions
net_natt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <net/net_compat.h>
#include <net/net_ifinfo.h>
#include <retro_miscellaneous.h>
#include <string/stdstring.h>
#include <net/net_natt.h>
Include dependency graph for net_natt.c:

Functions

void natt_init (void)
 
bool natt_new (struct natt_status *status)
 
void natt_free (struct natt_status *status)
 
static bool natt_open_port (struct natt_status *status, struct sockaddr *addr, socklen_t addrlen, enum socket_protocol proto)
 
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()

static bool natt_open_port ( struct natt_status status,
struct sockaddr addr,
socklen_t  addrlen,
enum socket_protocol  proto 
)
static
Here is the call graph for this function:
Here is the caller 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: