C# Class OpenNos.GameObject.SessionManager

Show file Open project: OpenNos/OpenNos Class Usage Examples

Protected Properties

Property Type Description
_packetHandler System.Type
_sessions ClientSession>.ConcurrentDictionary

Public Methods

Method Description
AddSession ( INetworkClient customClient ) : void
RemoveSession ( INetworkClient client ) : void
SessionManager ( Type packetHandler, bool isWorldServer ) : System
StopServer ( ) : void

Protected Methods

Method Description
IntializeNewSession ( INetworkClient client ) : ClientSession

Method Details

AddSession() public method

public AddSession ( INetworkClient customClient ) : void
customClient INetworkClient
return void

IntializeNewSession() protected method

protected IntializeNewSession ( INetworkClient client ) : ClientSession
client INetworkClient
return ClientSession

RemoveSession() public method

public RemoveSession ( INetworkClient client ) : void
client INetworkClient
return void

SessionManager() public method

public SessionManager ( Type packetHandler, bool isWorldServer ) : System
packetHandler System.Type
isWorldServer bool
return System

StopServer() public method

public StopServer ( ) : void
return void

Property Details

_packetHandler protected property

protected Type,System _packetHandler
return System.Type

_sessions protected property

protected ConcurrentDictionary _sessions
return ClientSession>.ConcurrentDictionary