C# Class ImaginationServer.Common.LuServer

Main server class
Inheritance: System.BaseServer
Afficher le fichier Open project: Miclebrick/Imagination-Server Class Usage Examples

Méthodes publiques

Méthode Description
AddHandler ( ushort remoteConnection, uint packetCode, PacketHandler handler ) : void
CreateGameMessage ( long objId, ushort messageId ) : WBitStream
LuServer ( int port, int maxConnections, string address ) : System

Main constructor

SendGameMessage ( string address, long objId, ushort messageId ) : void

Méthodes protégées

Méthode Description
OnConnect ( string address ) : void
OnDisconnect ( string address ) : void
OnReceived ( byte bytes, uint length, string address ) : void
OnStart ( ) : void
OnStop ( ) : void

Method Details

AddHandler() public méthode

public AddHandler ( ushort remoteConnection, uint packetCode, PacketHandler handler ) : void
remoteConnection ushort
packetCode uint
handler ImaginationServer.Common.Handlers.PacketHandler
Résultat void

CreateGameMessage() public static méthode

public static CreateGameMessage ( long objId, ushort messageId ) : WBitStream
objId long
messageId ushort
Résultat WBitStream

LuServer() public méthode

Main constructor
public LuServer ( int port, int maxConnections, string address ) : System
port int Port to host on
maxConnections int Maximum clients that cna connect
address string Address to host on
Résultat System

OnConnect() protected méthode

protected OnConnect ( string address ) : void
address string
Résultat void

OnDisconnect() protected méthode

protected OnDisconnect ( string address ) : void
address string
Résultat void

OnReceived() protected méthode

protected OnReceived ( byte bytes, uint length, string address ) : void
bytes byte
length uint
address string
Résultat void

OnStart() protected méthode

protected OnStart ( ) : void
Résultat void

OnStop() protected méthode

protected OnStop ( ) : void
Résultat void

SendGameMessage() public méthode

public SendGameMessage ( string address, long objId, ushort messageId ) : void
address string
objId long
messageId ushort
Résultat void