C# Class OpenStory.Server.Processing.ServerProcess

Inheritance: IServerProcess, IDisposable
ファイルを表示 Open project: shoftee/OpenStory Class Usage Examples

Public Methods

Method Description
Configure ( OsServiceConfiguration configuration ) : void
Dispose ( ) : void
ServerProcess ( IServerSessionFactory sessionFactory, ISocketAcceptorFactory socketAcceptorFactory, IPacketScheduler packetScheduler, IRollingIvFactoryProvider rollingIvFactoryProvider, IvGenerator ivGenerator, ILogger logger ) : System

Initializes a new instance of the ServerProcess class.

Start ( ) : void
Stop ( ) : void

Private Methods

Method Description
ConfigureInternal ( OsServiceConfiguration configuration ) : void
CreateRollingIvFactory ( ) : RollingIvFactory
CreateServerSession ( Socket sessionSocket ) : IServerSession
CreateSocketAcceptor ( ) : SocketAcceptor
GetServerAlreadyRunningException ( ) : InvalidOperationException
GetServerIsNotConfiguredException ( ) : InvalidOperationException
OnConnectionOpened ( IServerSession session ) : void
OnSessionClosing ( object sender, ConnectionClosingEventArgs args ) : void
OnSessionSocketError ( object sender, SocketErrorEventArgs args ) : void
OnSocketAccepted ( object sender, SocketEventArgs e ) : void
StartSession ( IServerSession session ) : void

Method Details

Configure() public method

public Configure ( OsServiceConfiguration configuration ) : void
configuration OsServiceConfiguration
return void

Dispose() public method

public Dispose ( ) : void
return void

ServerProcess() public method

Initializes a new instance of the ServerProcess class.
public ServerProcess ( IServerSessionFactory sessionFactory, ISocketAcceptorFactory socketAcceptorFactory, IPacketScheduler packetScheduler, IRollingIvFactoryProvider rollingIvFactoryProvider, IvGenerator ivGenerator, ILogger logger ) : System
sessionFactory IServerSessionFactory
socketAcceptorFactory ISocketAcceptorFactory
packetScheduler IPacketScheduler
rollingIvFactoryProvider IRollingIvFactoryProvider
ivGenerator IvGenerator
logger ILogger
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void