Package com.github.xgameenginee.core

Examples of com.github.xgameenginee.core.GameWorker


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
View Full Code Here

TOP

Related Classes of com.github.xgameenginee.core.GameWorker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.