Class ServerNetty


  • public final class ServerNetty
    extends be.yildizgames.module.network.server.Server
    Server side part of the Netty network system, wrap the netty bootstrap and offer possibility to add handlers.
    Author:
    Grégory Van den Borre
    • Method Detail

      • create

        public static ServerNetty create()
        Create a new Netty server.
        Returns:
        The created server.
      • startServer

        public void startServer​(int port,
                                be.yildizgames.module.network.server.SessionManager sessionManager,
                                be.yildizgames.module.network.DecoderEncoder codec)
        Start the server to listen to clients.
        Specified by:
        startServer in class be.yildizgames.module.network.server.Server
      • startServer

        public void startServer​(String address,
                                int port,
                                be.yildizgames.module.network.server.SessionManager sessionManager,
                                be.yildizgames.module.network.DecoderEncoder codec)
        Start the server to listen to clients.
        Specified by:
        startServer in class be.yildizgames.module.network.server.Server