Photon Unity Networking 2: ConnectionHandler Class Reference

Photon Unity Networking 2

Inherited by PhotonHandler.

Public Member Functions

void StartFallbackSendAckThread ()
 
void StopFallbackSendAckThread ()
 
bool RealtimeFallbackThread ()
 A thread which runs independent from the Update() calls. Keeps connections online while loading or in background. See PhotonNetwork.BackgroundTimeout. More...
 

Public Attributes

int KeepAliveInBackground = 60000
 Defines for how long the Fallback Thread should keep the connection, before it may time out as usual. More...
 

Properties

LoadBalancingClient Client [get, set]
 Photon client to log information and statistics from. More...
 
int CountSendAcksOnly [get]
 Counts how often the Fallback Thread called SendAcksOnly, which is purely of interest to monitor if the game logic called SendOutgoingCommands as intended. More...
 
bool FallbackThreadRunning [get]
 

Member Function Documentation

bool RealtimeFallbackThread ( )

A thread which runs independent from the Update() calls. Keeps connections online while loading or in background. See PhotonNetwork.BackgroundTimeout.

Member Data Documentation

int KeepAliveInBackground = 60000

Defines for how long the Fallback Thread should keep the connection, before it may time out as usual.

We want to the Client to keep it's connection when an app is in the background (and doesn't call Update / Service Clients should not keep their connection indefinitely in the background, so after some milliseconds, the Fallback Thread should stop keeping it up.

Property Documentation

LoadBalancingClient Client
getset

Photon client to log information and statistics from.

int CountSendAcksOnly
get

Counts how often the Fallback Thread called SendAcksOnly, which is purely of interest to monitor if the game logic called SendOutgoingCommands as intended.

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH