public class NettyChannelInitializer
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
Modifier and Type | Field and Description |
---|---|
protected ConnectListener |
connectListener |
protected LocalHost |
localHost |
Constructor and Description |
---|
NettyChannelInitializer(LocalHost localHost,
ConnectListener connectListener) |
Modifier and Type | Method and Description |
---|---|
protected RemoteConnection |
getRemoteConnection(io.netty.channel.Channel channel) |
protected void |
initChannel(io.netty.channel.socket.SocketChannel channel) |
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
protected final LocalHost localHost
protected final ConnectListener connectListener
public NettyChannelInitializer(LocalHost localHost, ConnectListener connectListener)
protected void initChannel(io.netty.channel.socket.SocketChannel channel) throws java.lang.Exception
initChannel
in class io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
java.lang.Exception
protected RemoteConnection getRemoteConnection(io.netty.channel.Channel channel)