Photon Fusion 1.1.9

Public Types | Public Member Functions | Public Attributes | List of all members
NetworkConfiguration Class Reference

Main network configuration class. More...

Public Types

enum  ReliableDataTransfers
 Flag for allowed Reliable Data transfer modes. More...
 

Public Member Functions

NetworkConfiguration Init ()
 Initializes and creates a copy of this NetworkProjectConfig.
 

Public Attributes

int ConnectAttempts = 10
 Max number of connection attempts that a Client will run when trying to connect to a remote Server.
 
double ConnectInterval = 0.5
 Interval in seconds between each connection attempt from a Client.
 
double ConnectionDefaultRtt = 0.1
 Default assumed RTT in seconds for new connections (before actual RTT has been determined). The real RTT is calculated over time once the connection is established.
 
double ConnectionPingInterval = 1
 Interval in seconds between PING messages sent to a remote connection, in order to keep that connection alive.
 
double ConnectionShutdownTime = 1
 Default delay between connection changes status to Shutdown (disconnected/invalid), and it actually being released (freeing all references to that particular connection).
 
double ConnectionTimeout = 10
 Max allowed time in seconds that the local peer can run without receiving any update from a remote peer. If a client does not receive any update from the server within this period, it will disconnect itself. If a server does not receive any update from a remote client within this period, it will disconnect that particular client.
 
int MtuDefault = NetPeer.MAX_MTU_BYTES
 Max number of bytes that can be used by Fusion to fill up a UDP package.
 
ReliableDataTransfers ReliableDataTransferModes
 Current ReliableDataTransferModes mode.
 
int SocketRecvBufferSize = 256
 Size in Kilobytes of the underlying socket receive buffer.
 
int SocketSendBufferSize = 256
 Size in Kilobytes of the underlying socket send buffer.
 

Detailed Description

Main network configuration class.

Member Enumeration Documentation

◆ ReliableDataTransfers

Flag for allowed Reliable Data transfer modes.

Enumerator
ClientToServer 

Allow Client to Server.

ClientToClientWithServerProxy 

Allow Client to Client using Server as Proxy.

Member Function Documentation

◆ Init()

Initializes and creates a copy of this NetworkProjectConfig.

Returns

Member Data Documentation

◆ ConnectionPingInterval

double ConnectionPingInterval = 1

Interval in seconds between PING messages sent to a remote connection, in order to keep that connection alive.

Currently unused.

◆ ReliableDataTransferModes

ReliableDataTransfers ReliableDataTransferModes
Initial value:
=
ReliableDataTransfers.ClientToServer |
ReliableDataTransfers.ClientToClientWithServerProxy
ReliableDataTransfers
Flag for allowed Reliable Data transfer modes.
Definition SimulationConfig.NetworkConfiguration.cs:20

Current ReliableDataTransferModes mode.