C# 클래스 OpenNos.Core.Networking.Communication.Scs.Server.ScsServerBase

This class provides base functionality for server Classs.
상속: IScsServer
파일 보기 프로젝트 열기: OpenNos/OpenNos

공개 메소드들

메소드 설명
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