RetroArch
Classes | Macros | Enumerations | Functions | Variables
netplay_discovery.h File Reference
#include <net/net_compat.h>
#include <net/net_ifinfo.h>
#include <retro_miscellaneous.h>
Include dependency graph for netplay_discovery.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  netplay_host
 
struct  netplay_host_list
 
struct  netplay_room
 

Macros

#define NETPLAY_HOST_STR_LEN   32
 
#define NETPLAY_HOST_LONGSTR_LEN   256
 

Enumerations

enum  rarch_netplay_discovery_ctl_state { RARCH_NETPLAY_DISCOVERY_CTL_NONE = 0, RARCH_NETPLAY_DISCOVERY_CTL_LAN_SEND_QUERY, RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES, RARCH_NETPLAY_DISCOVERY_CTL_LAN_CLEAR_RESPONSES }
 
enum  netplay_host_method { NETPLAY_HOST_METHOD_UNKNOWN = 0, NETPLAY_HOST_METHOD_MANUAL, NETPLAY_HOST_METHOD_UPNP, NETPLAY_HOST_METHOD_MITM }
 

Functions

bool init_netplay_discovery (void)
 
void deinit_netplay_discovery (void)
 
bool netplay_discovery_driver_ctl (enum rarch_netplay_discovery_ctl_state state, void *data)
 
struct netplay_roomnetplay_get_host_room (void)
 

Variables

struct netplay_roomnetplay_room_list
 
int netplay_room_count
 

Macro Definition Documentation

◆ NETPLAY_HOST_LONGSTR_LEN

#define NETPLAY_HOST_LONGSTR_LEN   256

◆ NETPLAY_HOST_STR_LEN

#define NETPLAY_HOST_STR_LEN   32

Enumeration Type Documentation

◆ netplay_host_method

Enumerator
NETPLAY_HOST_METHOD_UNKNOWN 
NETPLAY_HOST_METHOD_MANUAL 
NETPLAY_HOST_METHOD_UPNP 
NETPLAY_HOST_METHOD_MITM 

◆ rarch_netplay_discovery_ctl_state

Enumerator
RARCH_NETPLAY_DISCOVERY_CTL_NONE 
RARCH_NETPLAY_DISCOVERY_CTL_LAN_SEND_QUERY 
RARCH_NETPLAY_DISCOVERY_CTL_LAN_GET_RESPONSES 
RARCH_NETPLAY_DISCOVERY_CTL_LAN_CLEAR_RESPONSES 

Function Documentation

◆ deinit_netplay_discovery()

void deinit_netplay_discovery ( void  )

Deinitialize and free Netplay discovery

Here is the call graph for this function:

◆ init_netplay_discovery()

bool init_netplay_discovery ( void  )

Initialize Netplay discovery

Initialize Netplay discovery (client)

Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_discovery_driver_ctl()

bool netplay_discovery_driver_ctl ( enum rarch_netplay_discovery_ctl_state  state,
void data 
)

Discovery control

Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_get_host_room()

struct netplay_room* netplay_get_host_room ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ netplay_room_count

int netplay_room_count

◆ netplay_room_list

struct netplay_room* netplay_room_list