Class ServerProtocol


  • public class ServerProtocol
    extends java.lang.Object
    • Constructor Detail

      • ServerProtocol

        public ServerProtocol()
    • Method Detail

      • onInit

        public void onInit​(ServerThread st)
        on init method
        Parameters:
        st - the server thread
      • handleMsg

        public void handleMsg​(ServerThread thread,
                              IMessage gameMsg)
                       throws java.io.IOException
        method which handles the messages
        Parameters:
        thread - the thread of the server
        gameMsg - the message which has to get handled
        Throws:
        java.io.IOException - exception for wrong params