import com.github.xgameenginee.handler.GameHandlerManager;
public class EchoServer {
public void run(String host, short port) {
final GameWorker worker = new GameWorker();
new Thread(worker).start();
GameBoss.getInstance().bind(Bootstrap.defaultBootstrap(), 2, 1024, 2, host, port, new GameUpProcessor() {
@Override
public void process(GameUpBuffer buffer) {
worker.pushUpstreamBuffer(buffer);
}
@Override
public void onShutdown() {
// System has been killed