Package com.benkyou.server.listeners

Examples of com.benkyou.server.listeners.ChatMessageListener


    public void simpleInitApp() {
        try {
            myServer = Network.createServer(serverPort);
            myServer.start();
            myServer.addMessageListener(new LoginServerListener(this), LoginMessage.class);
            myServer.addMessageListener(new ChatMessageListener(this), ChatClientMessage.class);
            myServer.addMessageListener(new PlayerMessageListener(this), PlayerMessage.class);
            myServer.addConnectionListener(new BenkyouClientConnectionListener(this));
           // consoleThread.start();
            System.out.println("Starting server on port " + serverPort);
          vncServer.startBroadcast();
View Full Code Here

TOP

Related Classes of com.benkyou.server.listeners.ChatMessageListener

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.