Photon Server API
Classes | Public Member Functions | Properties | Events | List of all members
Photon.LoadBalancing.Common.NodesReader Class Reference
Inheritance diagram for Photon.LoadBalancing.Common.NodesReader:

Classes

class  NodeEventArgs
 

Public Member Functions

 NodesReader (string nodesFilePath, string nodesFileName)
 
IPAddress GetIpAddress (byte nodeId)
 
void OnNodeAdded (NodeEventArgs e)
 
void OnNodeChanged (NodeEventArgs e)
 
void OnNodeRemoved (NodeEventArgs e)
 
byte ReadCurrentNodeId ()
 Used by game server. The returned node id will be used by clients to initate a game server connection. More...
 
void Start ()
 
void Stop ()
 
void Dispose ()
 

Properties

byte CurrentNodeId [get]
 

Events

EventHandler< NodeEventArgsNodeAdded
 
EventHandler< NodeEventArgsNodeChanged
 
EventHandler< NodeEventArgsNodeRemoved
 

Constructor & Destructor Documentation

Photon.LoadBalancing.Common.NodesReader.NodesReader ( string  nodesFilePath,
string  nodesFileName 
)
inline

Member Function Documentation

void Photon.LoadBalancing.Common.NodesReader.Dispose ( )
inline
IPAddress Photon.LoadBalancing.Common.NodesReader.GetIpAddress ( byte  nodeId)
inline
void Photon.LoadBalancing.Common.NodesReader.OnNodeAdded ( NodeEventArgs  e)
inline
void Photon.LoadBalancing.Common.NodesReader.OnNodeChanged ( NodeEventArgs  e)
inline
void Photon.LoadBalancing.Common.NodesReader.OnNodeRemoved ( NodeEventArgs  e)
inline
byte Photon.LoadBalancing.Common.NodesReader.ReadCurrentNodeId ( )
inline

Used by game server. The returned node id will be used by clients to initate a game server connection.

Returns
The local node id OR 0
void Photon.LoadBalancing.Common.NodesReader.Start ( )
inline
void Photon.LoadBalancing.Common.NodesReader.Stop ( )
inline

Property Documentation

byte Photon.LoadBalancing.Common.NodesReader.CurrentNodeId
get

Event Documentation

EventHandler<NodeEventArgs> Photon.LoadBalancing.Common.NodesReader.NodeAdded
EventHandler<NodeEventArgs> Photon.LoadBalancing.Common.NodesReader.NodeChanged
EventHandler<NodeEventArgs> Photon.LoadBalancing.Common.NodesReader.NodeRemoved