public class NetworkServerHandler extends io.netty.channel.SimpleChannelInboundHandler<NetworkPacket>
Modifier and Type | Field and Description |
---|---|
protected boolean |
isBlackListed
Is this network connection being refused (black listed)
|
protected boolean |
isShuttingDown
Is this network connection being refused (shutting down)
|
protected boolean |
isSSL
Does this Handler is for SSL
|
static io.netty.util.AttributeKey<R66Auth> |
REUSABLE_AUTH_KEY |
static String |
REUSABLE_AUTH_KEY_NAME |
Constructor and Description |
---|
NetworkServerHandler() |
Modifier and Type | Method and Description |
---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
NetworkPacket msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
DbSession |
getDbSession() |
boolean |
isSsl() |
void |
resetKeepAlive() |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
static void |
writeError(io.netty.channel.Channel channel,
Integer remoteId,
Integer localId,
AbstractLocalPacket error)
Write error back to remote client
|
acceptInboundMessage, channelRead
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public static final String REUSABLE_AUTH_KEY_NAME
public static final io.netty.util.AttributeKey<R66Auth> REUSABLE_AUTH_KEY
protected boolean isSSL
protected boolean isBlackListed
protected boolean isShuttingDown
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelActive
in interface io.netty.channel.ChannelInboundHandler
channelActive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public final void resetKeepAlive()
public void channelRead0(io.netty.channel.ChannelHandlerContext ctx, NetworkPacket msg)
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<NetworkPacket>
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
public static void writeError(io.netty.channel.Channel channel, Integer remoteId, Integer localId, AbstractLocalPacket error)
channel
- remoteId
- localId
- error
- public final DbSession getDbSession()
public final boolean isSsl()
Copyright © 2009–2022 Waarp. All rights reserved.