|
RetroArch
|
#include <stdlib.h>#include <stdio.h>#include <sys/types.h>#include <boolean.h>#include <compat/strl.h>#include "netplay_private.h"#include "../../configuration.h"#include "../../retroarch.h"#include "../../tasks/tasks_internal.h"Macros | |
| #define | BUFSZ 16 /* FIXME: Arbitrary restriction */ |
| #define | RECV(buf, sz) |
| #define | START(which) |
| #define | NEXT() |
| #define BUFSZ 16 /* FIXME: Arbitrary restriction */ |
| #define NEXT | ( | ) |
| #define RECV | ( | buf, | |
| sz | |||
| ) |
| #define START | ( | which | ) |
|
static |
announce_play_spectate
Announce a play or spectate mode change
|
static |
handle_play_spectate
Handle a play or spectate request
netplay_announce_nat_traversal
Announce successful NAT traversal.
| bool netplay_cmd_crc | ( | netplay_t * | netplay, |
| struct delta_frame * | delta | ||
| ) |
netplay_cmd_crc
Send a CRC command to all active clients.
| bool netplay_cmd_mode | ( | netplay_t * | netplay, |
| enum rarch_netplay_connection_mode | mode | ||
| ) |
netplay_cmd_mode
Send a mode change request. As a server, the request is to ourself, and so honored instantly.
|
static |
netplay_cmd_request_savestate
Send a savestate request command.
| bool netplay_cmd_stall | ( | netplay_t * | netplay, |
| struct netplay_connection * | connection, | ||
| uint32_t | frames | ||
| ) |
netplay_cmd_stall
Send a stall command.
netplay_delayed_state_change:
Handle any pending state changes which are ready as of the beginning of the current frame.
|
static |
netplay_handle_slaves
Handle any slave connections
| void netplay_hangup | ( | netplay_t * | netplay, |
| struct netplay_connection * | connection | ||
| ) |
netplay_hangup:
Disconnects an active Netplay connection due to an error
netplay_init_nat_traversal
Initialize the NAT traversal library and try to open a port
netplay_poll_net_input
Poll input from the network
| bool netplay_send_cur_input | ( | netplay_t * | netplay, |
| struct netplay_connection * | connection | ||
| ) |
netplay_send_cur_input
Send the current input frame to a given connection.
Returns true if successful, false otherwise.
|
static |
netplay_send_flush_all
Flush all of our output buffers
| bool netplay_send_raw_cmd | ( | netplay_t * | netplay, |
| struct netplay_connection * | connection, | ||
| uint32_t | cmd, | ||
| const void * | data, | ||
| size_t | size | ||
| ) |
netplay_send_raw_cmd
Send a raw Netplay command to the given connection.
Returns true on success, false on failure.
| void netplay_send_raw_cmd_all | ( | netplay_t * | netplay, |
| struct netplay_connection * | except, | ||
| uint32_t | cmd, | ||
| const void * | data, | ||
| size_t | size | ||
| ) |
netplay_send_raw_cmd_all
Send a raw Netplay command to all connections, optionally excluding one (typically the client that the relevant command came from)
|
static |
remote_unpaused
Mark a particular remote connection as unpaused and, if relevant, inform every one else that they may resume.
|
static |
1.8.15