Class SimpleClientNetty
- java.lang.Object
-
- be.yildizgames.module.network.client.Client
-
- be.yildizgames.module.network.netty.client.ClientNetty<String>
-
- be.yildizgames.module.network.netty.client.SimpleClientNetty
-
- All Implemented Interfaces:
be.yildizgames.module.network.client.ClientCallBack,be.yildizgames.module.network.client.MessageSender,be.yildizgames.module.network.client.NetworkClient
public class SimpleClientNetty extends ClientNetty<String>
- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description SimpleClientNetty(io.netty.bootstrap.Bootstrap clientBootstrap)Create a new instance of a client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildMessage(String message)protected voidconnectionComplete()be.yildizgames.module.network.DecoderEncodergetCodec()-
Methods inherited from class be.yildizgames.module.network.netty.client.ClientNetty
close, connectImpl, disconnect, sendMessage, sendMessage, setTimeOut
-
Methods inherited from class be.yildizgames.module.network.client.Client
addNetworkListener, connect, connectionFailed, connectionLost, connectionSuccessful, delayMessageToNextFrame, getEngine, isConnected, messageReceived, throwError, update
-
-
-
-
Method Detail
-
connectionComplete
protected void connectionComplete()
- Specified by:
connectionCompletein classClientNetty<String>
-
buildMessage
protected String buildMessage(String message)
- Specified by:
buildMessagein classClientNetty<String>
-
getCodec
public be.yildizgames.module.network.DecoderEncoder getCodec()
- Specified by:
getCodecin classClientNetty<String>
-
-