Class Peer2PeerBackend
Inherits the following classes: GGPOSession, IPollSink, Udp::Callbacks
Public Attributes
| Type | Name |
|---|---|
| int | remoteplayerId |
| int | remoteplayerQueueu |
Public Functions
| Type | Name |
|---|---|
| virtual GGPOErrorCode | AddLocalInput (GGPOPlayerHandle player, void * values, int size) |
| virtual GGPOErrorCode | AddPlayer (GGPOPlayer * player, GGPOPlayerHandle * handle) |
| virtual GGPOErrorCode | DisconnectPlayer (GGPOPlayerHandle handle) |
| virtual GGPOErrorCode | DoPoll (int timeout) |
| virtual GGPOErrorCode | GetNetworkStats (FGGPONetworkStats * stats, GGPOPlayerHandle handle) override |
| virtual GGPOErrorCode | IncrementFrame (void) |
| virtual void | OnMsg (int connection_id, UdpMsg * msg, int len) override |
| Peer2PeerBackend (GGPOSessionCallbacks * cb, const char * gamename, ConnectionManager * connection_manager, int num_players, int input_size) |
|
| virtual GGPOErrorCode | SetDisconnectNotifyStart (int timeout) |
| virtual GGPOErrorCode | SetDisconnectTimeout (int timeout) |
| virtual GGPOErrorCode | SetFrameDelay (GGPOPlayerHandle player, int delay) |
| virtual GGPOErrorCode | SyncInput (void * values, int size, int * disconnect_flags) |
| virtual GGPOErrorCode | TrySynchronizeLocal () override |
| virtual | ~Peer2PeerBackend () |
Public Functions inherited from GGPOSession
See GGPOSession
| Type | Name |
|---|---|
| virtual GGPOErrorCode | AddLocalInput (GGPOPlayerHandle player, void * values, int size) = 0 |
| virtual GGPOErrorCode | AddPlayer (GGPOPlayer * player, GGPOPlayerHandle * handle) = 0 |
| virtual GGPOErrorCode | Chat (char * text) |
| virtual GGPOErrorCode | DisconnectPlayer (GGPOPlayerHandle handle) |
| virtual GGPOErrorCode | DoPoll (int timeout) |
| virtual GGPOErrorCode | GetNetworkStats (FGGPONetworkStats * stats, GGPOPlayerHandle handle) |
| virtual GGPOErrorCode | IncrementFrame (void) |
| virtual GGPOErrorCode | Logv (const char * fmt, va_list list) |
| virtual GGPOErrorCode | SetDisconnectNotifyStart (int timeout) |
| virtual GGPOErrorCode | SetDisconnectTimeout (int timeout) |
| virtual GGPOErrorCode | SetFrameDelay (GGPOPlayerHandle player, int delay) |
| virtual GGPOErrorCode | SyncInput (void * values, int size, int * disconnect_flags) = 0 |
| virtual GGPOErrorCode | TrySynchronizeLocal () |
| virtual | ~GGPOSession () |
Public Functions inherited from IPollSink
See IPollSink
| Type | Name |
|---|---|
| virtual bool | OnHandlePoll (void *) |
| virtual bool | OnLoopPoll (void *) |
| virtual bool | OnMsgPoll (void *) |
| virtual bool | OnPeriodicPoll (void *, int) |
| virtual | ~IPollSink () |
Public Functions inherited from Udp::Callbacks
See Udp::Callbacks
| Type | Name |
|---|---|
| virtual void | OnMsg (int connection_id, UdpMsg * msg, int len) = 0 |
| virtual | ~Callbacks () |
Protected Attributes
Protected Functions
| Type | Name |
|---|---|
| void | AddRemotePlayer (int connection_id, int queue) |
| GGPOErrorCode | AddSpectator (int connection_id) |
| void | CheckInitialSync (void) |
| void | DisconnectPlayerQueue (int queue, int syncto) |
| virtual void | OnSyncEvent (Sync::Event & e) |
| virtual void | OnUdpProtocolEvent (UdpProtocol::Event & e, GGPOPlayerHandle handle) |
| virtual void | OnUdpProtocolPeerEvent (UdpProtocol::Event & e, int queue) |
| virtual void | OnUdpProtocolSpectatorEvent (UdpProtocol::Event & e, int queue) |
| GGPOErrorCode | PlayerHandleToQueue (GGPOPlayerHandle player, int * queue) |
| int | Poll2Players (int current_frame) |
| int | PollNPlayers (int current_frame) |
| void | PollSyncEvents (void) |
| void | PollUdpProtocolEvents (void) |
| GGPOPlayerHandle | QueueToPlayerHandle (int queue) |
| GGPOPlayerHandle | QueueToSpectatorHandle (int queue) |
Public Attributes Documentation
variable remoteplayerId
int Peer2PeerBackend::remoteplayerId;
variable remoteplayerQueueu
int Peer2PeerBackend::remoteplayerQueueu;
Public Functions Documentation
function AddLocalInput
virtual GGPOErrorCode Peer2PeerBackend::AddLocalInput (
GGPOPlayerHandle player,
void * values,
int size
)
Implements GGPOSession::AddLocalInput
function AddPlayer
virtual GGPOErrorCode Peer2PeerBackend::AddPlayer (
GGPOPlayer * player,
GGPOPlayerHandle * handle
)
Implements GGPOSession::AddPlayer
function DisconnectPlayer
virtual GGPOErrorCode Peer2PeerBackend::DisconnectPlayer (
GGPOPlayerHandle handle
)
Implements GGPOSession::DisconnectPlayer
function DoPoll
virtual GGPOErrorCode Peer2PeerBackend::DoPoll (
int timeout
)
Implements GGPOSession::DoPoll
function GetNetworkStats
virtual GGPOErrorCode Peer2PeerBackend::GetNetworkStats (
FGGPONetworkStats * stats,
GGPOPlayerHandle handle
) override
Implements GGPOSession::GetNetworkStats
function IncrementFrame
virtual GGPOErrorCode Peer2PeerBackend::IncrementFrame (
void
)
Implements GGPOSession::IncrementFrame
function OnMsg
virtual void Peer2PeerBackend::OnMsg (
int connection_id,
UdpMsg * msg,
int len
) override
Implements Udp::Callbacks::OnMsg
function Peer2PeerBackend
Peer2PeerBackend::Peer2PeerBackend (
GGPOSessionCallbacks * cb,
const char * gamename,
ConnectionManager * connection_manager,
int num_players,
int input_size
)
function SetDisconnectNotifyStart
virtual GGPOErrorCode Peer2PeerBackend::SetDisconnectNotifyStart (
int timeout
)
Implements GGPOSession::SetDisconnectNotifyStart
function SetDisconnectTimeout
virtual GGPOErrorCode Peer2PeerBackend::SetDisconnectTimeout (
int timeout
)
Implements GGPOSession::SetDisconnectTimeout
function SetFrameDelay
virtual GGPOErrorCode Peer2PeerBackend::SetFrameDelay (
GGPOPlayerHandle player,
int delay
)
Implements GGPOSession::SetFrameDelay
function SyncInput
virtual GGPOErrorCode Peer2PeerBackend::SyncInput (
void * values,
int size,
int * disconnect_flags
)
Implements GGPOSession::SyncInput
function TrySynchronizeLocal
virtual GGPOErrorCode Peer2PeerBackend::TrySynchronizeLocal () override
Implements GGPOSession::TrySynchronizeLocal
function ~Peer2PeerBackend
virtual Peer2PeerBackend::~Peer2PeerBackend ()
Protected Attributes Documentation
variable _callbacks
GGPOSessionCallbacks Peer2PeerBackend::_callbacks;
variable _disconnect_notify_start
int Peer2PeerBackend::_disconnect_notify_start;
variable _disconnect_timeout
int Peer2PeerBackend::_disconnect_timeout;
variable _endpoints
UdpProtocol* Peer2PeerBackend::_endpoints;
variable _input_size
int Peer2PeerBackend::_input_size;
variable _local_connect_status
UdpMsg::connect_status Peer2PeerBackend::_local_connect_status[UDP_MSG_MAX_PLAYERS];
variable _next_recommended_sleep
int Peer2PeerBackend::_next_recommended_sleep;
variable _next_spectator_frame
int Peer2PeerBackend::_next_spectator_frame;
variable _num_players
int Peer2PeerBackend::_num_players;
variable _num_spectators
int Peer2PeerBackend::_num_spectators;
variable _poll
Poll Peer2PeerBackend::_poll;
variable _spectators
UdpProtocol Peer2PeerBackend::_spectators[GGPO_MAX_SPECTATORS];
variable _sync
Sync Peer2PeerBackend::_sync;
variable _synchronizing
bool Peer2PeerBackend::_synchronizing;
variable _udp
Udp Peer2PeerBackend::_udp;
Protected Functions Documentation
function AddRemotePlayer
void Peer2PeerBackend::AddRemotePlayer (
int connection_id,
int queue
)
function AddSpectator
GGPOErrorCode Peer2PeerBackend::AddSpectator (
int connection_id
)
function CheckInitialSync
void Peer2PeerBackend::CheckInitialSync (
void
)
function DisconnectPlayerQueue
void Peer2PeerBackend::DisconnectPlayerQueue (
int queue,
int syncto
)
function OnSyncEvent
inline virtual void Peer2PeerBackend::OnSyncEvent (
Sync::Event & e
)
function OnUdpProtocolEvent
virtual void Peer2PeerBackend::OnUdpProtocolEvent (
UdpProtocol::Event & e,
GGPOPlayerHandle handle
)
function OnUdpProtocolPeerEvent
virtual void Peer2PeerBackend::OnUdpProtocolPeerEvent (
UdpProtocol::Event & e,
int queue
)
function OnUdpProtocolSpectatorEvent
virtual void Peer2PeerBackend::OnUdpProtocolSpectatorEvent (
UdpProtocol::Event & e,
int queue
)
function PlayerHandleToQueue
GGPOErrorCode Peer2PeerBackend::PlayerHandleToQueue (
GGPOPlayerHandle player,
int * queue
)
function Poll2Players
int Peer2PeerBackend::Poll2Players (
int current_frame
)
function PollNPlayers
int Peer2PeerBackend::PollNPlayers (
int current_frame
)
function PollSyncEvents
void Peer2PeerBackend::PollSyncEvents (
void
)
function PollUdpProtocolEvents
void Peer2PeerBackend::PollUdpProtocolEvents (
void
)
function QueueToPlayerHandle
inline GGPOPlayerHandle Peer2PeerBackend::QueueToPlayerHandle (
int queue
)
function QueueToSpectatorHandle
inline GGPOPlayerHandle Peer2PeerBackend::QueueToSpectatorHandle (
int queue
)
The documentation for this class was generated from the following file C:/Users/wistf/Unreal Projects/NightSkyEngine/Plugins/NightSkyEngine/Source/GGPOUE4/Private/backends/p2p.h