GameMessageDecoder

class GameMessageDecoder<R>(val networkService: NetworkService<R>, session: Session<R>, streamCipher: StreamCipher, oldSchoolClientType: OldSchoolClientType) : ByteToMessageDecoder

A decoder for game messages, one that respects the limitations set in place for incoming game messages to stop decoding after a specific threshold. Furthermore, this will discard any payload of a packet if no consumer has been registered, avoiding the creation of further garbage in the form of decoded messages or buffer slices.

Constructors

Link copied to clipboard
constructor(networkService: NetworkService<R>, session: Session<R>, streamCipher: StreamCipher, oldSchoolClientType: OldSchoolClientType)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun channelActive(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun channelInactive(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun channelRead(p0: ChannelHandlerContext, p1: Any)
Link copied to clipboard
open override fun channelReadComplete(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun channelRegistered(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun channelUnregistered(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun channelWritabilityChanged(p0: ChannelHandlerContext)
Link copied to clipboard
open override fun exceptionCaught(p0: ChannelHandlerContext, p1: Throwable)
Link copied to clipboard
open override fun handlerAdded(p0: ChannelHandlerContext)
Link copied to clipboard
override fun handlerRemoved(p0: ChannelHandlerContext)
Link copied to clipboard
open fun isSharable(): Boolean
Link copied to clipboard
open fun setCumulator(p0: ByteToMessageDecoder.Cumulator)
Link copied to clipboard
Link copied to clipboard
open override fun userEventTriggered(p0: ChannelHandlerContext, p1: Any)