C# Class LKCamelot.Server

Afficher le fichier Open project: vans163/LKEmu Class Usage Examples

Méthodes publiques

Свойство Type Description
ClientHandler Server
IOThread LKCamelot.io.IOThread
WebServer WebSocketListener
playerHandler LKCamelot.model.PlayerHandler
shutdownClientHandler bool
shutdownServer bool
tickcount Stopwatch
world World

Protected Properties

Свойство Type Description
ConnectionLock object
Connections List
Listener Socket

Méthodes publiques

Méthode Description
App_ThreadException ( object sender, UnhandledExceptionEventArgs e ) : void
CurrentTimeMillis ( ) : long
Disconnect ( Connection connection ) : void
Listen ( string bindIP, int port ) : bool
OnConnecte ( object sender, ConnectionEventArgs e ) : void
OnDisconnecte ( object sender, ConnectionEventArgs e ) : void
Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int
killServer ( ) : void
run ( ) : void

Méthodes protégées

Méthode Description
OnClientConnection ( ConnectionEventArgs e ) : void
OnClientDisconnect ( ConnectionEventArgs e ) : void
OnDataReceived ( ConnectionDataEventArgs e ) : void
OnDataSent ( ConnectionDataEventArgs e ) : void

Private Methods

Méthode Description
GameServer_DataReceived ( object sender, ConnectionDataEventArgs e ) : void
InitRoutine ( ) : void
Main ( string args ) : void
NotifyRemoveConnection ( Connection connection ) : void
RemoveConnection ( Connection connection, bool raiseEvent ) : void
acceptCallback ( IAsyncResult result ) : void
domain_ProcessExit ( object sender, EventArgs e ) : void
readCallback ( IAsyncResult result ) : void

Method Details

App_ThreadException() public static méthode

public static App_ThreadException ( object sender, UnhandledExceptionEventArgs e ) : void
sender object
e System.UnhandledExceptionEventArgs
Résultat void

CurrentTimeMillis() public static méthode

public static CurrentTimeMillis ( ) : long
Résultat long

Disconnect() public méthode

public Disconnect ( Connection connection ) : void
connection Connection
Résultat void

Listen() public méthode

public Listen ( string bindIP, int port ) : bool
bindIP string
port int
Résultat bool

OnClientConnection() protected méthode

protected OnClientConnection ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
Résultat void

OnClientDisconnect() protected méthode

protected OnClientDisconnect ( ConnectionEventArgs e ) : void
e ConnectionEventArgs
Résultat void

OnConnecte() public méthode

public OnConnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
Résultat void

OnDataReceived() protected méthode

protected OnDataReceived ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
Résultat void

OnDataSent() protected méthode

protected OnDataSent ( ConnectionDataEventArgs e ) : void
e ConnectionDataEventArgs
Résultat void

OnDisconnecte() public méthode

public OnDisconnecte ( object sender, ConnectionEventArgs e ) : void
sender object
e ConnectionEventArgs
Résultat void

Send() public méthode

public Send ( Connection connection, byte buffer, int start, int count, SocketFlags flags ) : int
connection Connection
buffer byte
start int
count int
flags SocketFlags
Résultat int

killServer() public méthode

public killServer ( ) : void
Résultat void

run() public méthode

public run ( ) : void
Résultat void

Property Details

ClientHandler public_oe static_oe property

public static Server,LKCamelot ClientHandler
Résultat Server

ConnectionLock protected_oe property

protected object ConnectionLock
Résultat object

Connections protected_oe property

protected List Connections
Résultat List

IOThread public_oe static_oe property

public static IOThread,LKCamelot.io IOThread
Résultat LKCamelot.io.IOThread

Listener protected_oe property

protected Socket Listener
Résultat Socket

WebServer public_oe static_oe property

public static WebSocketListener,LKCamelot WebServer
Résultat WebSocketListener

playerHandler public_oe static_oe property

public static PlayerHandler,LKCamelot.model playerHandler
Résultat LKCamelot.model.PlayerHandler

shutdownClientHandler public_oe static_oe property

public static bool shutdownClientHandler
Résultat bool

shutdownServer public_oe static_oe property

public static bool shutdownServer
Résultat bool

tickcount public_oe static_oe property

public static Stopwatch tickcount
Résultat Stopwatch

world public_oe static_oe property

public static World world
Résultat World