|
RetroArch
|
#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"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_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) |
| void | netplay_free (netplay_t *netplay) |
|
static |
|
static |
|
static |
netplay_free : pointer to netplay object
Frees netplay data/
| 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.
netplay_try_init_serialization
Try to initialize serialization. For quirky cores.
Returns true if serialization is now ready, false otherwise.
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.
1.8.15