Package com.jcloisterzone.wsio.server

Examples of com.jcloisterzone.wsio.server.SimpleServer


        resetWindowIcon();
        if (conn != null) {
            conn.close();
            conn = null;
        }
        SimpleServer server = localServer.get();
        if (server != null) {
            try {
                server.stop();
            } catch (Exception e) {
                logger.error(e.getMessage(), e);
            }
            localServer.set(null);
        }
View Full Code Here


        createGame(null);
    }

    public void createGame(Snapshot snapshot) {
        if (closeGame()) {
            SimpleServer server = new SimpleServer(new InetSocketAddress(config.getPort()), this);
            localServer.set(server);
            server.createGame(snapshot);
            server.start();
            try {
                //HACK - there is not success handler in WebSocket server
                //we must wait for start to now connect to
                Thread.sleep(50);
            } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of com.jcloisterzone.wsio.server.SimpleServer

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.