C# Класс OpenNos.Core.Networking.Communication.Scs.Server.ScsServerBase

This class provides base functionality for server Classs.
Наследование: IScsServer
Показать файл Открыть проект

Открытые методы

Метод Описание
Start ( ) : void

Starts the server.

Stop ( ) : void

Stops the server.

Защищенные методы

Метод Описание
CreateConnectionListener ( ) : IConnectionListener

This method is implemented by derived Classs to create appropriate connection listener to listen incoming connection requets.

OnClientConnected ( IScsServerClient client ) : void

Raises ClientConnected event.

OnClientDisconnected ( IScsServerClient client ) : void

Raises ClientDisconnected event.

ScsServerBase ( ) : System

Constructor.

Приватные методы

Метод Описание
Client_Disconnected ( object sender, EventArgs e ) : void

Handles Disconnected events of all connected clients.

ConnectionListener_CommunicationChannelConnected ( object sender, CommunicationChannelEventArgs e ) : void

Handles CommunicationChannelConnected event of _connectionListener object.

Описание методов

CreateConnectionListener() защищенный абстрактный Метод

This method is implemented by derived Classs to create appropriate connection listener to listen incoming connection requets.
protected abstract CreateConnectionListener ( ) : IConnectionListener
Результат IConnectionListener

OnClientConnected() защищенный Метод

Raises ClientConnected event.
protected OnClientConnected ( IScsServerClient client ) : void
client IScsServerClient Connected client
Результат void

OnClientDisconnected() защищенный Метод

Raises ClientDisconnected event.
protected OnClientDisconnected ( IScsServerClient client ) : void
client IScsServerClient Disconnected client
Результат void

ScsServerBase() защищенный Метод

Constructor.
protected ScsServerBase ( ) : System
Результат System

Start() публичный Метод

Starts the server.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stops the server.
public Stop ( ) : void
Результат void