Package pacManReloaded.server

## Class ServerProtocol

- java.lang.Object
- - pacManReloaded.server.ServerProtocol

-     public class ServerProtocol
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ServerProtocol()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `handleMsg​(ServerThread thread, IMessage gameMsg)` | method which handles the messages
    `void` | `onInit​(ServerThread st)` | on init method

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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