Class TextNettySession
- java.lang.Object
-
- be.yildizgames.module.network.server.Session
-
- be.yildizgames.module.network.netty.server.TextNettySession
-
public class TextNettySession extends be.yildizgames.module.network.server.Session- Author:
- Grégory Van den Borre
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseSession()io.netty.channel.ChannelgetChannel()voidsendMessage(String message)protected voidwrite(io.netty.channel.Channel ch, String message)Write directly on the socket.
-
-
-
Method Detail
-
write
protected void write(io.netty.channel.Channel ch, String message)Write directly on the socket.- Parameters:
ch- Channel to write on.message- Message to write.
-
sendMessage
public final void sendMessage(String message)
- Specified by:
sendMessagein classbe.yildizgames.module.network.server.Session
-
closeSession
protected void closeSession()
- Specified by:
closeSessionin classbe.yildizgames.module.network.server.Session
-
getChannel
public io.netty.channel.Channel getChannel()
-
-