Class ServerNetty
- java.lang.Object
-
- be.yildizgames.module.network.server.Server
-
- be.yildizgames.module.network.netty.server.ServerNetty
-
public final class ServerNetty extends be.yildizgames.module.network.server.ServerServer side part of the Netty network system, wrap the netty bootstrap and offer possibility to add handlers.- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerNettycreate()Create a new Netty server.voidstartServer(int port, be.yildizgames.module.network.server.SessionManager sessionManager, be.yildizgames.module.network.DecoderEncoder codec)Start the server to listen to clients.voidstartServer(String address, int port, be.yildizgames.module.network.server.SessionManager sessionManager, be.yildizgames.module.network.DecoderEncoder codec)Start the server to listen to clients.
-
-
-
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:
startServerin classbe.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:
startServerin classbe.yildizgames.module.network.server.Server
-
-