C# Class Aura.Channel.ChannelServer

Inheritance: ServerMain
Mostra file Open project: aura-project/aura

Public Properties

Property Type Description
Instance ChannelServer

Private Properties

Property Type Description
ChannelServer Aura.Channel.Database
CurrentDomain_UnhandledException void
InitializeWorld void
KillConnectedClients void
LoadScripts void
LoadSkills void
OnClientDisconnected void
ShutdownTimerDone void
StartStatusUpdateTimer void

Public Methods

Method Description
CalculateChannelState ( ) : ChannelState

Calculates the state of the channel.

When calculating the ChannelState we take into account whether the server is running as well as if it is in Maintenance.

ConnectToLogin ( bool firstTime ) : void

Tries to connect to login server, keeps trying every 10 seconds till there is a success. Blocking.

InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
Run ( ) : void

Loads all necessary components and starts the server.

Shutdown ( int time ) : void

Shutdown procedure for the current channel.

Private Methods

Method Description
ChannelServer ( ) : Aura.Channel.Database
CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Handler for unhandled exceptions.

InitializeWorld ( ) : void
KillConnectedClients ( ) : void

Kills all clients currently connected to the channel.

LoadScripts ( ) : void
LoadSkills ( ) : void
OnClientDisconnected ( ChannelClient client ) : void
ShutdownTimerDone ( object timer ) : void
StartStatusUpdateTimer ( ) : void

Method Details

CalculateChannelState() public method

Calculates the state of the channel.
When calculating the ChannelState we take into account whether the server is running as well as if it is in Maintenance.
public CalculateChannelState ( ) : ChannelState
return ChannelState

ConnectToLogin() public method

Tries to connect to login server, keeps trying every 10 seconds till there is a success. Blocking.
public ConnectToLogin ( bool firstTime ) : void
firstTime bool
return void

InitDatabase() public method

public InitDatabase ( Aura.Shared.Database.AuraDb db, BaseConf conf ) : void
db Aura.Shared.Database.AuraDb
conf Aura.Shared.Util.Configuration.BaseConf
return void

Run() public method

Loads all necessary components and starts the server.
public Run ( ) : void
return void

Shutdown() public method

Shutdown procedure for the current channel.
public Shutdown ( int time ) : void
time int The amount of time in seconds until shutdown.
return void

Property Details

Instance public_oe static_oe property

public static ChannelServer,Aura.Channel Instance
return ChannelServer