C# 클래스 Pdelvo.Minecraft.Proxy.Library.ProxyServer

The base implementation of a proxy server.
상속: IProxyServer
파일 보기 프로젝트 열기: pdelvo/Pdelvo.Minecraft.Proxy 1 사용 예제들

Private Properties

프로퍼티 타입 설명
PromoteConnection void
ReadConfig void
ReceiveClientsAsync void
RemoveConnection void

공개 메소드들

메소드 설명
CheckUserAccountAsync ( ProxyConnection proxyConnection, string hash ) : Task

checks if a user account is valid using plugins and the minecraft.net services

Dispose ( ) : void

Close all active connections and free resources synchronously

GetServerEndPoint ( IProxyConnection proxyConnection ) : RemoteServerInfo

Get a new server end point for a given proxy connection to.

GetServerVersion ( IProxyConnection proxyConnection, RemoteServerInfo serverEndPoint ) : void

Get the minecraft protocol server of a given minecraft server.

OnlineModeEnabled ( IProxyConnection proxyConnection ) : bool

Returns true if the online mode is enabled for a specific user or not.

ProxyServer ( ) : System

Creates a new instance of the ProxyServer class.

Start ( ) : void

Start listening for new users.

StopAsync ( ) : System.Threading.Tasks.Task

Close all active connections and free resources asynchronously

비공개 메소드들

메소드 설명
PromoteConnection ( ProxyConnection proxyConnection ) : void
ReadConfig ( ) : void
ReceiveClientsAsync ( ) : void
RemoveConnection ( ProxyConnection proxyConnection ) : void

메소드 상세

CheckUserAccountAsync() 공개 메소드

checks if a user account is valid using plugins and the minecraft.net services
public CheckUserAccountAsync ( ProxyConnection proxyConnection, string hash ) : Task
proxyConnection Pdelvo.Minecraft.Proxy.Library.Connection.ProxyConnection The proxy server which should be checked.
hash string The 'serverId' hash
리턴 Task

Dispose() 공개 메소드

Close all active connections and free resources synchronously
public Dispose ( ) : void
리턴 void

GetServerEndPoint() 공개 메소드

Get a new server end point for a given proxy connection to.
public GetServerEndPoint ( IProxyConnection proxyConnection ) : RemoteServerInfo
proxyConnection IProxyConnection The proxy connection which need a new server connection.
리턴 RemoteServerInfo

GetServerVersion() 공개 메소드

Get the minecraft protocol server of a given minecraft server.
public GetServerVersion ( IProxyConnection proxyConnection, RemoteServerInfo serverEndPoint ) : void
proxyConnection IProxyConnection The connection this server relates to.
serverEndPoint RemoteServerInfo The current version of the Remote server info.
리턴 void

OnlineModeEnabled() 공개 메소드

Returns true if the online mode is enabled for a specific user or not.
public OnlineModeEnabled ( IProxyConnection proxyConnection ) : bool
proxyConnection IProxyConnection The proxy connection which should be checked
리턴 bool

ProxyServer() 공개 메소드

Creates a new instance of the ProxyServer class.
public ProxyServer ( ) : System
리턴 System

Start() 공개 메소드

Start listening for new users.
public Start ( ) : void
리턴 void

StopAsync() 공개 메소드

Close all active connections and free resources asynchronously
public StopAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task