public interface NettyReaderByteBufCallback
NettySocketServer has received data. Use this one if you
plan to receive undecoded netty ByteBuf.| Modifier and Type | Method and Description |
|---|---|
void |
onReceive(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf data,
com.codahale.metrics.Counter rec,
com.codahale.metrics.Counter sent)
Called when a
NettySocketServer has received data. |
void onReceive(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf data,
com.codahale.metrics.Counter rec,
com.codahale.metrics.Counter sent)
NettySocketServer has received data.ctx - the receiving channel context .data - the received data.rec - the received data counter.sent - the sent data counter.Copyright © 2023. All rights reserved.