RetroArch
|
#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>
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) |
void natt_free | ( | struct natt_status * | status | ) |
Free a NAT traversal status object
Initialize global NAT traversal structures (must be called once to use other functions)
bool natt_new | ( | struct natt_status * | status | ) |
Initialize a NAT traversal status object
|
static |
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.
bool natt_read | ( | struct natt_status * | status | ) |
Check for port forwarding responses