public class RakSessionCodec
extends io.netty.channel.ChannelDuplexHandler
| Constructor and Description |
|---|
RakSessionCodec(RakChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
close(RakDisconnectReason reason) |
void |
disconnect() |
void |
disconnect(RakDisconnectReason reason) |
protected Queue<IntRange> |
getAcknowledgeQueue(boolean nack) |
io.netty.channel.Channel |
getChannel() |
RakMetrics |
getMetrics() |
int |
getMtu() |
long |
getPing() |
InetSocketAddress |
getRemoteAddress() |
double |
getRTT() |
boolean |
isClosed() |
boolean |
isStale() |
boolean |
isStale(long curTime) |
boolean |
isTimedOut() |
boolean |
isTimedOut(long curTime) |
void |
recalculatePongTime(long pingTime) |
void |
write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final String NAME
public RakSessionCodec(RakChannel channel)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void write(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
io.netty.channel.ChannelPromise promise)
write in interface io.netty.channel.ChannelOutboundHandlerwrite in class io.netty.channel.ChannelDuplexHandlerpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void disconnect()
public void disconnect(RakDisconnectReason reason)
public void close(RakDisconnectReason reason)
public boolean isClosed()
public void recalculatePongTime(long pingTime)
public boolean isStale(long curTime)
public boolean isStale()
public boolean isTimedOut(long curTime)
public boolean isTimedOut()
public long getPing()
public double getRTT()
public int getMtu()
public RakMetrics getMetrics()
public InetSocketAddress getRemoteAddress()
public io.netty.channel.Channel getChannel()
Copyright © 2018–2022. All rights reserved.