RetroArch
Functions
netplay_init.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <boolean.h>
#include <compat/strl.h>
#include "netplay_private.h"
#include "netplay_discovery.h"
#include "../../autosave.h"
#include "../../retroarch.h"
#include "../../input/input_driver.h"
Include dependency graph for netplay_init.c:

Functions

static int init_tcp_connection (const struct addrinfo *res, bool server, struct sockaddr *other_addr, socklen_t addr_size)
 
static bool init_tcp_socket (netplay_t *netplay, void *direct_host, const char *server, uint16_t port)
 
static bool init_socket (netplay_t *netplay, void *direct_host, const char *server, uint16_t port)
 
static bool netplay_init_socket_buffers (netplay_t *netplay)
 
bool netplay_init_serialization (netplay_t *netplay)
 
bool netplay_try_init_serialization (netplay_t *netplay)
 
bool netplay_wait_and_init_serialization (netplay_t *netplay)
 
static bool netplay_init_buffers (netplay_t *netplay)
 
netplay_tnetplay_new (void *direct_host, const char *server, uint16_t port, bool stateless_mode, int check_frames, const struct retro_callbacks *cb, bool nat_traversal, const char *nick, uint64_t quirks)
 
void netplay_free (netplay_t *netplay)
 

Function Documentation

◆ init_socket()

static bool init_socket ( netplay_t netplay,
void direct_host,
const char *  server,
uint16_t  port 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_tcp_connection()

static int init_tcp_connection ( const struct addrinfo res,
bool  server,
struct sockaddr other_addr,
socklen_t  addr_size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_tcp_socket()

static bool init_tcp_socket ( netplay_t netplay,
void direct_host,
const char *  server,
uint16_t  port 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_free()

void netplay_free ( netplay_t netplay)

netplay_free : pointer to netplay object

Frees netplay data/

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

◆ netplay_init_buffers()

static bool netplay_init_buffers ( netplay_t netplay)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_init_serialization()

bool netplay_init_serialization ( netplay_t netplay)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_init_socket_buffers()

static bool netplay_init_socket_buffers ( netplay_t netplay)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ netplay_new()

netplay_t* netplay_new ( void direct_host,
const char *  server,
uint16_t  port,
bool  stateless_mode,
int  check_frames,
const struct retro_callbacks cb,
bool  nat_traversal,
const char *  nick,
uint64_t  quirks 
)

netplay_new: : Netplay host discovered from scanning. : IP address of server. : Port of server. : Shall we use stateless mode? : Frequency with which to check CRCs. : Libretro callbacks. : If true, attempt NAT traversal. : Nickname of user. : Netplay quirks required for this session.

Creates a new netplay handle. A NULL server means we're hosting.

Returns: new netplay data.

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

◆ netplay_try_init_serialization()

bool netplay_try_init_serialization ( netplay_t netplay)

netplay_try_init_serialization

Try to initialize serialization. For quirky cores.

Returns true if serialization is now ready, false otherwise.

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

◆ netplay_wait_and_init_serialization()

bool netplay_wait_and_init_serialization ( netplay_t netplay)

netplay_wait_and_init_serialization

Try very hard to initialize serialization, simulating multiple frames if necessary. For quirky cores.

Returns true if serialization is now ready, false otherwise.

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