
public class NetworkServerHandler extends io.netty.channel.SimpleChannelInboundHandler<NetworkPacket>
| Modifier and Type | Field and Description |
|---|---|
protected R66Future |
clientFuture
Future to wait for Client to be setup
|
protected boolean |
isServer
Is this Handler a server side
|
protected boolean |
isSSL
Does this Handler is for SSL
|
| Constructor and Description |
|---|
NetworkServerHandler(boolean isServer) |
| 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 |
close() |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
io.netty.channel.Channel |
getNetworkChannel() |
boolean |
isSsl() |
void |
resetKeepAlive() |
void |
setBridge(ProxyBridge bridge) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
acceptInboundMessage, channelReadchannelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableprotected boolean isSSL
protected final boolean isServer
protected volatile R66Future clientFuture
public NetworkServerHandler(boolean isServer)
isServer - public final void setBridge(ProxyBridge bridge)
public final io.netty.channel.Channel getNetworkChannel()
public final void close()
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
channelInactive in interface io.netty.channel.ChannelInboundHandlerchannelInactive in class io.netty.channel.ChannelInboundHandlerAdapterpublic void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic 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.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterpublic final boolean isSsl()
Copyright © 2009–2022 Waarp. All rights reserved.