Méthode | Description | |
---|---|---|
ForceShutdown ( ) : void |
Forcefully close all connections without sending logout.
|
|
Shutdown ( ) : void |
Gracefully shut down all clients, sending a logout to each.
|
|
SocketAcceptor ( Application app, |
||
Start ( ) : void |
Start main server loop thread.
|
|
Stop ( ) : void |
Closes and stops socket listener.
|
Méthode | Description | |
---|---|---|
AcceptorLoop ( ) : void |
Main server loop.
|
|
ClientHasDisconnected ( int bytesRead ) : bool | ||
HandleClient ( object client ) : void |
Handle newly connected client and spawn a thread.
|
|
HandleDataReceived ( string data, int clientHashCode ) : void |
public SocketAcceptor ( Application app, |
||
app | Application | |
settings | ||
Résultat | System |