C# Class devTool.Server

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

Méthodes publiques

Свойство Type Description
ClientHandler Server
shutdownClientHandler bool
shutdownServer bool

Protected Properties

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

Méthodes publiques

Méthode Description
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
NotifyRemoveConnection ( Connection connection ) : void
RemoveConnection ( Connection connection, bool raiseEvent ) : void
acceptCallback ( IAsyncResult result ) : void
readCallback ( IAsyncResult result ) : void

Method Details

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,devTool ClientHandler
Résultat Server

ConnectionLock protected_oe property

protected object ConnectionLock
Résultat object

Connections protected_oe property

protected List Connections
Résultat List

Listener protected_oe property

protected Socket Listener
Résultat Socket

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